-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (55 loc) · 1.59 KB
/
docker-compose.yml
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
services:
# Emulates the Google PubSub service
pubsub:
image: vovimayhem/google-pubsub-emulator:latest
ports:
- published: ${ICALIA_SDK_PUBSUB_PORT:-8085}
target: 8085
libraries: &library
image: icalialabs/icalia-sdk-ruby:development
build:
context: .
dockerfile: Dockerfile
target: development
args:
DEVELOPER_UID: ${UID:-1000}
DEVELOPER_USERNAME: ${USER:-you}
volumes:
- type: bind
source: .
target: /workspaces/icalia-sdk
stdin_open: true
tty: true
# [Optional] Required for ptrace-based debuggers like C++, Go, and Rust
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
entrypoint: /workspaces/icalia-sdk/bin/dev-entrypoint.sh
environment:
# Use the local pubsub emulator instead of Google Cloud:
PUBSUB_EMULATOR_HOST: pubsub:8085
# Google Cloud variables:
GOOGLE_CLOUD_PROJECT: ${ICALIA_SDK_GOOGLE_CLOUD_PROJECT:-example-gcp-project-id}
GOOGLE_CLOUD_CREDENTIALS: /workspaces/icalia-sdk/google-cloud-credentials.json
core:
<<: *library
working_dir: /workspaces/icalia-sdk/core
event_notification:
<<: *library
depends_on:
- pubsub
working_dir: /workspaces/icalia-sdk/event-notification
event_webhook:
<<: *library
working_dir: /workspaces/icalia-sdk/event-webhook
event_meta:
<<: *library
depends_on:
- pubsub
working_dir: /workspaces/icalia-sdk/event
sdk_meta:
<<: *library
depends_on:
- pubsub
working_dir: /workspaces/icalia-sdk/sdk