Skip to content
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

Docker image build failures #158

Closed
randomorder opened this issue Aug 1, 2024 · 1 comment · Fixed by #159
Closed

Docker image build failures #158

randomorder opened this issue Aug 1, 2024 · 1 comment · Fixed by #159

Comments

@randomorder
Copy link
Member

Docker image builds are failing. I tracked the problem to a change in the parent Tomcat image "9-jdk11-temurin"

The docker image with that tag has beed re-pushed with an update to the Ubuntu ditro version from 22.04 to 24.04 and we now have an ID conflict with the tomcat user creation in the Dockerfile:

#34 [stage-1 12/16] RUN groupadd -g 1000 tomcat
#34 0.341 groupadd: GID '1000' already exists
#34 ERROR: process "/bin/sh -c groupadd -g $GID $UNAME" did not complete successfully: exit code: 4
------
 > [stage-1 12/16] RUN groupadd -g 1000 tomcat:
0.341 groupadd: GID '1000' already exists
------
Dockerfile:140
--------------------
 138 |     COPY entrypoint.sh /entrypoint.sh
 139 |     COPY ${CUSTOM_FONTS} $GEOSERVER_DATA_DIR/styles/
 140 | >>> RUN groupadd -g $GID $UNAME
 141 |     RUN useradd -m -u $UID -g $GID --system $UNAME
 142 |     RUN chown -R $UID:$GID $GEOSERVER_LOG_DIR $CATALINA_BASE $GEOWEBCACHE_CACHE_DIR $GEOWEBCACHE_CONFIG_DIR $NETCDF_DATA_DIR $GRIB_CACHE_DIR $GEOSERVER_DATA_DIR
--------------------
ERROR: failed to solve: process "/bin/sh -c groupadd -g $GID $UNAME" did not complete successfully: exit code: 4
@randomorder
Copy link
Member Author

#159 should fix the builds by forcing the Ubuntu "Jammy" variant of the Tomcat base image. For the long term we'll need a change in the Dockerfile that allow us to build the images based on Ubuntu Noble 24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants