Dockerfile: use the openshift variables

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-03-22 14:11:49 -04:00
parent 51e270e2c5
commit d3761001a9
Signed by: vbatts
GPG Key ID: 10937E57733F1362
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ RUN dnf install -y golang git bzr && \
go get github.com/vbatts/imgsrv && \
rm -rf /usr/local/src /usr/local/pkg && \
dnf remove -y golang git bzr
ENV MONGO_DB filesrv
ENV MONGO_HOST 127.0.0.1
ENV MONGO_PORT 27017
ENTRYPOINT /usr/local/bin/imgsrv -server -mongo-host=$MONGO_HOST:$MONGO_PORT -mongo-db=$MONGO_DB -mongo-username=$MONGO_USER -mongo-password=$MONGO_PASSWORD
ENV MONGODB_DATABASE filesrv
ENV MONGODB_SERVICE_HOST 127.0.0.1
ENV MONGODB_SERVICE_PORT 27017
ENTRYPOINT /usr/local/bin/imgsrv -server -mongo-host=$MONGODB_SERVICE_HOST:$MONGODB_SERVICE_PORT -mongo-db=$MONGODB_DATABASE -mongo-username=$MONGODB_USER -mongo-password=$MONGODB_PASSWORD