Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Sep 21, 2023
1 parent 6648ab6 commit ff6c0ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-latest-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ jobs:

- name: Build docker image (debug)
if: github.event.inputs.buildDebug != 'false'
env:
WASM: ${{ github.event.inputs.WASM }}
run: |
make docker-image-debug
make WASM="${WASM}" docker-image-debug
- name: Push to ECR (debug)
uses: jwalton/gh-ecr-push@v1
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ARG WASM=false
RUN apk add --no-cache --update \
ca-certificates \
git \
make
make \
build-base

WORKDIR axelar

Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,14 @@ build-push-docker-images-rosetta: populate-bytecode guard-SEMVER
@DOCKER_BUILDKIT=1 docker buildx build -f Dockerfile.rosetta \
--platform linux/amd64 \
--output "type=image,push=${PUSH_DOCKER_IMAGE}" \
--build-arg WASM="${WASM}" \
-t axelarnet/axelar-core:${SEMVER}-rosetta .


# Build a docker image that is able to run dlv and a debugger can be hooked up to
.PHONY: docker-image-debug
docker-image-debug:
@DOCKER_BUILDKIT=1 docker build -t axelar/core-debug -f ./Dockerfile.debug .
@DOCKER_BUILDKIT=1 docker build --build-arg WASM="${WASM}" -t axelar/core-debug -f ./Dockerfile.debug .

# Install all generate prerequisites
.Phony: prereqs
Expand Down

0 comments on commit ff6c0ea

Please sign in to comment.