diff --git a/BUILD.md b/BUILD.md index 9d8a392..a5e9be0 100644 --- a/BUILD.md +++ b/BUILD.md @@ -1,39 +1,39 @@ # Building Databunker -Use the folllowing command +Use the following command: ``` ./build.sh ``` -It will generate **databunker** executable. HTML files are built inside executable. +This command will generate the ```databunker``` executable, bundled with the web UI interface. -## Build container +## Building Databunker Container -It will generate "securitybunker/databunker" container and save it locally. +To generate the ```securitybunker/databunker``` container, use the following command: ``` VERSION=$(cat ./version.txt) docker build -t securitybunker/databunker:$VERSION --build-arg VERSION=$VERSION . ``` -## Push container +## Pushing Container -**Only for project admin:** +For project admins only: ``` docker login VERSION=$(cat ./version.txt) docker push securitybunker/databunker:$VERSION +# Optionally, push container with the latest tag +docker tag securitybunker/databunker:$VERSION securitybunker/databunker:latest +docker push securitybunker/databunker:latest ``` - -## Other useful commands for working with containers: +## Other Useful Commands for Working with Containers: ``` -docker rm dbunker -docker kill dbunker -docker container stats dbunker +docker container stats databunker docker run --rm -ti alpine /bin/busybox wget localhost:3000 ```