Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Sep 13, 2024
1 parent 7726b7f commit c7ec8dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ RUN --mount=type=bind,from=downloader,source=/,target=/downloader/ \
# Install mlatclient that was copied in from downloader image
tar zxf /downloader/mlatclient.tgz -C / && \
# test mlat-client
/usr/local/bin/mlat-client --help > /dev/null || exit 1 && \
/usr/local/bin/mlat-client --help > /dev/null && \
#
# Copy anfeeder:
mkdir -p /home/py/ && \
cp /downloader/ANfeeder /home/py/ANfeeder && \
# remove pycache introduced by testing mlat-client
find /usr | grep -E "/__pycache__$" | xargs rm -rf || true && \
{ find /usr | grep -E "/__pycache__$" | xargs rm -rf || true; } && \
# Add Container Version
[[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true && \
{ [[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true; } && \
echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(curl -ssL https://api.github.com/repos/$VERSION_REPO/commits/$VERSION_BRANCH | awk '{if ($1=="\"sha\":") {print substr($2,2,7); exit}}')_$VERSION_BRANCH" > /.CONTAINER_VERSION && \
#
# Clean up
Expand Down

0 comments on commit c7ec8dc

Please sign in to comment.