Skip to content

fix(devcontainer): create ubuntu user missing from AlmaLinux base image#785

Closed
Copilot wants to merge 2 commits into
masterfrom
copilot/review-pull-request-783
Closed

fix(devcontainer): create ubuntu user missing from AlmaLinux base image#785
Copilot wants to merge 2 commits into
masterfrom
copilot/review-pull-request-783

Conversation

Copilot AI commented Mar 29, 2026

Copy link
Copy Markdown

devcontainer.json sets remoteUser: ubuntu but the base image (ghcr.io/bounverif/esmini:latest-devel, AlmaLinux 8.10) ships no ubuntu user, causing Dev Containers to fail immediately on all platforms.

Changes

  • .devcontainer/Dockerfile — new; extends base image and creates ubuntu (UID/GID 1000), using getent guards to skip creation if those IDs are already taken:
    FROM ghcr.io/bounverif/esmini:latest-devel
    RUN (getent group 1000 || groupadd -g 1000 ubuntu) \
        && (getent passwd 1000 || useradd -m -s /bin/bash -u 1000 -g 1000 ubuntu)
  • .devcontainer/devcontainer.json — replaces direct image reference with build.dockerfile pointing at the new Dockerfile.

The getent checks make the build idempotent and safe against base images that may already occupy GID/UID 1000 — an edge case the original PR #783 did not handle.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Review pull request for unexpected side effects fix(devcontainer): create ubuntu user missing from AlmaLinux base image Mar 29, 2026
Copilot AI requested a review from eknabevcc March 29, 2026 09:41
jdsika added a commit to jdsika/esmini that referenced this pull request Mar 31, 2026
The base image (ghcr.io/bounverif/esmini:latest-devel, AlmaLinux 8.10)
does not contain an 'ubuntu' user, causing Dev Containers to fail with:
  Error: unable to find user ubuntu: no matching entries in passwd file

Add a Dockerfile that extends the base image and creates the ubuntu user
(UID/GID 1000) with getent guards for idempotency. Update devcontainer.json
to use build.dockerfile instead of direct image reference.

Supersedes: esmini#783, esmini#785
Signed-off-by: jdsika <carlo.van-driesten@bmw.de>
jdsika added a commit to jdsika/esmini that referenced this pull request Mar 31, 2026
The base image (ghcr.io/bounverif/esmini:latest-devel, AlmaLinux 8.10)
does not contain an 'ubuntu' user, causing Dev Containers to fail with:
  Error: unable to find user ubuntu: no matching entries in passwd file

Add a Dockerfile that extends the base image and creates the ubuntu user
(UID/GID 1000) with getent guards for idempotency. Update devcontainer.json
to use build.dockerfile instead of direct image reference.

Supersedes: esmini#783, esmini#785
Signed-off-by: jdsika <carlo.van-driesten@bmw.de>
jdsika added a commit to jdsika/esmini that referenced this pull request Mar 31, 2026
The base image (ghcr.io/bounverif/esmini:latest-devel, AlmaLinux 8.10)
does not contain an 'ubuntu' user, causing Dev Containers to fail with:
  Error: unable to find user ubuntu: no matching entries in passwd file

Add a Dockerfile that extends the base image and creates the ubuntu user
(UID/GID 1000) with getent guards for idempotency. Update devcontainer.json
to use build.dockerfile instead of direct image reference.

Supersedes: esmini#783, esmini#785
Signed-off-by: jdsika <carlo.van-driesten@bmw.de>
eknabevcc pushed a commit that referenced this pull request Mar 31, 2026
The base image (ghcr.io/bounverif/esmini:latest-devel, AlmaLinux 8.10)
does not contain an 'ubuntu' user, causing Dev Containers to fail with:
  Error: unable to find user ubuntu: no matching entries in passwd file

Add a Dockerfile that extends the base image and creates the ubuntu user
(UID/GID 1000) with getent guards for idempotency. Update devcontainer.json
to use build.dockerfile instead of direct image reference.

Supersedes: #783, #785
Signed-off-by: jdsika <carlo.van-driesten@bmw.de>
@jdsika

jdsika commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

PR may be closed

@eknabevcc

Copy link
Copy Markdown
Collaborator

Solved by #783

@eknabevcc eknabevcc closed this Apr 1, 2026
@eknabevcc eknabevcc deleted the copilot/review-pull-request-783 branch May 14, 2026 08:52
@eknabevcc eknabevcc restored the copilot/review-pull-request-783 branch May 14, 2026 08:52
@eknabevcc eknabevcc deleted the copilot/review-pull-request-783 branch June 12, 2026 06:13
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.

3 participants