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

Custom command logic fails if not suitable base image is used #29

Open
Mingela opened this issue Jul 7, 2023 · 0 comments
Open

Custom command logic fails if not suitable base image is used #29

Mingela opened this issue Jul 7, 2023 · 0 comments
Assignees

Comments

@Mingela
Copy link
Contributor

Mingela commented Jul 7, 2023

t.runCommand "groupadd -r appuser && useradd -r -g appuser appuser"

Here we have groupadd hardcoded which is not available in alpine images, like eclipse-temurin:17-jre-alpine

I suggest to introduce another variable with image 'mode' (e.g. BusyBox, Ubuntu, Debian etc) to indicate what syntax should be used and use the suitable command instead

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

No branches or pull requests

2 participants