remove SYSTEM=docker during build, update dockerignore (#2017)
This commit is contained in:
parent
02be5f3618
commit
6193047c35
5 changed files with 16 additions and 7 deletions
|
@ -1,3 +1,5 @@
|
|||
# We include .git in the build context because excluding it would break the
|
||||
# "make release" target, which uses git to retrieve the build version and tag.
|
||||
#.git
|
||||
|
||||
/tests
|
||||
|
|
10
.gitignore
vendored
10
.gitignore
vendored
|
@ -12,6 +12,9 @@
|
|||
*.test
|
||||
*.cover
|
||||
|
||||
# Test binaries, built from *_test.go
|
||||
pkg/csplugin/tests/cs_plugin_test*
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
|
@ -31,13 +34,10 @@ plugins/notifications/splunk/notification-splunk
|
|||
plugins/notifications/email/notification-email
|
||||
plugins/notifications/dummy/notification-dummy
|
||||
|
||||
#test binaries
|
||||
pkg/csplugin/tests/cs_plugin_test*
|
||||
|
||||
#test cache (downloaded files)
|
||||
# Test cache (downloaded files)
|
||||
.cache
|
||||
|
||||
#release stuff
|
||||
# Release stuff
|
||||
crowdsec-v*
|
||||
pkg/cwhub/hubdir/.index.json
|
||||
msi
|
||||
|
|
|
@ -10,7 +10,7 @@ COPY . .
|
|||
# wizard.sh requires GNU coreutils
|
||||
RUN apk add --no-cache git gcc libc-dev make bash gettext binutils-gold coreutils && \
|
||||
echo "githubciXXXXXXXXXXXXXXXXXXXXXXXX" > /etc/machine-id && \
|
||||
SYSTEM="docker" make clean release && \
|
||||
make clean release && \
|
||||
cd crowdsec-v* && \
|
||||
./wizard.sh --docker-mode && \
|
||||
cd - >/dev/null && \
|
||||
|
|
|
@ -14,7 +14,7 @@ ENV DEBCONF_NOWARNINGS="yes"
|
|||
RUN apt-get update && \
|
||||
apt-get install -y -q git gcc libc-dev make bash gettext binutils-gold coreutils tzdata && \
|
||||
echo "githubciXXXXXXXXXXXXXXXXXXXXXXXX" > /etc/machine-id && \
|
||||
SYSTEM="docker" make clean release && \
|
||||
make clean release && \
|
||||
cd crowdsec-v* && \
|
||||
./wizard.sh --docker-mode && \
|
||||
cd - >/dev/null && \
|
||||
|
|
7
Makefile
7
Makefile
|
@ -215,4 +215,11 @@ windows_installer: build
|
|||
chocolatey: windows_installer
|
||||
@.\make_chocolatey.ps1 -version $(BUILD_VERSION)
|
||||
|
||||
# Include tests/bats.mk only if it exists
|
||||
# to allow building without a test/ directory
|
||||
# (i.e. inside docker)
|
||||
ifeq (,$(wildcard tests/bats.mk))
|
||||
bats-clean:
|
||||
else
|
||||
include tests/bats.mk
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue