Skip to content

Commit

Permalink
build from latest tagged version unless PW_FEEDER_BRANCH set
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenye committed Jan 27, 2024
1 parent e6d1cc8 commit e4eb7f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
git clone --branch "${PW_FEEDER_BRANCH:-main}" https://github.com/plane-watch/pw-feeder.git /src/pw-feeder && \
git clone https://github.com/plane-watch/pw-feeder.git /src/pw-feeder && \
pushd /src/pw-feeder && \
LATEST_TAG=$(git describe --tags --abbrev=0) && \
git checkout "${PW_FEEDER_BRANCH:-$LATEST_TAG}" && \
pushd /src/pw-feeder/pw-feeder && \
go mod tidy && \
go build ./cmd/pw-feeder/
Expand All @@ -22,10 +25,6 @@ ENV BEASTPORT=30005 \
S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
ENABLE_MLAT=true \
MLAT_INPUT_TYPE=beast
# ACARS_PORT=15550 \
# VDLM2_PORT=15555 \
# PW_FEED_DESTINATION_ACARS_PORT=5550 \
# PW_FEED_DESTINATION_VDLM2_PORT=5555 \

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down

0 comments on commit e4eb7f7

Please sign in to comment.