Skip to content

Commit

Permalink
Add script for collecting output from docker build (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doy-lee committed Jun 27, 2019
1 parent 2c07c92 commit 84a4617
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ Packages are available for
```bash
# Build using all available cores
docker build -t loki .
docker build -t loki-daemon-image .
# or build using a specific number of cores (reduce RAM requirement)
docker build --build-arg NPROC=1 -t loki .
Expand All @@ -528,7 +528,7 @@ Packages are available for
```
* The build needs 3 GB space.
* Wait one hour or more
* Wait one hour or more. For docker, the collect_from_docker_container.sh script will automate downloading the binaries from the docker container.
## Running lokid
Expand Down
4 changes: 4 additions & 0 deletions utils/build_scripts/collect_from_docker_container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set -ex && mkdir -p ../../build/release/bin
set -ex && docker create --name loki-daemon-container loki-daemon-image
set -ex && docker cp loki-daemon-container:/usr/local/bin/ ../../build/
set -ex && docker rm loki-daemon-container

0 comments on commit 84a4617

Please sign in to comment.