Skip to content

Commit

Permalink
Generating geoserver docker image for 2.25.2 and amd64 systems
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseSanchezMoralesIDOX committed Dec 17, 2024
1 parent ad43b70 commit 46ce899
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
include:
- tag: 2.25.2-arm64
- tag: 2.25.2-amd64 # 2.25.2-arm64
gs-version: 2.25.2
label: 2.25.2
permissions:
Expand Down
6 changes: 3 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
# Defaults to amd64:
FROM tomcat:9-jre11-temurin@sha256:ab47680f4dd6785e7f19fe7e9f2cd7fce0819c4a223ea98d8c39a38ea810bdde
FROM tomcat:9-jre11-temurin@sha256:f4cc53f42b3f25689119a153ff4af60d7b71e5e1668e2e70c4c550d23a7f3344
# Valid for arm64:
# FROM tomcat:9-jre11-temurin@sha256:7477976d90cf983f6efe920cad41c1773481ddf61f403f59cfc1db1979c4150b
#9.0-jre11-slim
Expand Down Expand Up @@ -28,9 +28,9 @@ ENV DEBIAN_FRONTEND=noninteractive \
GDAL_SKIP="ECW JP2ECW" \
GDAL_DATA=/usr/local/gdal-data \
# AMD64 architecture:
# LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/apr/lib:/usr/lib:/usr/lib/x86_64-linux-gnu"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/apr/lib:/usr/lib:/usr/lib/x86_64-linux-gnu"
# ARM64 architecture:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/apr/lib:/usr/lib:/usr/lib/aarch64-linux-gnu"
# LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/apr/lib:/usr/lib:/usr/lib/aarch64-linux-gnu"


RUN mkdir -p ${GEOSERVER_DATA_DIR}
Expand Down
7 changes: 3 additions & 4 deletions build/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rem Create plugins folder if does not exist
if not exist .\resources\NUL mkdir .\resources
if not exist .\resources\plugins\NUL mkdir .\resources\plugins

SET plugins=control-flow,inspire,monitor,css,ysld,web-resource,sldservice
SET plugins=control-flow,inspire,monitor,css,ysld,web-resource,sldservice,gwc-s3

rem Download plugins from list above. Modify list as required
rem works for windows 10 powershell
Expand All @@ -27,13 +27,12 @@ for %%f in (%community_plugins%) do (
@ECHO geoserver-%%f-plugin downloaded.
)


rem Build options include:
rem TOMCAT_EXTRAS [true | false]
rem GDAL_NATIVE [true | false] - default false; build with GDAL support
rem GS_VERSION - specifies which version of geoserver is to be built

rem Valid for AMD64 (i.e., t3a.medium)
rem docker build --build-arg GS_VERSION=${GS_VERSION} --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/amd64 -t thinkwhere/geoserver:${GS_VERSION} .
docker build --build-arg GS_VERSION=${GS_VERSION} --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/amd64 -t thinkwhere/geoserver:${GS_VERSION} .
rem Valid also for ARM64 (i.e., t4g.medium)
docker buildx build --build-arg GS_VERSION=%GS_VERSION% --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/arm64/v8 -t thinkwhere/geoserver:%GS_VERSION% --push .
rem docker buildx build --build-arg GS_VERSION=%GS_VERSION% --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/arm64/v8 -t thinkwhere/geoserver:%GS_VERSION% --push .
6 changes: 3 additions & 3 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GS_VERSION=2.25.2
BUILD_GS_VERSION=${GS_VERSION:0:-2}

# Add in selected plugins. Comment out or modify as required
plugins=(control-flow inspire monitor css ysld web-resource sldservice)
plugins=(control-flow inspire monitor css ysld web-resource sldservice gwc-s3)

for p in "${plugins[@]}"
do
Expand All @@ -42,6 +42,6 @@ done
# GS_VERSION - specifies which version of geoserver is to be built

# Valid for AMD64 (i.e., t3a.medium)
# docker build --build-arg GS_VERSION=${GS_VERSION} --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/amd64 -t thinkwhere/geoserver:${GS_VERSION} .
docker build --build-arg GS_VERSION=${GS_VERSION} --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/amd64 -t thinkwhere/geoserver:${GS_VERSION} .
# Valid also for ARM64 (i.e., t4g.medium)
docker buildx build --build-arg GS_VERSION=${GS_VERSION} --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/arm64/v8 -t thinkwhere/geoserver:${GS_VERSION} --push .
# docker buildx build --build-arg GS_VERSION=${GS_VERSION} --build-arg TOMCAT_EXTRAS=false --build-arg GDAL_NATIVE=false --platform linux/arm64/v8 -t thinkwhere/geoserver:${GS_VERSION} --push .
2 changes: 1 addition & 1 deletion build/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ then
fi

# Add in selected plugins. Comment out or modify as required
plugins=(control-flow inspire monitor css ysld web-resource sldservice)
plugins=(control-flow inspire monitor css ysld web-resource sldservice gwc-s3)

for p in "${plugins[@]}"
do
Expand Down

0 comments on commit 46ce899

Please sign in to comment.