Skip to content

Commit

Permalink
modify devspace Dockerfile to build linux/amd64 images on ARM chips +…
Browse files Browse the repository at this point in the history
… remove some whitespaces (#11941)
  • Loading branch information
Tofel authored Feb 6, 2024
1 parent b3ec54a commit e0da2ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions charts/chainlink-cluster/devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ pipelines:
echo "Authorizing into ECR registry"
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin ${registry_id}.dkr.ecr.us-west-2.amazonaws.com
run_dependencies --all
ensure_pull_secrets --all
run_dependencies --all
ensure_pull_secrets --all
build_images ---var DOCKER_DEFAULT_PLATFORM=linux/amd64 --all -t $(git rev-parse --short HEAD)
kubectl annotate namespace ${DEVSPACE_NAMESPACE} janitor/ttl=${NS_TTL} || true
kubectl label namespace/${DEVSPACE_NAMESPACE} network=crib || true
Expand Down Expand Up @@ -63,7 +63,7 @@ pipelines:
else
echo "Image tag '$tag' not found. Please build the image using 'devspace deploy'"
exit 1
fi
fi
create_deployments app \
--set=helm.values.chainlink.nodes[0].image=$image \
--set=helm.values.chainlink.nodes[1].image=$image \
Expand Down
6 changes: 3 additions & 3 deletions charts/chainlink-cluster/devspace_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ COLOR_RESET="\033[0m"

# Print useful output for user
echo -e "${COLOR_BLUE}
%########%
%###########% ____ _____
%#########% | _ \ ___ __ __ / ___/ ____ ____ ____ ___
%########%
%###########% ____ _____
%#########% | _ \ ___ __ __ / ___/ ____ ____ ____ ___
%#########% | | | | / _ \\\\\ \ / / \___ \ | _ \ / _ | / __// _ \\
%#############% | |_| |( __/ \ V / ____) )| |_) )( (_| |( (__( __/
%#############% |____/ \___| \_/ \____/ | __/ \__,_| \___\\\\\___|
Expand Down
6 changes: 3 additions & 3 deletions core/chainlink.devspace.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image: Chainlink binary
FROM golang:1.21-bullseye as buildgo
FROM golang:1.21-bullseye AS buildgo
RUN go version
WORKDIR /chainlink

Expand All @@ -22,7 +22,7 @@ RUN go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-feeds | xargs
RUN go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-solana | xargs -I % ln -s % /chainlink-solana

# Build image: Plugins
FROM golang:1.21-bullseye as buildplugins
FROM golang:1.21-bullseye AS buildplugins
RUN go version

WORKDIR /chainlink-feeds
Expand All @@ -34,7 +34,7 @@ COPY --from=buildgo /chainlink-solana .
RUN go install ./pkg/solana/cmd/chainlink-solana

# Final image: ubuntu with chainlink binary
FROM golang:1.21-bullseye
FROM --platform=linux/amd64 golang:1.21-bullseye

ARG CHAINLINK_USER=chainlink
ENV DEBIAN_FRONTEND noninteractive
Expand Down

0 comments on commit e0da2ca

Please sign in to comment.