Skip to content

Commit

Permalink
bump flexo, scruffy, and rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmacro committed Dec 5, 2023
1 parent a11cce0 commit 97e2f25
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions images/flexo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
ARG FLEXO_VERSION=1.6.6
ARG FLEXO_VERSION=1.6.9
ARG SCRUFFY_VERSION=0.2.0

# A separate stage is used only for fetching the dependencies:
# This is done so that we can use cargo's --offline mode in a subsequent stage,
# as a workaround for this bug: https://github.com/docker/buildx/issues/395
FROM --platform=linux/amd64 rust:1.52.1-buster as fetch
FROM --platform=linux/amd64 rust:1.64.0-buster as fetch

ARG FLEXO_VERSION
ARG SCRUFFY_VERSION

WORKDIR /tmp

RUN mkdir /tmp/flexo_sources

RUN wget -q https://github.com/nroi/flexo/archive/$FLEXO_VERSION.tar.gz -O flexo.tar.gz && \
wget -q https://github.com/nroi/scruffy/archive/0.1.0.tar.gz -O scruffy.tar.gz && \
wget -q https://github.com/nroi/scruffy/archive/$SCRUFFY_VERSION.tar.gz -O scruffy.tar.gz && \
tar xf flexo.tar.gz && \
tar xf scruffy.tar.gz

Expand All @@ -22,12 +24,12 @@ RUN cd /tmp/flexo-$FLEXO_VERSION/flexo && \
cp -r flexo /tmp/flexo_sources/ && \
cp /tmp/flexo-$FLEXO_VERSION/flexo_purge_cache /tmp/flexo_purge_cache

RUN cd '/tmp/scruffy-0.1.0' && \
RUN cd /tmp/scruffy-$SCRUFFY_VERSION && \
cargo vendor && \
cd .. && \
cp -r 'scruffy-0.1.0' /tmp/scruffy_sources
cp -r scruffy-$SCRUFFY_VERSION /tmp/scruffy_sources

FROM rust:1.52.1-buster as build
FROM rust:1.64.0-buster as build

COPY --from=fetch /tmp/flexo_sources/ /tmp/flexo_sources
COPY --from=fetch /tmp/scruffy_sources/ /tmp/scruffy_sources
Expand Down

0 comments on commit 97e2f25

Please sign in to comment.