mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-29 17:12:22 +00:00
fix english
This commit is contained in:
22
BUILD.md
22
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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user