-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathVERSIONS
86 lines (72 loc) · 1.84 KB
/
VERSIONS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Version numbers for components and the resulting image.
#
#
# Java
#
# Base image to use for the build.
#
JAVA_VERSION=amazoncorretto:21
#
# Jetty
#
JETTY_VERSION=12.0.16
#
# Shibboleth IdP
#
SHIB_RELEASE=5.1.3
#
# Image repository.
#
IMAGE_REPO=shibboleth-idp
#
# Image tag suffix, to allow us to build multiple images with (for example)
# different versions of Java. Use an empty entry for the main line.
#
IMAGE_SUFFIX=
#######################################################
### ###
### D O N O T C H A N G E A N Y T H I N G ###
### ###
### B E L O W T H I S P O I N T ###
### ###
#######################################################
#
# Split the Jetty version number into its components.
#
if [[ $JETTY_VERSION =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
JETTY_MAJOR=${BASH_REMATCH[1]}
JETTY_MINOR=${BASH_REMATCH[2]}
JETTY_PATCH=${BASH_REMATCH[3]}
else
JETTY_MAJOR=unknown
JETTY_MINOR=unknown
JETTY_PATCH=unknown
echo "Could not understand Jetty version $JETTY_VERSION"
fi
#
# Work out the Jetty release version. For Jetty 10+ this
# is the same as JETTY_VERSION.
#
JETTY_RELEASE=$JETTY_VERSION
#
# The jetty-base version is the minor version of the release.
#
JETTY_BASE_VERSION=$JETTY_MAJOR.$JETTY_MINOR
#echo "JETTY_VERSION: $JETTY_VERSION"
#echo " JETTY_MAJOR: $JETTY_MAJOR"
#echo " JETTY_MINOR: $JETTY_MINOR"
#echo " JETTY_PATCH: $JETTY_PATCH"
#echo "JETTY_RELEASE: $JETTY_RELEASE"
#echo "JETTY_BASE_VERSION: $JETTY_BASE_VERSION"
#
# Image tag and full name.
#
IMAGE_TAG=${JETTY_VERSION}${IMAGE_SUFFIX}
IMAGE_NAME=${IMAGE_REPO}:${IMAGE_TAG}
# Tell Emacs that this is a shell script.
# Local Variables:
# mode: sh
# indent-tabs-mode: nil
# tab-width: 4
# End: