Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Fix user id and .m2 permission #53

Merged
merged 1 commit into from
May 22, 2019
Merged

Conversation

mgreau
Copy link

@mgreau mgreau commented May 22, 2019

By introducing a new CI user for running the build in #52, we
encountered two problems (as explained in #52 (comment))

First one is that the CI user id we are creating in the Docker image
could be the same as the node user (1000), because it's a common value.
This commit fixes it by updating the node user id.

The second problem is a permission issue when mounting the .m2
folder into the container, which prevents Maven to work.
This commit fixes it by using a Docker volume for the .m2 cache.
It means that the cache can be shared between all builds while the m2-vol
volume is not deleted.

I have tested it in the release manager VM

By introducing a new CI user for running the build in #52, we
encountered two problems.

First one is that the CI user id we are creating in the Docker image
could be the same as the node user (1000), because it's a common value.
This commit fixes it by updating the node user id.

The second problem is a permission issue when mouting the .m2
folder into the container, which prevents Maven to work.
This commit fixes it by using a Docker volume for the .m2 cache.
It means that the cache can be shared between all builds while the `m2-vol`
volume is not deleted.
@mgreau mgreau requested review from Conky5, zfy0701 and Poytr1 May 22, 2019 18:19
@mgreau mgreau self-assigned this May 22, 2019
@mgreau mgreau merged commit 94f0e22 into elastic:master May 22, 2019
@mgreau mgreau deleted the fix-permission-issue branch May 22, 2019 18:23
Copy link
Contributor

@Conky5 Conky5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mgreau pushed a commit that referenced this pull request May 22, 2019
By introducing a new CI user for running the build in #52, we
encountered two problems.

First one is that the CI user id we are creating in the Docker image
could be the same as the node user (1000), because it's a common value.
This commit fixes it by updating the node user id.

The second problem is a permission issue when mouting the .m2
folder into the container, which prevents Maven to work.
This commit fixes it by using a Docker volume for the .m2 cache.
It means that the cache can be shared between all builds while the `m2-vol`
volume is not deleted.
mgreau pushed a commit that referenced this pull request May 22, 2019
By introducing a new CI user for running the build in #52, we
encountered two problems.

First one is that the CI user id we are creating in the Docker image
could be the same as the node user (1000), because it's a common value.
This commit fixes it by updating the node user id.

The second problem is a permission issue when mouting the .m2
folder into the container, which prevents Maven to work.
This commit fixes it by using a Docker volume for the .m2 cache.
It means that the cache can be shared between all builds while the `m2-vol`
volume is not deleted.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants