-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose: add docker-compose file for development
This adds a simple docker compose file for development. The development version of buildkit will build with the dockerfile, set debug to true, use a tcp address to be compatible with the remote driver, and enable the debug image through delve to allow for remote debugging. It also configures additional services for help with development. At the moment, this only includes jaeger for collecting traces but can also include additional services in the future for things like metrics collection. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
- Loading branch information
1 parent
8849789
commit 02aa5c7
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
buildkit: | ||
container_name: buildkit-dev | ||
build: | ||
args: | ||
BUILDKIT_DEBUG: 1 | ||
image: moby/buildkit:local | ||
ports: | ||
- 127.0.0.1:1234:1234 | ||
- 127.0.0.1:5000:5000 | ||
- 127.0.0.1:6060:6060 | ||
restart: always | ||
privileged: true | ||
environment: | ||
DELVE_PORT: 5000 | ||
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:4317 | ||
configs: | ||
- source: buildkit_config | ||
target: /etc/buildkit/buildkitd.toml | ||
volumes: | ||
- buildkit:/var/lib/buildkit | ||
|
||
jaeger: | ||
image: jaegertracing/all-in-one:latest | ||
ports: | ||
- 127.0.0.1:16686:16686 | ||
|
||
volumes: | ||
buildkit: | ||
|
||
configs: | ||
buildkit_config: | ||
file: ./dev/buildkitd.toml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Exclude everything to allow this folder to be used for other service | ||
# configurations. | ||
* | ||
|
||
# Specifically allow certain configuration files. | ||
!.gitignore | ||
!buildkitd.toml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
debug = true | ||
|
||
[grpc] | ||
address = [ "tcp://0.0.0.0:1234" ] | ||
debugAddress = "0.0.0.0:6060" |