Update dockerfiles and publish script

This commit is contained in:
anthonyraymond 2017-10-23 20:44:48 +02:00
parent 75f2f2535a
commit c1b8fc971a
3 changed files with 11 additions and 4 deletions

View file

@ -6,14 +6,13 @@ WORKDIR /joal/
RUN apt-get update \
&& apt-get install -y ca-certificates curl \
&& JOAL_VERSION="2.0.5" \
&& curl -LO https://github.com/anthonyraymond/joal/releases/download/v2.0.5/joal.tar.gz \
&& curl -LO "https://github.com/anthonyraymond/joal/releases/download/v$JOAL_VERSION/joal.tar.gz" \
&& tar --wildcards -zxvf joal.tar.gz "jack-of-all-trades-$JOAL_VERSION.jar" \
&& mv "jack-of-all-trades-$JOAL_VERSION.jar" joal.jar \
&& rm joal.tar.gz \
&& apt-get remove -y curl \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 5081 49152-65534
VOLUME /data

View file

@ -6,7 +6,7 @@ WORKDIR /joal/
RUN apt-get update \
&& apt-get install -y ca-certificates curl \
&& JOAL_VERSION="2.0.5" \
&& curl -LO https://github.com/anthonyraymond/joal/releases/download/v2.0.5/joal.tar.gz \
&& curl -LO "https://github.com/anthonyraymond/joal/releases/download/v$JOAL_VERSION/joal.tar.gz" \
&& tar --wildcards -zxvf joal.tar.gz "jack-of-all-trades-$JOAL_VERSION.jar" \
&& mv "jack-of-all-trades-$JOAL_VERSION.jar" joal.jar \
&& rm joal.tar.gz \

View file

@ -12,6 +12,14 @@ if ! grep -Fq "<version>$tagName</version>" ./pom.xml; then
echo -e "$(tput setaf 1)WOW, wait! The provided tag does not match the pom.xml version$(tput sgr0)"
exit 1
fi
if ! grep -Fq "JOAL_VERSION=\"$tagName\"" ./Dockerfile; then
echo -e "$(tput setaf 1)WOW, wait! The provided tag does not match the Dockerfile version$(tput sgr0)"
exit 1
fi
if ! grep -Fq "JOAL_VERSION=\"$tagName\"" ./Dockerfile.arm; then
echo -e "$(tput setaf 1)WOW, wait! The provided tag does not match the Dockerfile.arm version$(tput sgr0)"
exit 1
fi
# REDEFINE THE TAG NAME (prefixed with 'v')
tagName=v$tagName
@ -35,4 +43,4 @@ else
exit 1
fi
echo -e "$(tput setaf 2)Everything went fine :)$(tput sgr0)"
echo -e "$(tput setaf 2)Everything went fine :)$(tput sgr0)"