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:
|
||||
|
@ -3,7 +3,7 @@ ENV PATH=/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi
|
||||
ENV PYTHONPATH=/opt/newsxml
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y python \
|
||||
python-dev \
|
||||
|
@ -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
|
||||
|
@ -5,4 +5,6 @@ KS=su3keystore.ks
|
||||
# signer
|
||||
SIGNER=yourname@mail.i2p
|
||||
# port, used for Docker only
|
||||
SERVEPORT=3000
|
||||
SERVEPORT=3000
|
||||
# Name to use when serving news in a docker container
|
||||
DOCKERNAME=newsxml
|
Reference in New Issue
Block a user