Add script for collecting output from docker build (#678)

This commit is contained in:
Doyle 2019-06-27 16:53:07 +10:00 committed by GitHub
parent 2c07c92440
commit 84a461710b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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 .
@ -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

View File

@ -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