Skip to content

Commit

Permalink
publish to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
criloz committed Apr 14, 2017
1 parent e07a5e7 commit 71e52aa
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

24 changes: 24 additions & 0 deletions cmd/menshend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM alpine:3.5
MAINTAINER Cristian Lozano <[email protected]> (@criloz)
ENV MENSHEND_CONFIG /etc/menshend.yml
# Create a user and group first so the IDs get set the same way, even as
# the rest of this may change over time.
RUN addgroup menshend && adduser -S -G menshend menshend

RUN apk update \
&& apk add --no-cache ca-certificates wget su-exec\
&& update-ca-certificates
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

# install dump-init
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64
RUN chmod +x /usr/local/bin/dumb-init

# add menshend
ADD dist/menshend_linux_amd64 /bin/menshend && chmod +x /bin/menshend

# copy menshend config
ADD menshend.yml /etc/menshend.yml

# run entrypoint
ENTRYPOINT ["menshend", "server", "-config", ${MENSHEND_CONFIG}]
7 changes: 7 additions & 0 deletions cmd/menshend/menshend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Uris:
BaseUrl: http://lab.local:8787
MenshendSubdomain: menshend.
Space:
Name: Local lab
Logo: https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg
Description: Local laboratory
7 changes: 7 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ do
done
go get -u github.com/tcnksm/ghr
ghr -u nebtex -replace $MENSHEND_RELEASE release

cd ..
docker docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD

docker build -t nebtex/menshend:$MENSHEND_RELEASE .
# upload to dockerhub
docker push nebtex/menshend:$MENSHEND_RELEASE

0 comments on commit 71e52aa

Please sign in to comment.