Make it possible to run multiple containers on different names/ports using docker. Gonna do some dev builds.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@
|
||||
build
|
||||
logs
|
||||
etc/*custom*
|
||||
build.old
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
Reference in New Issue
Block a user