Added IMDS emulator container.
This commit is contained in:
1 parent
f7466a0ac2
commit
b5cb5f0952
6 files changed
+290
-47
No files matched your search
+16
-5
@@ -1,14 +1,25 @@
|
||||
services:
|
||||
sts-agent:
|
||||
build: .
|
||||
ulimits:
|
||||
memlock: 64000000
|
||||
imds-emulator:
|
||||
build: ../imds-emulator
|
||||
volumes:
|
||||
- /mnt/ext-storage:/mnt/ext-storage:ro
|
||||
- /etc/sts-agent:/etc/sts-agent:ro
|
||||
environment:
|
||||
GOOGLE_APPLICATION_CREDENTIALS: /etc/sts-agent/cred.json
|
||||
GOOGLE_API_CERTIFICATE_CONFIG: /etc/sts-agent/certificate_config.json
|
||||
PROJECT_ID: ${PROJECT_ID}
|
||||
PROJECT_NUMBER: ${PROJECT_NUMBER}
|
||||
|
||||
sts-agent:
|
||||
image: gcr.io/cloud-ingest/tsop-agent:latest
|
||||
depends_on:
|
||||
- imds-emulator
|
||||
ulimits:
|
||||
memlock: 64000000
|
||||
volumes:
|
||||
- /mnt/ext-storage:/mnt/ext-storage:ro
|
||||
environment:
|
||||
GCE_METADATA_HOST: imds-emulator
|
||||
GCE_METADATA_IP: imds-emulator
|
||||
command:
|
||||
- --project-id=${PROJECT_ID}
|
||||
- --hostname=${HOSTNAME}
|
||||
|
||||
Reference in new issue
Block a user