forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile and Dockerfile.dev for development
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 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,28 @@ | ||
FROM alpine:3.5 | ||
|
||
# BCHOME is where your genesis.json, key.json and other files including state are stored. | ||
ENV BCHOME /basecoin | ||
|
||
# Create a basecoin user and group first so the IDs get set the same way, even | ||
# as the rest of this may change over time. | ||
RUN addgroup basecoin && \ | ||
adduser -S -G basecoin basecoin | ||
|
||
RUN mkdir -p $BCHOME && \ | ||
chown -R basecoin:basecoin $BCHOME | ||
WORKDIR $BCHOME | ||
|
||
# Expose the basecoin home directory as a volume since there's mutable state in there. | ||
VOLUME $BCHOME | ||
|
||
# jq and curl used for extracting `pub_key` from private validator while | ||
# deploying tendermint with Kubernetes. It is nice to have bash so the users | ||
# could execute bash commands. | ||
RUN apk add --no-cache bash curl jq | ||
|
||
COPY basecoin /usr/bin/basecoin | ||
|
||
ENTRYPOINT ["basecoin"] | ||
|
||
# By default you will get the basecoin with local MerkleEyes and in-proc Tendermint. | ||
CMD ["start", "--dir=${BCHOME}"] |
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,12 @@ | ||
FROM golang:latest | ||
|
||
RUN mkdir -p /go/src/github.com/tendermint/basecoin | ||
WORKDIR /go/src/github.com/tendermint/basecoin | ||
|
||
COPY Makefile /go/src/github.com/tendermint/basecoin/ | ||
COPY glide.yaml /go/src/github.com/tendermint/basecoin/ | ||
COPY glide.lock /go/src/github.com/tendermint/basecoin/ | ||
|
||
RUN make get_vendor_deps | ||
|
||
COPY . /go/src/github.com/tendermint/basecoin |
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