Skip to content

Commit 3c77274

Browse files
authored
java 25 and ssl cipher updates (#163)
* testing java 25 updates * remove cipher settings that are included in jar with 26.1 * add check for env var AWS_ACCESS_KEY_ID before running aws commands
1 parent a709479 commit 3c77274

File tree

6 files changed

+20
-33
lines changed

6 files changed

+20
-33
lines changed

Dockerfile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# main eclipse-temurin jre, which is debian-based
22
ARG FROM_REPO_IMAGE=eclipse-temurin
3-
ARG FROM_TAG=17-jre-noble
3+
ARG FROM_TAG=25-jre-noble
44

55
# uncomment for alpine-based eclipse-temurin jre
6-
# ARG FROM_TAG=17-jre-alpine
6+
# ARG FROM_TAG=25-jre-alpine
77

88
FROM ${FROM_REPO_IMAGE}:${FROM_TAG} AS base
99

@@ -77,10 +77,6 @@ ENV DEBUG="${DEBUG}" \
7777
TOMCAT_KEYSTORE_FORMAT="PKCS12" \
7878
TOMCAT_KEYSTORE_ALIAS="tomcat" \
7979
\
80-
TOMCAT_SSL_CIPHERS="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA:!EDH:!DHE:!DH:!CAMELLIA:!ARIA:!AESCCM:!SHA:!CHACHA20" \
81-
TOMCAT_SSL_ENABLED_PROTOCOLS="TLSv1.3,TLSv1.2" \
82-
TOMCAT_SSL_PROTOCOL="TLS" \
83-
\
8480
TOMCAT_ENABLE_ACCESS_LOG=""
8581

8682
ENV CERT_C="US" \
@@ -151,20 +147,18 @@ RUN [ -n "${DEBUG}" ] && set -x; \
151147
openssl \
152148
gettext-base=0.21-14ubuntu2 \
153149
unzip=6.0-28ubuntu4.1 \
150+
wget=1.21.4-1ubuntu4.1 \
154151
; \
155152
if [ -n "${DEBUG}" ]; then \
156-
# next 2 lines are to get postgres15 to install on ubuntu 22.04
157-
echo "deb http://apt.postgresql.org/pub/repos/apt $(grep VERSION_CODENAME /etc/os-release | cut -d "=" -f2)-pgdg main" > /etc/apt/sources.list.d/pgdg.list; \
158-
wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | tee /etc/apt/trusted.gpg.d/pgdg.asc > /dev/null 2>&1; \
159153
apt-get update; \
160154
apt-get -yq --no-install-recommends install \
161-
iputils-ping=3:20240117-1build1 \
155+
iputils-ping=3:20240117-1ubuntu0.1 \
162156
less=590-2ubuntu2.1 \
163157
netcat-traditional=1.10-48 \
164-
postgresql-client-16=16.6-0ubuntu0.24.04.1 \
165-
sudo=1.9.15p5-3ubuntu5 \
166-
tree=2.1.1-2ubuntu3 \
167-
vim=2:9.1.0016-1ubuntu7.5 \
158+
postgresql-client-16=16.10-0ubuntu0.24.04.1 \
159+
sudo=1.9.15p5-3ubuntu5.24.04.1 \
160+
tree=2.1.1-2ubuntu3.24.04.2 \
161+
vim=2:9.1.0016-1ubuntu7.9 \
168162
; \
169163
fi; \
170164
apt-get -yq upgrade; \

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ endif
88

99
DEBUG ?=
1010

11-
FROM_TAG ?= 17-jre-noble
11+
FROM_TAG ?= 25-jre-noble
1212

1313
CACHE_FLAG ?= --no-cache
1414

@@ -18,8 +18,13 @@ IDENT ?= labkey
1818

1919
PULL_TAG ?= latest
2020

21-
AWS_ACCOUNT_ID ?= $(shell aws sts get-caller-identity | jq -r '.Account' | grep -E '[0-9]{12}' || exit 1)
22-
AWS_REGION ?= $(shell aws configure get region || exit 1)
21+
ifeq ($(AWS_ACCESS_KEY_ID),)
22+
AWS_ACCOUNT_ID=123456789
23+
AWS_REGION=us-west-2
24+
else
25+
AWS_ACCOUNT_ID ?= $(shell aws sts get-caller-identity | jq -r '.Account' | grep -E '[0-9]{12}' || exit 1)
26+
AWS_REGION ?= $(shell aws configure get region || exit 1)
27+
endif
2328

2429
LABKEY_VERSION ?= 21.5-SNAPSHOT
2530
LABKEY_DISTRIBUTION ?= community

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ Setting `DEBUG` to any value will suffice: `docker build ... --build-arg DEBUG=1
147147
The `Dockerfile` currently supports 2 base-container operating systems, Alpine Linux and Debian-based Linux, both of which originate from `eclipse-temurin`. Debian-based Linux deployments are much more thoroughly tested. Toggling between the two or overriding them can be achieved by changing the `FROM_TAG` Docker build arg. The `Dockerfile` provides 2 examples:
148148

149149
- debian-based
150-
- FROM_TAG=17-jre
150+
- FROM_TAG=25-jre
151151
- alpine-based
152-
- FROM_TAG=17-jre-alpine
152+
- FROM_TAG=25-jre-alpine
153153

154154
| name | purpose | default |
155155
| --------------- | ------------------------------------------------------ | ------------------------ |
156156
| FROM_REPO_IMAGE | Docker repository & image to use as basis of container | `eclipse-temurin` |
157-
| FROM_TAG | repository tag to use as basis of container | `17-jre` |
157+
| FROM_TAG | repository tag to use as basis of container | `25-jre` |
158158
| LABKEY_HOME | The Docker WORKDIR and top level under which all LabKey-related files are nested | `/labkey` |
159159
| BUILD_REMOTE_TAG | allows for alternate remote tags during `make tag` and `make push` | [BUILD_REPO_URI]/labkey/community:[LABKEY_VERSION] |
160160

@@ -248,9 +248,6 @@ The `CERT_*` ENVs should look familiar to anyone that has used the `openssl` com
248248
| TOMCAT_KEYSTORE_ALIAS | self-signed cert/keystore "alias" | `tomcat` |
249249
| TOMCAT_KEYSTORE_FILENAME | self-signed cert/keystore filename | `labkey.p12` |
250250
| TOMCAT_KEYSTORE_FORMAT | self-signed cert/keystore format | `PKCS12` |
251-
| TOMCAT_SSL_CIPHERS | allowable SSL ciphers for use by tomcat | `HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA:!EDH:!DHE:!DH:!CAMELLIA:!ARIA:!AESCCM:!SHA:!CHACHA20` |
252-
| TOMCAT_SSL_ENABLED_PROTOCOLS | allowable SSL protocols and versions | `TLSv1.3,TLSv1.2` |
253-
| TOMCAT_SSL_PROTOCOL | basic SSL protocol to use | `TLS` |
254251
| CERT_C | "Country" value for the generated self-signed cert | `US` |
255252
| CERT_CN | "Common Name" value for the generated self-signed cert | `localhost` |
256253
| CERT_L | "Location" value for the generated self-signed cert | `Seattle` |

application.properties

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ server.http2.enabled=true
113113

114114
server.ssl.enabled=true
115115

116-
server.ssl.ciphers=${TOMCAT_SSL_CIPHERS}
117-
server.ssl.enabled-protocols=${TOMCAT_SSL_ENABLED_PROTOCOLS}
118-
server.ssl.protocol=${TOMCAT_SSL_PROTOCOL}
119-
120-
121116
# must match values in entrypoint.sh
122117
server.ssl.key-alias=${TOMCAT_KEYSTORE_ALIAS}
123118
server.ssl.key-store=${LABKEY_HOME}/${TOMCAT_KEYSTORE_FILENAME}

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ services:
2727
# - LABKEY_SYSTEM_DESCRIPTION=Sirius Cybernetics Corporation
2828

2929
# - TOMCAT_ENABLE_ACCESS_LOG=1
30-
- TOMCAT_SSL_CIPHERS=${TOMCAT_SSL_CIPHERS:-HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA:!EDH:!DHE:!DH:!CAMELLIA:!ARIA:!AESCCM:!SHA:!CHACHA20}
3130
- LOG_LEVEL_SPRING_WEB=INFO
3231
- LOG_LEVEL_TOMCAT=DEBUG
3332
- LOG_LEVEL_DEFAULT=DEBUG
@@ -140,7 +139,6 @@ services:
140139
# - LABKEY_SYSTEM_DESCRIPTION=Sirius Cybernetics Corporation
141140

142141
# - TOMCAT_ENABLE_ACCESS_LOG=1
143-
- TOMCAT_SSL_CIPHERS=${TOMCAT_SSL_CIPHERS:-HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA:!EDH:!DHE:!DH:!CAMELLIA:!ARIA:!AESCCM:!SHA:!CHACHA20}
144142
- LOG_LEVEL_SPRING_WEB=INFO
145143
- LOG_LEVEL_TOMCAT=DEBUG
146144
- LOG_LEVEL_DEFAULT=DEBUG
@@ -251,7 +249,6 @@ services:
251249
# - LABKEY_SYSTEM_DESCRIPTION=Sirius Cybernetics Corporation
252250

253251
# - TOMCAT_ENABLE_ACCESS_LOG=1
254-
- TOMCAT_SSL_CIPHERS=${TOMCAT_SSL_CIPHERS:-HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA:!EDH:!DHE:!DH:!CAMELLIA:!ARIA:!AESCCM:!SHA:!CHACHA20}
255252
- LOG_LEVEL_SPRING_WEB=INFO
256253
- LOG_LEVEL_TOMCAT=DEBUG
257254
- LOG_LEVEL_DEFAULT=DEBUG
@@ -363,7 +360,6 @@ services:
363360
# - LABKEY_SYSTEM_DESCRIPTION=Sirius Cybernetics Corporation
364361

365362
# - TOMCAT_ENABLE_ACCESS_LOG=1
366-
- TOMCAT_SSL_CIPHERS=${TOMCAT_SSL_CIPHERS:-HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA:!EDH:!DHE:!DH:!CAMELLIA:!ARIA:!AESCCM:!SHA:!CHACHA20}
367363
- LOG_LEVEL_SPRING_WEB=INFO
368364
- LOG_LEVEL_TOMCAT=DEBUG
369365
- LOG_LEVEL_DEFAULT=DEBUG

quickstart_envs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# example minimal set of environment variables to get started - see readme for additional envs you may wish to set
44

55
# embedded tomcat LabKey .jar version to build container with
6-
export LABKEY_VERSION="25.11"
6+
export LABKEY_VERSION="26.1"
77

88
# minimal SMTP settings
99
export SMTP_HOST="localhost"

0 commit comments

Comments
 (0)