Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Dockerfile for baremetal and ECS deployments #4398

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
CHAIN: ${{ matrix.chain }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
run: |
docker build -f=Dockerfile.staging . --progress=plain -t=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg chain=$CHAIN --build-arg DD_API_KEY=$DD_API_KEY
docker build -f=Dockerfile.development . --progress=plain -t=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg chain=$CHAIN --build-arg DD_API_KEY=$DD_API_KEY
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"

Expand Down
12 changes: 7 additions & 5 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM golang:1.23

ARG chain="polkadot"
ARG basepath="~/.local/share/gossamer"
ARG DD_API_KEY

ENV chain=${chain}
ENV GSSMRHOME=${basepath}
Expand All @@ -11,9 +10,12 @@ WORKDIR /gossamer

COPY . .

RUN go get ./...
RUN go install -trimpath github.com/ChainSafe/gossamer/cmd/gossamer
ARG GO_BUILD_FLAGS
RUN go build \
-trimpath \
-o /gossamer/bin/gossamer \
${GO_BUILD_FLAGS} \
./cmd/gossamer

RUN ["sh", "-c", "gossamer init --chain=${chain} --base-path=${basepath}/${chain}"]
Aminechakr marked this conversation as resolved.
Show resolved Hide resolved
ENTRYPOINT ["sh", "-c", "gossamer --chain=${chain} --base-path=${basepath}/${chain} --rpc-external=true --unsafe-rpc=true --prometheus-external --prometheus-port=9876 --pprof.enabled --pprof.listening-address=\":6060\""]
Aminechakr marked this conversation as resolved.
Show resolved Hide resolved
EXPOSE 7001 8545 8546 8540 9876 6060
ENTRYPOINT [ "/gossamer/bin/gossamer" ]
24 changes: 0 additions & 24 deletions Dockerfile.staging

This file was deleted.

Loading