Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

GitHub Actions requires user ROOT #53

Open
1 of 3 tasks
JeroenKnoops opened this issue Oct 26, 2020 · 0 comments
Open
1 of 3 tasks

GitHub Actions requires user ROOT #53

JeroenKnoops opened this issue Oct 26, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JeroenKnoops
Copy link
Member

JeroenKnoops commented Oct 26, 2020

Problem

Github Actions requires the user of the image to be ROOT otherwise it cannot checkout the repository.

Quick solution

Removing the java USER is possible, but it's also considered bad practice to create docker images with root.

Fix

In order to fix this issue, we will create a new docker-image with -gha (github actions) appended to the image tag.
The only difference with the original images are that they run with USER root

Images with USER root

In order to do this we need to do the following to images already running with user ROOT:

Images with USER java

In order to do this we need to do the following to images already running with user JAVA:

  • Create new docker-image based on original image with USER: root and append tag with -gha.

This only applies to jdk images.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant