Skip to content

Commit

Permalink
added .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeldan committed May 12, 2023
1 parent b180895 commit ee5b6b9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*.o
*.so
deps.mk
changelog
Dockerfile
.dockerignore
docs/
Doxyfile
LICENSE
README.md
scripts/
tests/
.git/
.github/
.gitignore
.gitmodules
.clang-format
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RUN apt -y update && \
COPY ./ /scrutiny/

RUN cd /scrutiny && \
make monkeypatch=yes install
make docker_build=yes monkeypatch=yes install

RUN rm -rf /scrutiny
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ else
CFLAGS += -O2 -DNDEBUG
endif

ifeq ($(monkeypatch),yes)
CFLAGS += -DSCR_MONKEYPATCH -DREAP_NO_PROC -DREAP_NO_ITERATE_FD -DREAP_NO_ITERATE_NET -DREAP_NO_ITERATE_THREAD -DREAP_NO_EXPORT -DEJ_NO_EXPORT
endif

all: _all

BUILD_DEPS :=
Expand All @@ -26,22 +30,16 @@ SCR_ONLY_HEADER_FILES := $(wildcard include/scrutiny/*.h)
SCR_HEADER_FILES := $(SCR_ONLY_HEADER_FILES) $(GEAR_HEADER_FILES)
SCR_INCLUDE_FLAGS := -Iinclude $(GEAR_INCLUDE_FLAGS)

ifeq ($(monkeypatch),yes)
CFLAGS += -DSCR_MONKEYPATCH -DREAP_NO_PROC -DREAP_NO_ITERATE_FD -DREAP_NO_ITERATE_NET -DREAP_NO_ITERATE_THREAD -DREAP_NO_EXPORT -DEJ_NO_EXPORT
endif

REAP_DIR := packages/reap
include $(REAP_DIR)/make.mk

EJ_DIR := packages/elfjack
include $(EJ_DIR)/make.mk

ifeq ($(monkeypatch),yes)

SCR_OBJECT_FILES += $(REAP_OBJECT_FILES) $(EJ_OBJECT_FILES)
SCR_HEADER_FILES += $(REAP_HEADER_FILES) $(EJ_HEADER_FILES)
SCR_INCLUDE_FLAGS += $(REAP_INCLUDE_FLAGS) $(EJ_INCLUDE_FLAGS)

endif

SCR_DEPS_FILE := src/deps.mk
Expand Down Expand Up @@ -70,9 +68,11 @@ scr_clean:
@rm -f $(SCR_SHARED_LIBRARY) $(SCR_OBJECT_FILES)

CLEAN_TARGETS += scr_clean
TEST_DIR := tests

ifneq ($(docker_build),yes)
TEST_DIR := tests
include $(TEST_DIR)/make.mk
endif

.PHONY: all _all format install uninstall clean tests $(CLEAN_TARGETS)

Expand Down
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.6.1:
- Replaced some calls to exit with _exit.

0.6.0:
- Added the monkeypatching capability for Linux builds.

Expand Down
2 changes: 1 addition & 1 deletion include/scrutiny/scrutiny.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @brief Scrutiny's version.
*/
#define SCRUTINY_VERSION "0.6.0"
#define SCRUTINY_VERSION "0.6.1"

#include "run.h"
#include "test.h"
Expand Down

0 comments on commit ee5b6b9

Please sign in to comment.