Skip to content

chore: Update Baseimage to latest support version - #173

Open
arnesetzer wants to merge 1 commit into
wiktorn:masterfrom
arnesetzer:chore/updateImage
Open

chore: Update Baseimage to latest support version#173
arnesetzer wants to merge 1 commit into
wiktorn:masterfrom
arnesetzer:chore/updateImage

Conversation

@arnesetzer

Copy link
Copy Markdown
Contributor

After realizing, that 1.29-otel is not supported anymore according to https://hub.docker.com/_/nginx I updated the base image to 1.31-otel. This comes with a cavecat: The commands adduser and addgroup were removed in Debian 13 (https://www.reddit.com/r/debian/comments/1mmwgie/trying_to_find_out_why_adduser_has_been_excluded/ or nginx/docker-nginx#1003) and needs to be replaced with useradd and groupadd.

Comment thread Dockerfile
/app/bin/
RUN sed -i -e 's/allow_read_prefs": "yes"/allow_read_prefs": "1"/g' /app/bin/oauth_cookie_client.py
RUN addgroup overpass && adduser --home /db --disabled-password --gecos overpass --ingroup overpass overpass
RUN groupadd overpass && useradd --home-dir /db -m -c "overpass" -g overpass overpass \

@arnesetzer arnesetzer Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While groupadd remains the same there are some changes to the useradd command:

  1. --home is replaced by -m to create a home directory and --home-dir to specify the home dir location
  2. --gecos is replaced by -c "overpass" which sets the additional name to overpass
  3. --ingroup overpass is replaced by -g overpass
  4. Due to some different permissions between useradd and adduser for the home directory we need to modify the permissions for /db and add the user nginx to the group overpass otherwise we will run in an error on runtime. A quick&dirty alternative would be chmod 755 /db
    DetailsError: runtime error: open64: 13 Permission denied /db/db//osm3s_osm_base Unix_Socket::7

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant