-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters