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

Docs: update build command #19130

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/dev/agent_omnibus.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ From the `datadog-agent` source folder, use the following command to run the
`agent.omnibus-build` task in a Docker container:

```
docker run -v "$PWD:/go/src/github.com/DataDog/datadog-agent" -v "/tmp/omnibus:/omnibus" -v "/tmp/opt/datadog-agent:/opt/datadog-agent" -v"/tmp/gems:/gems" --workdir=/go/src/github.com/DataDog/datadog-agent datadog/agent-buildimages-deb_x64 inv -e agent.omnibus-build --base-dir=/omnibus --gem-path=/gems
docker run -v "$PWD:/go/src/github.com/DataDog/datadog-agent" \
-v "/tmp/omnibus:/omnibus" \
-v "/tmp/opt/datadog-agent:/opt/datadog-agent" \
-v"/tmp/gems:/gems" \
--workdir=/go/src/github.com/DataDog/datadog-agent \
datadog/agent-buildimages-deb_x64 \
bash -c 'source /root/.bashrc && inv -e agent.omnibus-build --base-dir=/omnibus --gem-path=/gems'
```

The container will share 3 volumes with the host to avoid starting from scratch
Expand Down Expand Up @@ -87,8 +93,8 @@ To build on Windows, [Docker Desktop](https://docs.docker.com/docker-for-windows

Start a Powershell prompt and navigate to your local clone of the `datadog-agent` repo.

Run the following command:
Run the following command:

```powershell
docker run -v "$(Get-Location):c:\mnt" -e OMNIBUS_TARGET=main -e RELEASE_VERSION=nightly -e MAJOR_VERSION=7 -e PY_RUNTIMES=3 -e TARGET_ARCH=x64 datadog/agent-buildimages-windows_x64:1809 c:\mnt\tasks\winbuildscripts\buildwin.bat
```
Expand Down