Skip to content
Snippets Groups Projects
Commit ee7977db authored by Casey Kuhlman's avatar Casey Kuhlman
Browse files

expose proper ports on eris-db image

parent be74de6c
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,13 @@ COPY DOCKER/start.sh /usr/local/bin/erisdb-wrapper ...@@ -20,11 +20,13 @@ COPY DOCKER/start.sh /usr/local/bin/erisdb-wrapper
# set the repo and install tendermint # set the repo and install tendermint
ENV REPO github.com/tendermint/tendermint ENV REPO github.com/tendermint/tendermint
ENV BRANCH permissions ENV BRANCH f2f437a328cb3e277bc4ac74e4a1180f1c28efbc
# note, we want to lock in the same commit number
# as eris-db has vendored.
RUN mkdir --parents $GOPATH/src/$REPO RUN mkdir --parents $GOPATH/src/$REPO
WORKDIR $GOPATH/src/$REPO WORKDIR $GOPATH/src/$REPO
RUN git clone https://$REPO . && \ RUN git clone --quiet https://$REPO . && \
git checkout $BRANCH && \ git checkout --quiet $BRANCH && \
go build -o /usr/local/bin/tendermint ./cmd/tendermint go build -o /usr/local/bin/tendermint ./cmd/tendermint
# set the repo and install erisdb # set the repo and install erisdb
...@@ -39,8 +41,8 @@ ENV REPO github.com/eris-ltd/mint-client ...@@ -39,8 +41,8 @@ ENV REPO github.com/eris-ltd/mint-client
ENV BRANCH master ENV BRANCH master
RUN mkdir --parents $GOPATH/src/$REPO RUN mkdir --parents $GOPATH/src/$REPO
WORKDIR $GOPATH/src/$REPO WORKDIR $GOPATH/src/$REPO
RUN git clone https://$REPO . && \ RUN git clone --quiet https://$REPO . && \
git checkout $BRANCH && \ git checkout --quiet $BRANCH && \
go install ./... && \ go install ./... && \
mv $GOPATH/bin/mint* /usr/local/bin && \ mv $GOPATH/bin/mint* /usr/local/bin && \
mv ./mint-client /usr/local/bin/ mv ./mint-client /usr/local/bin/
...@@ -65,4 +67,8 @@ ENV TMROOT /home/$USER/.eris/blockchains/tendermint ...@@ -65,4 +67,8 @@ ENV TMROOT /home/$USER/.eris/blockchains/tendermint
# run tendermint # run tendermint
# really should be entrypoint but broken in API 1.19 # really should be entrypoint but broken in API 1.19
# ports: 1337:eris-db API; 46656:mint-peer; 46657:mint-rpc
EXPOSE 1337
EXPOSE 46656
EXPOSE 46657
CMD ["erisdb-wrapper"] CMD ["erisdb-wrapper"]
...@@ -31,7 +31,7 @@ deployment: ...@@ -31,7 +31,7 @@ deployment:
- docker push eris/erisdb:0.10 - docker push eris/erisdb:0.10
unstable: unstable:
branch: develop branch: develop
comands: commands:
- "export ERISDB_BUILD_BRANCH=$CIRCLE_BRANCH && DOCKER/build.sh" - "export ERISDB_BUILD_BRANCH=$CIRCLE_BRANCH && DOCKER/build.sh"
- docker tag eris/erisdb:$CIRCLE_BRANCH eris/db:unstable - docker tag eris/erisdb:$CIRCLE_BRANCH eris/db:unstable
- docker push eris/erisdb:unstable - docker push eris/erisdb:unstable
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment