forked from iotaledger/goshimmer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make docker build faster (iotaledger#1074)
* Make docker build faster Docker build now mounts a volume for Go build cache during the image build. Another small optimization is: mount source code base instead of COPYing it. As a result the docker re-build time is 4.5s instead of 50s before. * Fix CI errors Use special "syntax" word to refer to an external docker frontend in Dockerfile. Remove empty lines to not cause warning. * Use COPY instead of mount Get back to coping the codebase instead of mounting it. * Enable docker buildkit in CI Set DOCKER_BUILDKIT in github actions * Enable docker BuildKit in scripts Set DOCKER_BUILDKIT=1 and COMPOSE_DOCKER_CLI_BUILD=1 envs in scripts. Also use sha to refer to docker frontend image. * Use exact version instead of sha for docker image For some reason sha referencing didn't work on GH action, I switched back to exact version number. * Improve .dockerignore Add a few folders to .dockerignore
- Loading branch information
1 parent
3fc4169
commit d60992f
Showing
6 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
.git | ||
.gitignore | ||
.github/ | ||
docs/ | ||
.idea/ | ||
|
||
LICENSE | ||
README.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# This script uses ldd utility to verify that result goshimmer binary is statically linked | ||
|
||
ldd /go/bin/goshimmer &> /dev/null | ||
if [ $? -ne 0 ]; then | ||
exit 0 | ||
else | ||
echo "/go/bin/goshimmer must be a statically linked binary" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters