Skip to content

Commit

Permalink
base image ubuntu:22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
mttfranci committed Mar 23, 2024
1 parent 05373f9 commit 1c47434
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- base image ubuntu:22.04

## [1.0.0] - 2024-03-23

### Added
Expand Down
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,22 @@ RUN set -x \
&& cd ${BASE_DIR}/webapps/cmis \
&& unzip -qq /tmp/chemistry-opencmis-server-${CMIS_SERVER_TYPE}-${OPENCMIS_VERSION}.war -d .

RUN set -x \
&& cd /tmp \
&& curl -LO https://corretto.aws/downloads/resources/8.402.08.1/amazon-corretto-8.402.08.1-linux-x64.tar.gz \
&& mkdir ${BASE_DIR}/jdk-8 \
&& cd ${BASE_DIR}/jdk-8

RUN set -x \
&& tar xf /tmp/amazon-corretto-8.402.08.1-linux-x64.tar.gz \
&& mv /tmp/amazon-corretto-8.402.08.1-linux-x64/* ${BASE_DIR}/jdk-8

COPY bin/setenv.sh ${BASE_DIR}/bin

#####
# Final stage
#####
FROM exoplatform/jdk:8-ubuntu-1804
FROM ubuntu:22.04

# thanks to eXo Platform
# https://github.com/exo-docker
Expand Down Expand Up @@ -86,5 +96,5 @@ VOLUME /data

USER tomcat

ENTRYPOINT ["/usr/local/bin/tini", "--"]
#ENTRYPOINT ["/usr/local/bin/tini", "--"]
CMD [ "/opt/cmis-server/bin/catalina.sh", "run" ]
9 changes: 9 additions & 0 deletions bin/setenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,12 @@ export CATALINA_OPTS="${CATALINA_OPTS:-} -Xmx${JVM_SIZE_MAX} -Xms${JVM_SIZE_MIN}
echo "INFO Configuring cmis server..."
cp -v /repository-template.properties ${INSTALL_DIR}/webapps/cmis/WEB-INF/classes/repository.properties
replace_in_file ${INSTALL_DIR}/webapps/cmis/WEB-INF/classes/repository.properties "@CMIS_USERS_PASSWORD@" "${CMIS_USERS_PASSWORD}"

export JAVA_HOME=${INSTALL_DIR}/jdk-8
export PATH=${INSTALL_DIR}/bin:${PATH}

echo "debug 1"
ls -l ${INSTALL_DIR}

echo "debug 2"
ls -l ${INSTALL_DIR}/jdk-8

0 comments on commit 1c47434

Please sign in to comment.