1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-27 10:35:41 +00:00

Merge branch 'master' of github.com:vbatts/imgsrv

This commit is contained in:
Vincent Batts 2017-04-07 10:41:27 -04:00
commit 1b64b8a3c5
2 changed files with 16 additions and 9 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM fedora
EXPOSE 7777
ENV GOPATH /usr/local
ENV MONGODB_DATABASE filesrv
ENV MONGODB_SERVICE_HOST 127.0.0.1
ENV MONGODB_SERVICE_PORT 27017
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
ENTRYPOINT /usr/local/bin/imgsrv \
-server \
-mongo-host=$MONGODB_SERVICE_HOST:$MONGODB_SERVICE_PORT \
-mongo-db=$MONGODB_DATABASE \
-mongo-username=$DATABASE_USER \
-mongo-password=$DATABASE_PASSWORD

View file

@ -51,15 +51,6 @@ then you can drop that flag out, for quicker lolzing:
2013/02/12 13:00:29 New Image!: http://hurp.til.derp.com:7777/f/lolz.gif 2013/02/12 13:00:29 New Image!: http://hurp.til.derp.com:7777/f/lolz.gif
Dependencies
------------
go get launchpad.net/goyaml
go get labix.org/v2/mgo
and put this imgsrv in your GOPATH,
since it references itself.
Building Building
-------- --------