mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
Use captain to build images
This commit is contained in:
parent
04264931b5
commit
ed3a2e2526
@ -15,8 +15,10 @@ ensure_triton_cns_is_enabled
|
|||||||
get_triton_details
|
get_triton_details
|
||||||
write_env_file
|
write_env_file
|
||||||
|
|
||||||
docker-compose build
|
docker login -e="." -u="$_DOCKER_LOGIN_USERNAME" -p="$_DOCKER_LOGIN_PASSWORD" $_DOCKER_REGISTRY
|
||||||
docker-compose push
|
curl -sSL https://raw.githubusercontent.com/tomgco/captain/master/install.sh | bash
|
||||||
|
export PATH=$HOME/.captain/bin:$PATH
|
||||||
|
captain build -N yldio/joyent-dashboard-
|
||||||
|
|
||||||
export DOCKER_HOST=$_DOCKER_HOST
|
export DOCKER_HOST=$_DOCKER_HOST
|
||||||
export DOCKER_CERT_PATH=$_DOCKER_CERT_PATH
|
export DOCKER_CERT_PATH=$_DOCKER_CERT_PATH
|
||||||
|
@ -22,7 +22,7 @@ consul:
|
|||||||
# CloudAPI GraphQL
|
# CloudAPI GraphQL
|
||||||
#############################################################################
|
#############################################################################
|
||||||
cloudapi:
|
cloudapi:
|
||||||
build: ./cloudapi-graphql
|
image: quay.io/yldio/joyent-dashboard-cloudapi-graphql
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
labels:
|
labels:
|
||||||
- triton.cns.services=cloudapi
|
- triton.cns.services=cloudapi
|
||||||
@ -35,7 +35,7 @@ cloudapi:
|
|||||||
# Frontend
|
# Frontend
|
||||||
#############################################################################
|
#############################################################################
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
image: quay.io/yldio/joyent-dashboard-cloudapi-backend
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
labels:
|
labels:
|
||||||
- triton.cns.services=backend
|
- triton.cns.services=backend
|
||||||
|
@ -8,6 +8,7 @@ cloudapi:
|
|||||||
extends:
|
extends:
|
||||||
file: docker-compose.yml
|
file: docker-compose.yml
|
||||||
service: cloudapi
|
service: cloudapi
|
||||||
|
build: ./cloudapi-graphql
|
||||||
links:
|
links:
|
||||||
- consul:consul
|
- consul:consul
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user