diff --git a/appserver/extras/docker-images/basic/pom.xml b/appserver/extras/docker-images/basic/pom.xml index 2655d78efef..fd00015d3d7 100644 --- a/appserver/extras/docker-images/basic/pom.xml +++ b/appserver/extras/docker-images/basic/pom.xml @@ -1,4 +1,45 @@ + 4.0.0 diff --git a/appserver/extras/docker-images/basic/src/main/docker/Dockerfile b/appserver/extras/docker-images/basic/src/main/docker/Dockerfile index c897ffe898f..fbf930d6052 100644 --- a/appserver/extras/docker-images/basic/src/main/docker/Dockerfile +++ b/appserver/extras/docker-images/basic/src/main/docker/Dockerfile @@ -1,3 +1,42 @@ +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. + FROM @docker.java.image@ ENV HOME_DIR=/opt/payara diff --git a/appserver/extras/docker-images/micro/pom.xml b/appserver/extras/docker-images/micro/pom.xml index c359eeeaa52..65f685dedbd 100644 --- a/appserver/extras/docker-images/micro/pom.xml +++ b/appserver/extras/docker-images/micro/pom.xml @@ -1,4 +1,45 @@ + 4.0.0 diff --git a/appserver/extras/docker-images/micro/src/main/docker/Dockerfile b/appserver/extras/docker-images/micro/src/main/docker/Dockerfile index a5994ca2034..fa572430855 100644 --- a/appserver/extras/docker-images/micro/src/main/docker/Dockerfile +++ b/appserver/extras/docker-images/micro/src/main/docker/Dockerfile @@ -1,3 +1,42 @@ +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. + FROM @docker.java.image@ # Default payara ports to expose @@ -9,7 +48,7 @@ ENV HOME_DIR=${PAYARA_HOME} ENV PAYARA_DIR=${HOME_DIR} \ SCRIPT_DIR=${HOME_DIR} \ DEPLOY_DIR=/opt/payara/deployments \ - JVM_ARGS="" \ + JVM_ARGS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true" \ MEM_MAX_RAM_PERCENTAGE="70.0" \ MEM_XSS="512k" diff --git a/appserver/extras/docker-images/micro/src/main/docker/bin/entrypoint.sh b/appserver/extras/docker-images/micro/src/main/docker/bin/entrypoint.sh index b19a0eca815..89ea282400a 100644 --- a/appserver/extras/docker-images/micro/src/main/docker/bin/entrypoint.sh +++ b/appserver/extras/docker-images/micro/src/main/docker/bin/entrypoint.sh @@ -1,4 +1,42 @@ #!/bin/sh +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. + set -e exec java -XX:MaxRAMPercentage=${MEM_MAX_RAM_PERCENTAGE} -Xss${MEM_XSS} -XX:+UseContainerSupport ${JVM_ARGS} -jar payara-micro.jar "$@" diff --git a/appserver/extras/docker-images/server-full/pom.xml b/appserver/extras/docker-images/server-full/pom.xml index ea1cfe11894..4214bf60c1f 100644 --- a/appserver/extras/docker-images/server-full/pom.xml +++ b/appserver/extras/docker-images/server-full/pom.xml @@ -1,4 +1,45 @@ + 4.0.0 diff --git a/appserver/extras/docker-images/server-full/src/main/docker/Dockerfile b/appserver/extras/docker-images/server-full/src/main/docker/Dockerfile index 36b7094fa59..48a5abb15e5 100644 --- a/appserver/extras/docker-images/server-full/src/main/docker/Dockerfile +++ b/appserver/extras/docker-images/server-full/src/main/docker/Dockerfile @@ -1,3 +1,42 @@ +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. + FROM payara/basic:@docker.payara.tag@ # Default payara ports to expose @@ -22,6 +61,7 @@ RUN true \ && echo "AS_ADMIN_PASSWORD=\nAS_ADMIN_NEWPASSWORD=${ADMIN_PASSWORD}" > /tmp/password-change-file.txt \ && echo "AS_ADMIN_PASSWORD=${ADMIN_PASSWORD}" >> ${PASSWORD_FILE} \ && ${PAYARA_DIR}/bin/asadmin --user ${ADMIN_USER} --passwordfile=/tmp/password-change-file.txt change-admin-password --domain_name=${DOMAIN_NAME} \ + && sed -i 's/<\/java-config>/ -Djdk\.util\.zip\.disableZip64ExtraFieldValidation=true<\/jvm-options>\n <\/java-config>/g' ${PAYARA_DIR}/glassfish/domains/${DOMAIN_NAME}/config/domain.xml \ && ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME} \ && ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin \ && for MEMORY_JVM_OPTION in \ diff --git a/appserver/extras/docker-images/server-full/src/main/docker/bin/entrypoint.sh b/appserver/extras/docker-images/server-full/src/main/docker/bin/entrypoint.sh index 438f177a11b..05dec193ba0 100644 --- a/appserver/extras/docker-images/server-full/src/main/docker/bin/entrypoint.sh +++ b/appserver/extras/docker-images/server-full/src/main/docker/bin/entrypoint.sh @@ -1,4 +1,43 @@ #!/bin/bash +################################################################################ +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +################################################################################ for f in ${SCRIPT_DIR}/init_* ${SCRIPT_DIR}/init.d/*; do case "$f" in diff --git a/appserver/extras/docker-images/server-full/src/main/docker/bin/init_1_generate_deploy_commands.sh b/appserver/extras/docker-images/server-full/src/main/docker/bin/init_1_generate_deploy_commands.sh index 832b2e6d6a2..2e3931518fb 100644 --- a/appserver/extras/docker-images/server-full/src/main/docker/bin/init_1_generate_deploy_commands.sh +++ b/appserver/extras/docker-images/server-full/src/main/docker/bin/init_1_generate_deploy_commands.sh @@ -1,4 +1,44 @@ #!/bin/bash +################################################################################ +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +################################################################################ + ################################################################################ # # A script to append deploy commands to the post boot command file at diff --git a/appserver/extras/docker-images/server-full/src/main/docker/bin/startInForeground.sh b/appserver/extras/docker-images/server-full/src/main/docker/bin/startInForeground.sh index f6e72e5dd60..66fef9cb4cc 100755 --- a/appserver/extras/docker-images/server-full/src/main/docker/bin/startInForeground.sh +++ b/appserver/extras/docker-images/server-full/src/main/docker/bin/startInForeground.sh @@ -1,4 +1,44 @@ #!/bin/bash +########################################################################################################## +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +########################################################################################################## + ########################################################################################################## # # This script is to execute Payara Server in foreground, mainly in a docker environment. diff --git a/appserver/extras/docker-images/server-node/pom.xml b/appserver/extras/docker-images/server-node/pom.xml index 22794198b3d..6fa789a6e77 100644 --- a/appserver/extras/docker-images/server-node/pom.xml +++ b/appserver/extras/docker-images/server-node/pom.xml @@ -1,4 +1,45 @@ + 4.0.0 diff --git a/appserver/extras/docker-images/server-node/src/main/docker/Dockerfile b/appserver/extras/docker-images/server-node/src/main/docker/Dockerfile index e6b2984cf98..4359dce41da 100644 --- a/appserver/extras/docker-images/server-node/src/main/docker/Dockerfile +++ b/appserver/extras/docker-images/server-node/src/main/docker/Dockerfile @@ -1,3 +1,42 @@ +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. + FROM payara/basic:@docker.payara.tag@ ENV PAYARA_DAS_HOST="localhost" \ diff --git a/appserver/extras/docker-images/server-node/src/main/docker/bin/entrypoint.sh b/appserver/extras/docker-images/server-node/src/main/docker/bin/entrypoint.sh index e83c602f290..57cd27721fa 100644 --- a/appserver/extras/docker-images/server-node/src/main/docker/bin/entrypoint.sh +++ b/appserver/extras/docker-images/server-node/src/main/docker/bin/entrypoint.sh @@ -1,4 +1,44 @@ #!/usr/bin/env bash +################################################################################ +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +################################################################################ + set -e DOCKER_CONTAINER_ID="$(cat /proc/self/cgroup | grep :/docker/ | sed s/\\//\\n/g | tail -1)" diff --git a/appserver/extras/docker-images/server-web/pom.xml b/appserver/extras/docker-images/server-web/pom.xml index 0cccebc87b1..66436238eb0 100644 --- a/appserver/extras/docker-images/server-web/pom.xml +++ b/appserver/extras/docker-images/server-web/pom.xml @@ -1,4 +1,45 @@ + 4.0.0 diff --git a/appserver/extras/docker-images/server-web/src/main/docker/Dockerfile b/appserver/extras/docker-images/server-web/src/main/docker/Dockerfile index 36b7094fa59..48a5abb15e5 100644 --- a/appserver/extras/docker-images/server-web/src/main/docker/Dockerfile +++ b/appserver/extras/docker-images/server-web/src/main/docker/Dockerfile @@ -1,3 +1,42 @@ +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. + FROM payara/basic:@docker.payara.tag@ # Default payara ports to expose @@ -22,6 +61,7 @@ RUN true \ && echo "AS_ADMIN_PASSWORD=\nAS_ADMIN_NEWPASSWORD=${ADMIN_PASSWORD}" > /tmp/password-change-file.txt \ && echo "AS_ADMIN_PASSWORD=${ADMIN_PASSWORD}" >> ${PASSWORD_FILE} \ && ${PAYARA_DIR}/bin/asadmin --user ${ADMIN_USER} --passwordfile=/tmp/password-change-file.txt change-admin-password --domain_name=${DOMAIN_NAME} \ + && sed -i 's/<\/java-config>/ -Djdk\.util\.zip\.disableZip64ExtraFieldValidation=true<\/jvm-options>\n <\/java-config>/g' ${PAYARA_DIR}/glassfish/domains/${DOMAIN_NAME}/config/domain.xml \ && ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME} \ && ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin \ && for MEMORY_JVM_OPTION in \ diff --git a/appserver/extras/docker-images/server-web/src/main/docker/bin/entrypoint.sh b/appserver/extras/docker-images/server-web/src/main/docker/bin/entrypoint.sh index 438f177a11b..05dec193ba0 100644 --- a/appserver/extras/docker-images/server-web/src/main/docker/bin/entrypoint.sh +++ b/appserver/extras/docker-images/server-web/src/main/docker/bin/entrypoint.sh @@ -1,4 +1,43 @@ #!/bin/bash +################################################################################ +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +################################################################################ for f in ${SCRIPT_DIR}/init_* ${SCRIPT_DIR}/init.d/*; do case "$f" in diff --git a/appserver/extras/docker-images/server-web/src/main/docker/bin/init_1_generate_deploy_commands.sh b/appserver/extras/docker-images/server-web/src/main/docker/bin/init_1_generate_deploy_commands.sh index 832b2e6d6a2..2e3931518fb 100644 --- a/appserver/extras/docker-images/server-web/src/main/docker/bin/init_1_generate_deploy_commands.sh +++ b/appserver/extras/docker-images/server-web/src/main/docker/bin/init_1_generate_deploy_commands.sh @@ -1,4 +1,44 @@ #!/bin/bash +################################################################################ +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +################################################################################ + ################################################################################ # # A script to append deploy commands to the post boot command file at diff --git a/appserver/extras/docker-images/server-web/src/main/docker/bin/startInForeground.sh b/appserver/extras/docker-images/server-web/src/main/docker/bin/startInForeground.sh index f6e72e5dd60..66fef9cb4cc 100644 --- a/appserver/extras/docker-images/server-web/src/main/docker/bin/startInForeground.sh +++ b/appserver/extras/docker-images/server-web/src/main/docker/bin/startInForeground.sh @@ -1,4 +1,44 @@ #!/bin/bash +########################################################################################################## +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright (c) 2023 Payara Foundation and/or its affiliates. All rights reserved. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common Development +# and Distribution License("CDDL") (collectively, the "License"). You +# may not use this file except in compliance with the License. You can +# obtain a copy of the License at +# https://github.com/payara/Payara/blob/master/LICENSE.txt +# See the License for the specific +# language governing permissions and limitations under the License. +# +# When distributing the software, include this License Header Notice in each +# file and include the License file at glassfish/legal/LICENSE.txt. +# +# GPL Classpath Exception: +# The Payara Foundation designates this particular file as subject to the "Classpath" +# exception as provided by the Payara Foundation in the GPL Version 2 section of the License +# file that accompanied this code. +# +# Modifications: +# If applicable, add the following below the License Header, with the fields +# enclosed by brackets [] replaced by your own identifying information: +# "Portions Copyright [year] [name of copyright owner]" +# +# Contributor(s): +# If you wish your version of this file to be governed by only the CDDL or +# only the GPL Version 2, indicate your decision by adding "[Contributor] +# elects to include this software in this distribution under the [CDDL or GPL +# Version 2] license." If you don't indicate a single choice of license, a +# recipient has the option to distribute your version of this file under +# either the CDDL, the GPL Version 2 or to extend the choice of license to +# its licensees as provided above. However, if you add GPL Version 2 code +# and therefore, elected the GPL Version 2 license, then the option applies +# only if the new code is made subject to such option by the copyright +# holder. +########################################################################################################## + ########################################################################################################## # # This script is to execute Payara Server in foreground, mainly in a docker environment. diff --git a/appserver/extras/docker-images/tests/pom.xml b/appserver/extras/docker-images/tests/pom.xml index c72de3e1935..02e072abe0a 100644 --- a/appserver/extras/docker-images/tests/pom.xml +++ b/appserver/extras/docker-images/tests/pom.xml @@ -1,4 +1,45 @@ + 4.0.0