Repository navigation
fix: mount the ssh key and gitconfig in the home of the node user - #30
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AnsibleForms 7 images run as the user
node(uid 1000) withHOME=/home/node(the app's Dockerfile and Dockerfile.rte-base:USER node,ENV HOME=/home/node), and DEPRECATED.md ("Upgrading from 6.5 to 7.0.0") moves the ssh folder from/root/.sshto/home/node/.ssh. WithHOME_DIR=/root,data/sshanddata/git/.gitconfigwere mounted where neither container looks..env:HOME_DIR=/home/node, and theHOME_PATHcomment names/home/nodeas the image's home.sudo chown -R 1000:1000 datain Getting started, and the same once for an install coming from 6, whose container ran as root (MySQL re-owns its own folder at start, docker-entrypoint.sh).chownbefore starting the stack, since the checkout belongs to the runner's user, not uid 1000.Checked locally with the
latest-rcapp andansibleforms-rte-fullimages: the app generates its key indata/ssh, and the RTE (uid 1000) sees it in/home/node/.ssh.