Skip to content

Commit

Permalink
Merge pull request #229 from Yuaninga/master
Browse files Browse the repository at this point in the history
fix:arm64 compilation
  • Loading branch information
Yuaninga authored Sep 15, 2023
2 parents a063e99 + adc3f30 commit 466d1d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ docker-build:

docker-build-arm64:
GOOS="linux" GOARCH="arm64" go build $(GO_FLAGS) -o build/_output/bin/chaosblade-operator cmd/manager/main.go
docker build -f build/image/arm/Dockerfile -t ghcr.io/chaosbladeio/chaosblade-operator-arm64:${BLADE_VERSION} .
docker buildx build -f build/image/arm/Dockerfile --platform=linux/arm64 -t ghcr.io/chaosbladeio/chaosblade-operator-arm64:${BLADE_VERSION} .

push_image:
docker push ghcr.io/chaosbladeio/chaosblade-operator:${BLADE_VERSION}
Expand Down
1 change: 1 addition & 0 deletions build/image/amd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV OPERATOR=/usr/local/bin/chaosblade-operator \
COPY --from=builder ${OPERATOR} /usr/local/bin/
COPY build/bin /usr/local/bin

RUN chmod 777 /usr/local/bin/user_setup
RUN /usr/local/bin/user_setup

ENTRYPOINT ["/usr/local/bin/entrypoint"]
1 change: 1 addition & 0 deletions build/image/arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV OPERATOR=/usr/local/bin/chaosblade-operator \
COPY --from=builder ${OPERATOR} /usr/local/bin/
COPY build/bin /usr/local/bin

RUN chmod 777 /usr/local/bin/user_setup
RUN /usr/local/bin/user_setup

ENTRYPOINT ["/usr/local/bin/entrypoint"]

0 comments on commit 466d1d6

Please sign in to comment.