forked from IBM-Cloud/ibmcloud-image-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (29 loc) · 1.16 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
---
# if you want to try the docker as your development env:
# Prerequisite if you want to run TF or CLI:
# export IBMCLOUD_API_KEY=<YOURS>
# source cloud.env
# Run:
# docker-compose run ibmcloud-image-builder
version: "3.3"
services:
ibmcloud-image-builder:
privileged: true
build:
context: .
image: ibmcloud-image-builder-ubuntu:latest
volumes:
# For future ssh use in development
- ~/.ssh:/home/ubuntu/.ssh:ro
- /voljenkins/test/github/ibmcloud-image-builder/:/ibmcloud-image-builder
- /voljenkins/test/genctl/system-tf-base/:/system-tf-base
environment:
IBMCLOUD_API_KEY: "$IBMCLOUD_API_KEY"
IBMCLOUD_API_ENDPOINT: $IBMCLOUD_API_ENDPOINT
IBMCLOUD_IAM_API_ENDPOINT: "$IBMCLOUD_IAM_API_ENDPOINT"
IBMCLOUD_IS_NG_API_ENDPOINT: "$IBMCLOUD_IS_NG_API_ENDPOINT"
# Resource Group Related
IBMCLOUD_RESOURCE_CATALOG_API_ENDPOINT: $IBMCLOUD_RESOURCE_CATALOG_API_ENDPOINT
IBMCLOUD_RESOURCE_MANAGEMENT_API_ENDPOINT: $IBMCLOUD_RESOURCE_MANAGEMENT_API_ENDPOINT
IBMCLOUD_RESOURCE_CONTROLLER_API_ENDPOINT: $IBMCLOUD_RESOURCE_CONTROLLER_API_ENDPOINT
working_dir: /ibmcloud-image-builder