Skip to content

How to run semantic-release as a Docker command-line application? #1847

Discussion options

You must be logged in to vote

Thank you @bigbrozer for the tips. I was able to solve my issue but there have been two problems:

  • The default user id for the first non-root user for most Linux systems is "1000". Therefore I got a conflict because the "node" user of the Docker image had the user id "1000" and my local user, too.
  • If I want to build the Docker image once in a while during a CI-pipeline and use it on different machines with different users, the adding of the user must take place during runtime.

I solved this problem with the following files and commands:

Dockerfile

FROM node:14-alpine

# Node has UID=1000 which is the default UID for ubuntu which can lead to conflicts.
# This image is intended to be run b…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by finn-christiansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1846 on March 14, 2021 05:24.