Skip to content

Commit 2c3df83

Browse files
authored
Merge pull request #566 from WASdev/vNext
Merge vNext (23.0.0.11) changes into main
2 parents 3721e95 + 54b82b2 commit 2c3df83

79 files changed

Lines changed: 182 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_install:
1010
env:
1111
- RELEASE=../ga/23.0.0.6
1212
- RELEASE=../ga/23.0.0.9
13-
- RELEASE=../ga/23.0.0.10
13+
- RELEASE=../ga/23.0.0.11
1414
- RELEASE=../ga/latest
1515

1616
script:

create-new-release.sh

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/bin/bash
2+
3+
echo "Hello from the create-new-release.sh script!"
4+
echo $(date)
5+
6+
# Set variables to the positional parameters
7+
OLD_VERSION=$1
8+
NEW_VERSION=$2
9+
BUILD_LABEL=$3
10+
11+
# See if NEW_VERSION and OLD_VERSION fit expected pattern.
12+
if [[ $OLD_VERSION =~ 2[3-9]\.0\.0\.[0-9]+ && $NEW_VERSION =~ 2[3-9]\.0\.0\.[0-9]+ ]];
13+
then
14+
echo "$OLD_VERSION and $NEW_VERSION matches expected version format."
15+
else
16+
echo "Either $OLD_VERSION or $NEW_VERSION does not fit expected version format."
17+
exit 1;
18+
fi
19+
20+
# Get last digit of old version
21+
OLD_SHORT_VERSION=${OLD_VERSION:7}
22+
23+
echo "OLD_VERSION = $OLD_VERSION"
24+
echo "NEW_VERSION = $NEW_VERSION"
25+
echo "BUILD_LABEL = $BUILD_LABEL"
26+
echo "OLD_SHORT_VERSION = $OLD_SHORT_VERSION"
27+
28+
echo "Copying latest files to $NEW_VERSION"
29+
cp -r ./ga/latest ./ga/$NEW_VERSION
30+
31+
# Perform the substitutions in both latest and $NEW_VERSION directories.
32+
for file in $(find ./ga/latest ./ga/$NEW_VERSION -name Dockerfile.*); do
33+
echo "Processing $file";
34+
35+
sed -i'.bak' -e "s/$OLD_VERSION/$NEW_VERSION/" $file;
36+
sed -i'.bak' -e "s/ARG LIBERTY_BUILD_LABEL=.*/ARG LIBERTY_BUILD_LABEL=$BUILD_LABEL/g" $file;
37+
38+
# Do these substitutions only in $NEW_VERSION, not latest.
39+
if [[ "$file" == "./ga/$NEW_VERSION/"* ]];
40+
then
41+
sed -i'.bak' -e "s/ARG PARENT_IMAGE=icr.io\/appcafe\/websphere-liberty:kernel/ARG PARENT_IMAGE=icr.io\/appcafe\/websphere-liberty:$NEW_VERSION-kernel/g" $file;
42+
sed -i'.bak' -e "s/FROM websphere-liberty:kernel/FROM websphere-liberty:$NEW_VERSION-kernel/g" $file;
43+
fi
44+
45+
# Clean up temp files
46+
rm $file.bak
47+
48+
done
49+
50+
# Update the .travis.yml file.
51+
sed -i'.bak' -e "s/RELEASE=\.\.\/ga\/$OLD_VERSION/RELEASE=\.\.\/ga\/$NEW_VERSION/" ./.travis.yml;
52+
rm ./.travis.yml.bak;
53+
54+
# Update the images.txt file
55+
cp ./ga/$OLD_VERSION/images.txt ./ga/$NEW_VERSION/images.txt;
56+
sed -i'.bak' -e "s/$OLD_VERSION/$NEW_VERSION/g" ./ga/$NEW_VERSION/images.txt;
57+
rm ./ga/$NEW_VERSION/images.txt.bak;
58+
59+
if [[ $(( $OLD_SHORT_VERSION % 3 )) -eq 0 ]]
60+
then
61+
:
62+
else
63+
rm -rf ./ga/$OLD_VERSION
64+
fi
65+
66+
# Finally, comment out "ga/*/*/resources/*" in .gitignore so
67+
# newly created $NEW_VERSION/full/resources and $NEW_VERSION/kernel/resources
68+
# directories can be committed and pushed.
69+
sed -i'.bak' -e "s/ga\/\*\/\*\/resources\/\*/#ga\/\*\/\*\/resources\/\*/g" .gitignore
70+
rm ./.gitignore.bak
71+
72+
echo "Done performing file updates.";

ga/23.0.0.10/images.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java8-ibmjava-ubi
15+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java8-ibmjava-ubi
1616
FROM $PARENT_IMAGE AS installBundle
1717

1818
ARG VERBOSE=false
@@ -36,7 +36,7 @@ RUN set -eux; \
3636
rm -rf /output/workarea /output/logs; \
3737
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;
3838

39-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java8-ibmjava-ubi
39+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java8-ibmjava-ubi
4040
FROM $PARENT_IMAGE
4141
ARG VERBOSE=false
4242

ga/23.0.0.10/full/Dockerfile.ubi.openjdk11 renamed to ga/23.0.0.11/full/Dockerfile.ubi.openjdk11

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java11-openj9-ubi
15+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java11-openj9-ubi
1616
FROM $PARENT_IMAGE AS installBundle
1717

1818
ARG VERBOSE=false
@@ -36,7 +36,7 @@ RUN set -eux; \
3636
rm -rf /output/workarea /output/logs; \
3737
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;
3838

39-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java11-openj9-ubi
39+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java11-openj9-ubi
4040
FROM $PARENT_IMAGE
4141
ARG VERBOSE=false
4242

ga/23.0.0.10/full/Dockerfile.ubi.openjdk17 renamed to ga/23.0.0.11/full/Dockerfile.ubi.openjdk17

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java17-openj9-ubi
15+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java17-openj9-ubi
1616
FROM $PARENT_IMAGE AS installBundle
1717

1818
ARG VERBOSE=false
@@ -36,7 +36,7 @@ RUN set -eux; \
3636
rm -rf /output/workarea /output/logs; \
3737
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;
3838

39-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java17-openj9-ubi
39+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java17-openj9-ubi
4040
FROM $PARENT_IMAGE
4141
ARG VERBOSE=false
4242

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java8-openj9-ubi
15+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java8-openj9-ubi
1616
FROM $PARENT_IMAGE AS installBundle
1717

1818
ARG VERBOSE=false
@@ -36,7 +36,7 @@ RUN set -eux; \
3636
rm -rf /output/workarea /output/logs; \
3737
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;
3838

39-
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.10-kernel-java8-openj9-ubi
39+
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:23.0.0.11-kernel-java8-openj9-ubi
4040
FROM $PARENT_IMAGE
4141
ARG VERBOSE=false
4242

ga/23.0.0.10/full/Dockerfile.ubuntu.ibmjava8 renamed to ga/23.0.0.11/full/Dockerfile.ubuntu.ibmjava8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM websphere-liberty:23.0.0.10-kernel-java8-ibmjava
15+
FROM websphere-liberty:23.0.0.11-kernel-java8-ibmjava
1616

1717
ARG VERBOSE=false
1818
ARG REPOSITORIES_PROPERTIES=""

ga/23.0.0.10/full/Dockerfile.ubuntu.openjdk11 renamed to ga/23.0.0.11/full/Dockerfile.ubuntu.openjdk11

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM websphere-liberty:23.0.0.10-kernel-java11-openj9
15+
FROM websphere-liberty:23.0.0.11-kernel-java11-openj9
1616

1717
ARG VERBOSE=false
1818
ARG REPOSITORIES_PROPERTIES=""

0 commit comments

Comments
 (0)