forked from cosmos/ibc-go
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update versions * add new docker files & make cmds for building images * add context dir to containers for new dockerfiles * small dockerfile fix Co-authored-by: jtieri <37750742+jtieri@users.noreply.github.com>
- Loading branch information
1 parent
d936b1b
commit 481bc33
Showing
8 changed files
with
118 additions
and
12 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,9 @@ | ||
.github/ | ||
build/ | ||
chain-code/ | ||
clib/ | ||
docs/ | ||
data/ | ||
scripts/ | ||
testnets/ | ||
two-chains/ |
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,42 @@ | ||
FROM golang:1.16-alpine AS build-env | ||
ARG VERSION | ||
|
||
# Set up dependencies | ||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev | ||
|
||
RUN apk add --no-cache $PACKAGES | ||
|
||
WORKDIR /go/src/github.com/ovrclk | ||
|
||
RUN git clone https://github.com/ovrclk/akash.git | ||
|
||
WORKDIR /go/src/github.com/ovrclk/akash | ||
|
||
RUN git checkout ${VERSION} && make install | ||
|
||
FROM alpine:edge | ||
|
||
RUN apk add --no-cache ca-certificates | ||
WORKDIR /root | ||
|
||
# Copy over binaries from the build-env | ||
COPY --from=build-env /go/bin/akash /usr/bin/akash | ||
|
||
#USER akash | ||
|
||
WORKDIR /akash | ||
|
||
COPY ./test/setup/akash-setup.sh . | ||
|
||
COPY ./test/setup/valkeys ./setup/valkeys | ||
|
||
USER root | ||
|
||
RUN chmod -R 777 ./setup | ||
|
||
#USER akash | ||
|
||
EXPOSE 26657 | ||
|
||
ENTRYPOINT [ "./akash-setup.sh" ] | ||
# NOTE: to run this image, docker run -d -p 26657:26657 ./akash-setup.sh {{chain_id}} {{genesis_account}} {{seeds}} {{priv_validator_key_path}} |
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,40 @@ | ||
FROM golang:1.16-alpine AS build-env | ||
ARG VERSION | ||
|
||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev | ||
|
||
RUN apk add --no-cache $PACKAGES | ||
|
||
WORKDIR /go/src/github.com/cosmos | ||
|
||
RUN git clone https://github.com/cosmos/gaia.git | ||
|
||
WORKDIR /go/src/github.com/cosmos/gaia | ||
|
||
RUN git checkout ${VERSION} && make build-linux | ||
|
||
FROM alpine:edge | ||
|
||
RUN apk add --no-cache ca-certificates | ||
WORKDIR /root | ||
|
||
COPY --from=build-env /go/src/github.com/cosmos/gaia/build/gaiad /usr/bin/gaiad | ||
|
||
#USER gaia | ||
|
||
WORKDIR /gaia | ||
|
||
COPY ./test/setup/gaia-setup.sh . | ||
|
||
COPY ./test/setup/valkeys ./setup/valkeys | ||
|
||
USER root | ||
|
||
RUN chmod -R 777 ./setup | ||
|
||
#USER gaia | ||
|
||
EXPOSE 26657 | ||
|
||
ENTRYPOINT [ "./gaia-setup.sh" ] | ||
# NOTE: to run this image, docker run -d -p 26657:26657 ./gaia-setup.sh {{chain_id}} {{genesis_account}} {{seeds}} {{priv_validator_key_path}} |
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
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