running in container instructions update

This commit is contained in:
Sunshine 2021-02-28 21:46:38 -10:00
parent a3516b2ae9
commit a6ac1df93d
No known key found for this signature in database
GPG key ID: B80CA68703CD8AB1
3 changed files with 18 additions and 6 deletions

View file

@ -47,7 +47,9 @@ Dependency: `libssl-dev`
$ make install $ make install
#### Using Containers #### Using Containers
The guide can be found [here](docs/containers.md)
$ docker build -t Y2Z/monolith .
$ sudo install -b utils/run-in-container.sh /usr/local/bin/monolith
--------------------------------------------------- ---------------------------------------------------

10
utils/run-in-container.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
DOCKER=docker
PROG_NAME=monolith
if which podman 2>&1 > /dev/null; then
DOCKER=podman
fi
$DOCKER run --rm Y2Z/$PROG_NAME $PROG_NAME "$@"