Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
micw committed Nov 27, 2023
1 parent ddd1921 commit c5d2c6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM alpine:3.18 as build

ENV VERNEMQ_VERSION="1.13.0"
ENV VERNEMQ_PULL_REQUEST="2221"
# Release 1.13.0
ENV VERNEMQ_DOCKER_VERSION="1055f9d3a465242a9969cd8401050aa52ac68121"

Expand All @@ -19,6 +20,10 @@ RUN git clone --depth 1 --branch ${VERNEMQ_VERSION} \
https://github.com/vernemq/vernemq.git \
/usr/src/vernemq

RUN cd /usr/src/vernemq && \
git fetch origin pull/${VERNEMQ_PULL_REQUEST}/head:pull/${VERNEMQ_PULL_REQUEST} && \
git switch pull/${VERNEMQ_PULL_REQUEST}

RUN cd /usr/src/vernemq && \
make rel && \
mv _build/default/rel/vernemq /vernemq
Expand All @@ -44,7 +49,7 @@ RUN apk --no-cache --update --available upgrade && \
ENV DOCKER_VERNEMQ_KUBERNETES_LABEL_SELECTOR="app=vernemq" \
DOCKER_VERNEMQ_LOG__CONSOLE=console \
PATH="/vernemq/bin:$PATH" \
VERNEMQ_VERSION="1.13.0"
VERNEMQ_VERSION="1.13.0-pr-${VERNEMQ_PULL_REQUEST}"
WORKDIR /vernemq

# Changed: removed COPY commands, replaced by CURL downloads above
Expand Down

0 comments on commit c5d2c6d

Please sign in to comment.