Skip to content

Commit

Permalink
update architecture for ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
laestrada committed Jul 6, 2022
1 parent 791ad85 commit 7abbdd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci-pipelines/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# This dockerfile is used to run the CI unit tests on azure pipelines.
# To test build locally run the following commands:
# `docker build -f ./.ci-pipelines/Dockerfile -t kpp-build .` from top level of project
# `docker build -f ./.ci-pipelines/Dockerfile --platform=amd64 -t kpp-build .` from top level of project
# To exec into the container run: `docker run -it --entrypoint /bin/bash kpp-build`

# Set platform/OS, a reference to maintainers, and the working directory.
#
# NOTE: The --platform=amd64 will make sure that the C-I tests will always
# run with AMD64 hardware. Otherwise, Docker will use the architecture
# of your current harddware, which might cause differences in library paths
# of your current hardware, which might cause differences in library paths
# (e.g. /lib/aarch64-linux-gnu on Mac/M1 vs. /lib/x86_64-linux-gnu on Linux).
# -- Lucas Estrada & Bob Yantosca (06 Jul 2022)
FROM --platform=amd64 ubuntu:20.04
FROM ubuntu:20.04
LABEL maintainer="GEOS-Chem Support Team <geos-chem-support@g.harvard.edu>"
WORKDIR /kpp

Expand Down
2 changes: 1 addition & 1 deletion .ci-pipelines/build-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ steps:
command: build
buildContext: $(Build.Repository.LocalPath) # The path to the source code repo
Dockerfile: .ci-pipelines/Dockerfile
arguments: --progress=plain
arguments: --platform=amd64 --progress=plain

0 comments on commit 7abbdd8

Please sign in to comment.