From 3f33de7ea6946be585ea3eb53d74b4ff6e5acd5f Mon Sep 17 00:00:00 2001 From: Robert Jandow <38583713+robertjndw@users.noreply.github.com> Date: Mon, 29 Jan 2024 13:34:07 +0100 Subject: [PATCH] Update Dockerfile to download H2 JDBC Driver (#22) --- bamboo/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bamboo/Dockerfile b/bamboo/Dockerfile index f5fce9d..c90d076 100644 --- a/bamboo/Dockerfile +++ b/bamboo/Dockerfile @@ -61,6 +61,10 @@ RUN groupadd --gid ${RUN_GID} ${RUN_GROUP} \ && sed -i -e 's/^JVM_\(.*\)_MEMORY="\(.*\)"$/: \${JVM_\1_MEMORY:=\2}/g' ${BAMBOO_INSTALL_DIR}/bin/setenv.sh \ && sed -i -e 's/^JAVA_OPTS="/JAVA_OPTS="${JAVA_OPTS} /g' ${BAMBOO_INSTALL_DIR}/bin/setenv.sh +# Since Bamboo 9.4.2 the JDBC H2 Driver is not included anymore +ARG H2_VERSION=2.2.224 +ARG DOWNLOAD_H2_URL=https://search.maven.org/remotecontent?filepath=com/h2database/h2/${H2_VERSION}/h2-${H2_VERSION}.jar +RUN curl -L --silent ${DOWNLOAD_H2_URL} -o ${BAMBOO_INSTALL_DIR}/lib/h2-${H2_VERSION}.jar RUN git clone https://bitbucket.org/atlassian-docker/docker-bamboo-server/src/master/ ./git-repo RUN git clone https://bitbucket.org/atlassian-docker/docker-shared-components.git ./shared-components