Skip to content

Commit

Permalink
Fix docker file rumal ver (robusta-dev#581)
Browse files Browse the repository at this point in the history
* use fixed ruamel version to avoid build errors

* pull the image before using cache from
  • Loading branch information
RoiGlinik authored Oct 26, 2022
1 parent e394d92 commit 31ff0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WORKDIR /app
# Install gcc to compile rumal.yaml.clib, wheel is missing.
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc \
&& pip3 install --no-cache-dir ruamel.yaml.clib \
&& pip3 install --no-cache-dir ruamel.yaml.clib==0.2.6 \
&& apt-get purge -y --auto-remove gcc \
&& rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 3 additions & 1 deletion build_release.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export DOCKER_BUILDKIT=1

docker pull us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-runner:cache

docker buildx build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--platform linux/arm64,linux/amd64 \
--cache-from us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-runner:cache \
--tag $IMAGE \
--tag us-central1-docker.pkg.dev/genuine-flight-317411/devel/robusta-runner:cache \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--push \
$BUILD_CONTEXT

0 comments on commit 31ff0d3

Please sign in to comment.