-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (76 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
80 lines (76 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
# assumes you have envoy checked out - docs are built in envoy workspace
docs:
build:
context: .
dockerfile: _docker/Dockerfile-docs
depends_on:
- html
volumes:
- "${PWD}/../envoy:/workspace/envoy"
- "${PWD}:/workspace/examples"
- "${PWD}/_docker/docs-entrypoint-extra.sh:/entrypoint-extra.sh"
- "${HOME}/.cache/envoy/examples:/home/envoybuild/.cache"
working_dir: /workspace/envoy
environment:
DOCS_BUILD_RST: "${DOCS_BUILD_RST:-}"
BAZEL_BUILD_EXTRA_OPTIONS: >-
${BAZEL_BUILD_EXTRA_OPTIONS:-
--override_repository=envoy-examples=../examples}
USER_UID: "${UID:-1000}"
GROUP_UID: "${GID:-1000}"
GITHUB_TOKEN: "${GITHUB_TOKEN:-}"
entrypoint:
- "/bin/bash"
- "-c"
- |
set -e
usermod -u "$$USER_UID" envoybuild
groupmod -g "$$GROUP_UID" envoybuild
chown envoybuild:envoybuild /home/envoybuild/.cache
chown envoybuild:envoybuild /workspace/envoy
chown envoybuild:envoybuild /workspace/envoy/generated
chown envoybuild:envoybuild /workspace/envoy/generated/docs
exec sudo -EH -u envoybuild "$@"
- "--"
command:
- /bin/bash
- -c
- |
set -e
git config --global --add safe.directory /workspace/envoy
exec ./ci/do_ci.sh docs
examples:
build:
context: .
dockerfile: _docker/Dockerfile-examples
privileged: true
cgroup: host
volumes:
- "${PWD}/../envoy:/workspace/envoy"
- "${PWD}:/workspace/examples"
- "${PWD}/_docker/examples-entrypoint-extra.sh:/entrypoint-extra.sh"
- "${PWD}/_docker/examples-cleanup.sh:/cleanup.sh"
- "${HOME}/.cache/envoy/examples:/home/envoybuild/.cache"
- "${DOCKER_EXAMPLES_LIB:-/var/lib/docker-examples}:/var/lib/docker"
- "${DOCKER_EXAMPLES_LOG:-/var/log/docker-examples}:/var/log/docker"
working_dir: /workspace/examples
environment:
BAZEL_BUILD_EXTRA_OPTIONS: "${BAZEL_BUILD_EXTRA_OPTIONS:-}"
BUILD_UID: "${UID:-1000}"
GITHUB_TOKEN: "${GITHUB_TOKEN:-}"
DEV_CONTAINER_ID: "${DEV_CONTAINER_ID:-}"
DOCKER_BUILDKIT: "${DOCKER_BUILDKIT:-1}"
COMPOSE_BAKE: "${COMPOSE_BAKE:-true}"
BUILDKIT_PROGRESS: "${BUILDKIT_PROGRESS:-quiet}"
command:
- bash
- -c
- |
bazel run ${BAZEL_BUILD_EXTRA_OPTIONS} --config=examples //:verify_examples
html:
image: nginx
volumes:
- "${PWD}/../envoy/generated/docs:/usr/share/nginx/html"
ports:
- "9090:80"