Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Improve build image #11

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Improve build image #11

merged 2 commits into from
Jun 10, 2024

Conversation

nsavoire
Copy link
Collaborator

@nsavoire nsavoire commented Jun 10, 2024

  • Avoid setting GOPATH in docker image
    Setting GOPATH to point inside agent directory has some undesirable side effects, such as make go test ./... fail ( because it tries to execute tests in ./go directory).
  • Add a build user
    Add a build user and run container with this user by default.
    This allows mounting local agent directory in the docker container while still the right uid permissions.
    Allow this user to sudo in order to run the otel agent.

nsavoire added 2 commits June 10, 2024 11:43
Setting GOPATH to point inside agent directory has some undesirable
side effects, such as make `go test ./...` fail ( because it tries
to execute tests in ./go directory).
Add a `build` user  and run container with this user by default.
This allows mounting local agent directory in the docker container
while still the right uid permissions.
Allow this user to sudo in order to run the otel agent.
@nsavoire nsavoire requested review from Gandem and r1viollet June 10, 2024 12:01
Copy link
Collaborator

@r1viollet r1viollet left a comment

Choose a reason for hiding this comment

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

LGTM

@nsavoire nsavoire merged commit 714a34c into main Jun 10, 2024
5 checks passed
@nsavoire nsavoire deleted the nsavoire/improve_build_image branch June 10, 2024 14:20
Gandem pushed a commit that referenced this pull request Jun 26, 2024
* Avoid setting GOPATH in docker image

Setting GOPATH to point inside agent directory has some undesirable
side effects, such as make `go test ./...` fail ( because it tries
to execute tests in ./go directory).

* Add a 'build' user

Add a `build` user  and run container with this user by default.
This allows mounting local agent directory in the docker container
while still the right uid permissions.
Allow this user to sudo in order to run the otel agent.
Gandem pushed a commit that referenced this pull request Jun 27, 2024
* Avoid setting GOPATH in docker image

Setting GOPATH to point inside agent directory has some undesirable
side effects, such as make `go test ./...` fail ( because it tries
to execute tests in ./go directory).

* Add a 'build' user

Add a `build` user  and run container with this user by default.
This allows mounting local agent directory in the docker container
while still the right uid permissions.
Allow this user to sudo in order to run the otel agent.
Gandem pushed a commit that referenced this pull request Jun 28, 2024
* Avoid setting GOPATH in docker image

Setting GOPATH to point inside agent directory has some undesirable
side effects, such as make `go test ./...` fail ( because it tries
to execute tests in ./go directory).

* Add a 'build' user

Add a `build` user  and run container with this user by default.
This allows mounting local agent directory in the docker container
while still the right uid permissions.
Allow this user to sudo in order to run the otel agent.
Gandem pushed a commit that referenced this pull request Jun 28, 2024
* Avoid setting GOPATH in docker image

Setting GOPATH to point inside agent directory has some undesirable
side effects, such as make `go test ./...` fail ( because it tries
to execute tests in ./go directory).

* Add a 'build' user

Add a `build` user  and run container with this user by default.
This allows mounting local agent directory in the docker container
while still the right uid permissions.
Allow this user to sudo in order to run the otel agent.
nsavoire added a commit that referenced this pull request Sep 3, 2024
* Avoid setting GOPATH in docker image

Setting GOPATH to point inside agent directory has some undesirable
side effects, such as make `go test ./...` fail ( because it tries
to execute tests in ./go directory).

* Add a 'build' user

Add a `build` user  and run container with this user by default.
This allows mounting local agent directory in the docker container
while still the right uid permissions.
Allow this user to sudo in order to run the otel agent.
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.

2 participants