Skip to content

Commit

Permalink
Update Dockerfile Golang version + Rosetta version (#203)
Browse files Browse the repository at this point in the history
* update Dockerfile

* update middleware version

* nits

* don't install evm plugin
  • Loading branch information
patrick-ogrady authored Mar 8, 2023
1 parent aa522c5 commit 7121edd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches:
branches:
- master
pull_request:

Expand Down Expand Up @@ -32,4 +32,4 @@ jobs:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
version: latest
version: latest
2 changes: 1 addition & 1 deletion .github/workflows/create-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
shell: bash

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASS }}
Expand Down
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ------------------------------------------------------------------------------
# Build avalanche
# ------------------------------------------------------------------------------
FROM golang:1.19.1 AS avalanche
FROM golang:1.19.6 AS avalanche

ARG AVALANCHE_VERSION

Expand All @@ -16,7 +16,7 @@ RUN git checkout $AVALANCHE_VERSION && \
# ------------------------------------------------------------------------------
# Build avalanche rosetta
# ------------------------------------------------------------------------------
FROM golang:1.19.1 AS rosetta
FROM golang:1.19.6 AS rosetta

ARG ROSETTA_VERSION

Expand Down Expand Up @@ -53,11 +53,6 @@ COPY --from=avalanche \
/go/src/github.com/ava-labs/avalanchego/build/avalanchego \
/app/avalanchego

# Install evm plugin
COPY --from=avalanche \
/go/src/github.com/ava-labs/avalanchego/build/plugins/evm \
/app/plugins/evm

# Install rosetta server
COPY --from=rosetta \
/go/src/github.com/ava-labs/avalanche-rosetta/rosetta-server \
Expand Down
2 changes: 1 addition & 1 deletion service/rosetta.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ var NodeVersion = fmt.Sprintf(
)

const (
MiddlewareVersion = "0.1.25"
MiddlewareVersion = "0.1.27"
BlockchainName = "Avalanche"
)

0 comments on commit 7121edd

Please sign in to comment.