-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable toadserver to run as a service
Add a Dockerfile and start.sh script to enable the toadserver to be built as a docker image suitable for use as an Eris service. The Dockerfile and toadserver.toml file make some assumptions about where the docker image is hosted and the github path. Known issues: - Environment variables must be provided for toadserver to work correctly; these vary by environment and must be set in the start script. - Service does not stop from `eris stop toadserver`.
- Loading branch information
Chris Hart
committed
Oct 12, 2015
1 parent
778c431
commit 71103ec
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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,30 @@ | ||
# Pull base image. | ||
FROM quay.io/eris/base | ||
MAINTAINER Eris Industries <[email protected]> | ||
|
||
# configure install | ||
ENV NAME toadserver | ||
ENV REPO eris-ltd/toadserver | ||
ENV ALIAS $REPO | ||
ENV BRANCH master | ||
ENV BINARY_PATH ./cmd/$NAME | ||
ENV CLONE_PATH $GOPATH/src/github.com/$ALIAS | ||
ENV INSTALL_PATH $INSTALL_BASE/$NAME | ||
ENV INSTALL_BASE /usr/local/bin | ||
|
||
# install | ||
WORKDIR $CLONE_PATH | ||
RUN git clone -q https://github.com/$REPO $CLONE_PATH && go get github.com/eris-ltd/eris-cli/cmd/eris && go build && go install # update201510112326 | ||
|
||
# start script | ||
COPY start.sh $INSTALL_BASE/start | ||
|
||
# set user | ||
USER $USER | ||
WORKDIR $ERIS | ||
|
||
# boot | ||
VOLUME $ERIS | ||
EXPOSE 11113 | ||
CMD ["start"] | ||
|
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
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
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,2 @@ | ||
#!/usr/bin/env bash | ||
blockchain-digital-notary |