-
Notifications
You must be signed in to change notification settings - Fork 6
adding 7.0.24 #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
adding 7.0.24 #27
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| FROM eclipse-temurin:17.0.15_6-jdk | ||
|
|
||
| LABEL org.opencontainers.image.base.name="eclipse-temurin:17.0.15_6-jdk" | ||
| LABEL org.opencontainers.image.source="https://github.com/eclipse-ee4j/glassfish.docker" | ||
| LABEL org.opencontainers.image.url="https://github.com/eclipse-ee4j/glassfish.docker/wiki" | ||
|
|
||
| LABEL org.opencontainers.image.title="Eclipse GlassFish" | ||
| LABEL org.opencontainers.image.description="The Official Eclipse GlassFish Docker Image" | ||
| LABEL org.opencontainers.image.version="7.0.24" | ||
|
|
||
| LABEL org.opencontainers.image.authors="glassfish-dev@eclipse.org" | ||
| LABEL org.opencontainers.image.vendor="Eclipse Foundation" | ||
| LABEL org.opencontainers.image.licenses="EPL-2.0" | ||
|
|
||
| EXPOSE 4848 9009 8080 8181 7676 8686 3700 3820 3920 6666 | ||
|
|
||
| # You should use own credentials and own files! These are just defaults. | ||
| ARG AS_ADMIN_PASSWORD=admin \ | ||
| PATH_GF_PASSWORD_FILE_FOR_CHANGE=/password-change.txt \ | ||
| UID=1000 \ | ||
| GID=1000 | ||
| ENV PATH_GF_HOME=/opt/glassfish7 \ | ||
| AS_ADMIN_USER=admin \ | ||
| AS_ADMIN_PASSWORDFILE=/password.txt | ||
| ENV AS_USER=${AS_ADMIN_USER} \ | ||
| AS_PASSWORD_FILE=${AS_ADMIN_PASSWORDFILE} \ | ||
| AS_TRACE=false \ | ||
| AS_TRACE_LOGGING=false \ | ||
| AS_TRACE_BOOTSTRAP=false \ | ||
| AS_STOP_TIMEOUT=9500 \ | ||
| GLASSFISH_DOWNLOAD_SHA512=34a6fec9697000c9a6a554deb5c4ec8e9faf7f293ea6c0f57f5a4f5623f927930e05943d6790f428cd7f91081c2865baadc6be9d4864f9cdbb1223da23401096 \ | ||
| GLASSFISH_VERSION=7.0.24 \ | ||
| PATH_GF_BIN=${PATH_GF_HOME}/bin \ | ||
| PATH_GF_SERVER_LOG="${PATH_GF_HOME}/glassfish/domains/domain1/logs/server.log" | ||
| ENV PATH="${PATH_GF_BIN}:${PATH}" | ||
|
|
||
| COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh | ||
|
|
||
| RUN true \ | ||
| && set -x \ | ||
| && apt update \ | ||
| && apt upgrade -y \ | ||
| && apt install -y gpg unzip \ | ||
| && curl -fL "https://repo1.maven.org/maven2/org/glassfish/main/distributions/glassfish/${GLASSFISH_VERSION}/glassfish-${GLASSFISH_VERSION}.zip.asc" -o glassfish.zip.asc \ | ||
| && curl -fL "https://repo1.maven.org/maven2/org/glassfish/main/distributions/glassfish/${GLASSFISH_VERSION}/glassfish-${GLASSFISH_VERSION}.zip" -o glassfish.zip \ | ||
| && export GNUPGHOME="$(mktemp -d)" \ | ||
| && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys D4A77129F00F736293BE5A51AFC18A2271EDDFE1 \ | ||
| && gpg --batch --verify glassfish.zip.asc glassfish.zip \ | ||
| && rm glassfish.zip.asc \ | ||
| && echo "$GLASSFISH_DOWNLOAD_SHA512 glassfish.zip" | sha512sum --strict --check \ | ||
| && mkdir -p "${PATH_GF_HOME}" \ | ||
| && unzip -q glassfish.zip -d "${PATH_GF_HOME}/.." \ | ||
| && rm glassfish.zip \ | ||
| && userdel -r ubuntu \ | ||
| && groupadd -g ${GID} glassfish \ | ||
| && useradd -r -l -u ${UID} -g ${GID} -d "${PATH_GF_HOME}" -s /bin/bash glassfish \ | ||
| && echo "Generating password file at ${AS_PASSWORD_FILE} ..." \ | ||
| && set +x \ | ||
| && echo "AS_ADMIN_PASSWORD=${AS_ADMIN_PASSWORD}" > "${AS_PASSWORD_FILE}" \ | ||
| && chown glassfish:glassfish "${AS_PASSWORD_FILE}" \ | ||
| && echo "AS_ADMIN_PASSWORD=" > "${PATH_GF_PASSWORD_FILE_FOR_CHANGE}" \ | ||
| && echo "AS_ADMIN_NEWPASSWORD=${AS_ADMIN_PASSWORD}" >> "${PATH_GF_PASSWORD_FILE_FOR_CHANGE}" \ | ||
| && echo "" >> "${PATH_GF_PASSWORD_FILE_FOR_CHANGE}" \ | ||
| && unset AS_ADMIN_PASSWORD \ | ||
| && set -x \ | ||
| && env | sort \ | ||
| && AS_START_TIMEOUT=120000 asadmin start-domain \ | ||
| && curl -o /dev/null http://localhost:4848 \ | ||
| && asadmin --passwordfile ${PATH_GF_PASSWORD_FILE_FOR_CHANGE} change-admin-password \ | ||
| && asadmin stop-domain --kill \ | ||
| && AS_START_TIMEOUT=120000 asadmin start-domain \ | ||
| && curl -o /dev/null http://localhost:4848 \ | ||
| && asadmin set-log-attributes org.glassfish.main.jul.handler.GlassFishLogHandler.enabled=false \ | ||
| && asadmin set-log-attributes org.glassfish.main.jul.handler.SimpleLogHandler.level=FINEST \ | ||
| && asadmin enable-secure-admin \ | ||
| && asadmin stop-domain --kill \ | ||
| && rm -f ${PATH_GF_SERVER_LOG} ${PATH_GF_PASSWORD_FILE_FOR_CHANGE} \ | ||
| && chown -R glassfish:glassfish "${PATH_GF_HOME}" \ | ||
| && chmod +x /usr/local/bin/docker-entrypoint.sh \ | ||
| && mkdir ${PATH_GF_HOME}/autodeploy \ | ||
| && echo "Installation was successful." | ||
|
|
||
| USER glassfish | ||
| WORKDIR ${PATH_GF_HOME} | ||
| ENTRYPOINT ["docker-entrypoint.sh"] | ||
| CMD ["startserv"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| #!/bin/bash | ||
| set -e; | ||
|
|
||
| change_passwords () { | ||
| local PWD_FILE=/tmp/passwordfile | ||
| local COMMAND= | ||
| rm -rf $PWD_FILE | ||
|
|
||
| if [ x"${AS_ADMIN_PASSWORD}" != x ]; then | ||
| echo -e "AS_ADMIN_PASSWORD=admin\nAS_ADMIN_NEWPASSWORD=${AS_ADMIN_PASSWORD}" >> $PWD_FILE | ||
| COMMAND="change-admin-password --passwordfile=${PWD_FILE}" | ||
| echo "AS_ADMIN_PASSWORD=${AS_ADMIN_PASSWORD}" > "${AS_PASSWORD_FILE}" | ||
| fi | ||
|
|
||
| if [ x"${AS_ADMIN_MASTERPASSWORD}" != x ]; then | ||
| echo -e "AS_ADMIN_MASTERPASSWORD=changeit\nAS_ADMIN_NEWMASTERPASSWORD=${AS_ADMIN_MASTERPASSWORD}" >> ${PWD_FILE} | ||
| COMMAND="${COMMAND} | ||
| change-master-password --passwordfile=${PWD_FILE} --savemasterpassword=true" | ||
| fi | ||
|
|
||
| if [ x"${COMMAND}" != x ]; then | ||
| printf "${COMMAND}" | asadmin --interactive=false | ||
| fi | ||
|
|
||
| rm -rf ${PWD_FILE} | ||
| } | ||
|
|
||
| change_passwords | ||
|
|
||
| if [ -f custom/init.sh ]; then | ||
| /bin/bash custom/init.sh | ||
| fi | ||
|
|
||
| if [ -f custom/init.asadmin ]; then | ||
| asadmin --interactive=false multimode -f custom/init.asadmin | ||
| fi | ||
|
|
||
|
|
||
| if [ "$1" != 'asadmin' -a "$1" != 'startserv' -a "$1" != 'runembedded' ]; then | ||
| exec "$@" | ||
| fi | ||
|
|
||
| if [ "$1" == 'runembedded' ]; then | ||
| shift 1 | ||
| if [[ "$SUSPEND" == true ]] | ||
| then | ||
| JVM_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=9009 $JVM_OPTS" | ||
| elif [[ "$DEBUG" == true ]] | ||
| then | ||
| JVM_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009 $JVM_OPTS" | ||
| fi | ||
| exec java $JVM_OPTS -jar glassfish/lib/embedded/glassfish-embedded-static-shell.jar "$@" | ||
| fi | ||
|
|
||
| CONTAINER_ALREADY_STARTED="CONTAINER_ALREADY_STARTED_PLACEHOLDER" | ||
| if [ ! -f "$CONTAINER_ALREADY_STARTED" ] | ||
| then | ||
| touch "$CONTAINER_ALREADY_STARTED" && | ||
| rm -rf glassfish/domains/domain1/autodeploy/.autodeploystatus || true | ||
| fi | ||
|
|
||
| if [ "$1" == 'startserv' ]; then | ||
| exec "$@" | ||
| fi | ||
|
|
||
| on_exit () { | ||
| EXIT_CODE=$? | ||
| set +e; | ||
| ps -lAf; | ||
| asadmin stop-domain --force --kill; | ||
| exit $EXIT_CODE; | ||
| } | ||
| trap on_exit EXIT | ||
|
|
||
| env|sort && "$@" & wait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Tags: 7.0.24, 7.0.24-jdk17, 7.0.24-jdk17-eclipse-temurin | ||
| Architectures: amd64, arm64v8 | ||
| Directory: 7.0.24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Eclipse GlassFish is a Jakarta EE Full Profile compatible implementation. | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.