Make it possible to run multiple containers on different names/ports using docker. Gonna do some dev builds.

This commit is contained in:
idk
2022-02-04 16:48:22 -05:00
parent 4fd9b3b730
commit 9095bee45c
5 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@
build
logs
etc/*custom*
build.old

View File

@ -44,7 +44,6 @@ docker run -it \
docker cp i2p.newsxml.signing:/opt/i2p.newsxml/build build
```
## Now, you're ready to build the hosting container:
With the feeds in `build` from the previous step, run:

View File

@ -20,7 +20,7 @@ if [ -d "$dir/build" ]; then
echo "Removing old newsxml container"
docker rm -f newsxml
echo "Running newsxml container"
docker run -d --restart=always --name newsxml -p 127.0.0.1:"$SERVEPORT":3000 i2p.newsxml
docker run -d --restart=always --name "$DOCKERNAME" -p 127.0.0.1:"$SERVEPORT":3000 i2p.newsxml
else
echo "No build directory found. Perform the signing procedure with news.sh or docker-news.sh."
exit 1

View File

@ -6,3 +6,5 @@ KS=su3keystore.ks
SIGNER=yourname@mail.i2p
# port, used for Docker only
SERVEPORT=3000
# Name to use when serving news in a docker container
DOCKERNAME=newsxml