1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

Use captain to build images

This commit is contained in:
Tom Gallacher 2016-10-21 11:50:37 +01:00
parent 04264931b5
commit ed3a2e2526
3 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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: