Skip to content
Permalink
Browse files

Adapt download and Dockerfile to 3.9 release

There's no need to fetch 3.9-SNAPSHOT any more.
Also the download directory for released versions was changed.
  • Loading branch information
mederly committed Nov 12, 2018
1 parent 228bed7 commit a6cce4bd51c296869ef24ad3960f31906bd1e901
Showing with 11 additions and 4 deletions.
  1. +1 −1 Dockerfile
  2. +10 −3 download-midpoint
@@ -49,7 +49,7 @@ RUN cp /dev/null /etc/httpd/conf.d/ssl.conf \

# Build arguments

ARG MP_VERSION=3.9-SNAPSHOT
ARG MP_VERSION=3.9
ARG MP_DIST_FILE=midpoint-dist.tar.gz

ENV MP_DIR /opt/midpoint
@@ -6,14 +6,21 @@ if [[ -n "$1" ]]; then
MP_VERSION=$1
else
if [[ $tag == "latest" ]]; then
MP_VERSION=3.9-SNAPSHOT
MP_VERSION=3.9
else
MP_VERSION=$tag
fi
fi
echo "Downloading midPoint $MP_VERSION"

if [[ $MP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
URL_BASE="https://evolveum.com/downloads/midpoint/$MP_VERSION/"
else
URL_BASE="https://evolveum.com/downloads/midpoint-tier/"
fi

echo "Downloading midPoint $MP_VERSION from $URL_BASE"
echo "-----------------------------------------"
curl --output $DIR/midpoint-dist.tar.gz "https://evolveum.com/downloads/midpoint-tier/midpoint-$MP_VERSION-dist.tar.gz"
curl --output $DIR/midpoint-dist.tar.gz "$URL_BASE/midpoint-$MP_VERSION-dist.tar.gz"
echo "-----------------------------------------"
echo "Checking the download..."
if tar -tf $DIR/midpoint-dist.tar.gz >/dev/null; then

0 comments on commit a6cce4b

Please sign in to comment.
You can’t perform that action at this time.