-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
9e56679
commit a2139a0
Showing
4 changed files
with
52 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,13 @@ | ||
APP_DIR ?= ../.. | ||
COMPOSE ?= docker-compose | ||
|
||
build-gaia: | ||
@docker buildx build --load --build-context app=$(APP_DIR)/gaia --build-context setup=$(APP_DIR)/neutron/network -t gaia-node-airdroptest -f dockerbuilds/Dockerfile.gaia --build-arg BINARY=gaiad . | ||
|
||
build-neutron: | ||
cd $(APP_DIR)/neutron && $(MAKE) build-docker-image | ||
|
||
build-hermes: | ||
@docker build -f dockerbuilds/Dockerfile.hermes -t hermes-airdroptest . | ||
|
||
build-all: build-gaia build-neutron build-hermes |
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 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM golang:1.20-alpine AS builder | ||
RUN apk upgrade -U -a | ||
WORKDIR /src/app/ | ||
COPY --from=app go.mod go.sum* ./ | ||
RUN go mod download | ||
COPY --from=app . . | ||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3 | ||
RUN apk add --no-cache $PACKAGES | ||
RUN CGO_ENABLED=0 make install | ||
|
||
FROM alpine:latest | ||
WORKDIR /opt/node/ | ||
COPY --from=setup . setup/ | ||
ARG BINARY | ||
COPY --from=builder /go/bin/${BINARY:-gaiad} /usr/local/bin/ | ||
|
||
EXPOSE 26656 26657 1317 9090 | ||
USER 0 | ||
|
||
CMD sh /opt/node/setup/init.sh && \ | ||
sh /opt/node/setup/init-gaiad.sh && \ | ||
sh /opt/node/setup/start.sh |
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,13 @@ | ||
FROM ubuntu:23.04 | ||
ARG HERMES_VERSION=v1.4.0 | ||
WORKDIR /app | ||
RUN apt-get update && apt-get install -y wget && \ | ||
PLATFORM=`uname -a | awk '{print $(NF-1)}'` && \ | ||
VERSION=$HERMES_VERSION && \ | ||
TARNAME="hermes-${VERSION}-${PLATFORM}-unknown-linux-gnu.tar.gz" && \ | ||
wget "https://github.com/informalsystems/hermes/releases/download/${VERSION}/${TARNAME}" && \ | ||
tar -xf "$TARNAME" && \ | ||
mv ./hermes /usr/local/bin/ && \ | ||
rm -rf "$TARNAME" | ||
|
||
ENTRYPOINT ["hermes", "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