builds for swarm
This commit is contained in:
parent
f764b73f66
commit
7c5f6826ae
@ -1,14 +1,33 @@
|
|||||||
include:
|
#include:
|
||||||
- local: 'ci_templates/.cic-template.yml'
|
# - local: 'ci_templates/.cic-template.yml'
|
||||||
- local: 'apps/contract-migration/.gitlab-ci.yml'
|
# - local: 'apps/contract-migration/.gitlab-ci.yml'
|
||||||
- local: 'apps/cic-eth/.gitlab-ci.yml'
|
# - local: 'apps/cic-eth/.gitlab-ci.yml'
|
||||||
- local: 'apps/cic-ussd/.gitlab-ci.yml'
|
# - local: 'apps/cic-ussd/.gitlab-ci.yml'
|
||||||
- local: 'apps/cic-notify/.gitlab-ci.yml'
|
# - local: 'apps/cic-notify/.gitlab-ci.yml'
|
||||||
- local: 'apps/cic-meta/.gitlab-ci.yml'
|
# - local: 'apps/cic-meta/.gitlab-ci.yml'
|
||||||
- local: 'apps/cic-cache/.gitlab-ci.yml'
|
# - local: 'apps/cic-cache/.gitlab-ci.yml'
|
||||||
- local: 'apps/data-seeding/.gitlab-ci.yml'
|
# - local: 'apps/data-seeding/.gitlab-ci.yml'
|
||||||
|
|
||||||
|
image: tiangolo/docker-with-compose
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- deploy
|
||||||
- release
|
|
||||||
|
build-prod:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- docker-compose build
|
||||||
|
only:
|
||||||
|
- bvander/integration-tests-on-docker
|
||||||
|
|
||||||
|
deplok-prod:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- docker stack deploy -c docker-compose.yml --with-registry-auth my-stack
|
||||||
|
only:
|
||||||
|
- bvander/integration-tests-on-docker
|
||||||
|
|
||||||
|
@ -8,25 +8,10 @@ volumes:
|
|||||||
bloxberg-data: {}
|
bloxberg-data: {}
|
||||||
contract-config: {}
|
contract-config: {}
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
name: cic-network
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# eth:
|
|
||||||
# image: trufflesuite/ganache-cli
|
|
||||||
# ports:
|
|
||||||
# - ${HTTP_PORT_ETH:-8545}
|
|
||||||
# - ${WS_PORT_ETH:-8546}
|
|
||||||
# # Note! -e switch doesnt work, whatever you put there, it will be 100
|
|
||||||
# command: "-i 8996 -e 1000 -l 90000000 \
|
|
||||||
# -m '${DEV_MNEMONIC:-\"history stumble mystery avoid embark arrive mom foil pledge keep grain dice\"}' \
|
|
||||||
# -v --db /tmp/cic/ganache/ganache.db \
|
|
||||||
# --noVMErrorsOnRPCResponse --allowUnlimitedContractSize"
|
|
||||||
# volumes:
|
|
||||||
# - ganache-db:/tmp/cic/ganache
|
|
||||||
|
|
||||||
eth:
|
eth:
|
||||||
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/bloxberg-node
|
||||||
build:
|
build:
|
||||||
context: apps/bloxbergValidatorSetup
|
context: apps/bloxbergValidatorSetup
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -71,8 +56,7 @@ services:
|
|||||||
- bee-data:/tmp/cic/bee
|
- bee-data:/tmp/cic/bee
|
||||||
|
|
||||||
contract-migration:
|
contract-migration:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/contract-migration
|
||||||
- migrations
|
|
||||||
build:
|
build:
|
||||||
context: apps/contract-migration
|
context: apps/contract-migration
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -126,8 +110,7 @@ services:
|
|||||||
- contract-config:/tmp/cic/config
|
- contract-config:/tmp/cic/config
|
||||||
|
|
||||||
cic-cache-tracker:
|
cic-cache-tracker:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-cache
|
||||||
- cache
|
|
||||||
build:
|
build:
|
||||||
context: apps/cic-cache
|
context: apps/cic-cache
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -164,8 +147,7 @@ services:
|
|||||||
- contract-config:/tmp/cic/config/:ro
|
- contract-config:/tmp/cic/config/:ro
|
||||||
|
|
||||||
cic-cache-tasker:
|
cic-cache-tasker:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-cache
|
||||||
- cache
|
|
||||||
build:
|
build:
|
||||||
context: apps/cic-cache
|
context: apps/cic-cache
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -203,8 +185,7 @@ services:
|
|||||||
- contract-config:/tmp/cic/config/:ro
|
- contract-config:/tmp/cic/config/:ro
|
||||||
|
|
||||||
cic-cache-server:
|
cic-cache-server:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-cache
|
||||||
- cache
|
|
||||||
build:
|
build:
|
||||||
context: apps/cic-cache
|
context: apps/cic-cache
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -236,10 +217,10 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
cic-eth-tasker:
|
cic-eth-tasker:
|
||||||
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-eth
|
||||||
build:
|
build:
|
||||||
context: apps/cic-eth
|
context: apps/cic-eth
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
target: dev
|
|
||||||
environment:
|
environment:
|
||||||
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
CIC_REGISTRY_ADDRESS: $CIC_REGISTRY_ADDRESS
|
||||||
ETH_GAS_PROVIDER_ADDRESS: $DEV_ETH_ACCOUNT_GAS_PROVIDER
|
ETH_GAS_PROVIDER_ADDRESS: $DEV_ETH_ACCOUNT_GAS_PROVIDER
|
||||||
@ -286,10 +267,10 @@ services:
|
|||||||
# command: [/bin/sh, "./start_tasker.sh", -q, cic-eth, -vv ]
|
# command: [/bin/sh, "./start_tasker.sh", -q, cic-eth, -vv ]
|
||||||
|
|
||||||
cic-eth-tracker:
|
cic-eth-tracker:
|
||||||
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-eth
|
||||||
build:
|
build:
|
||||||
context: apps/cic-eth
|
context: apps/cic-eth
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
target: dev
|
|
||||||
environment:
|
environment:
|
||||||
ETH_PROVIDER: http://eth:8545
|
ETH_PROVIDER: http://eth:8545
|
||||||
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
||||||
@ -325,10 +306,10 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
cic-eth-dispatcher:
|
cic-eth-dispatcher:
|
||||||
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-eth
|
||||||
build:
|
build:
|
||||||
context: apps/cic-eth
|
context: apps/cic-eth
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
target: dev
|
|
||||||
environment:
|
environment:
|
||||||
ETH_PROVIDER: http://eth:8545
|
ETH_PROVIDER: http://eth:8545
|
||||||
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
||||||
@ -365,10 +346,10 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
cic-eth-retrier:
|
cic-eth-retrier:
|
||||||
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-eth
|
||||||
build:
|
build:
|
||||||
context: apps/cic-eth
|
context: apps/cic-eth
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
target: dev
|
|
||||||
environment:
|
environment:
|
||||||
ETH_PROVIDER: http://eth:8545
|
ETH_PROVIDER: http://eth:8545
|
||||||
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
DATABASE_USER: ${DATABASE_USER:-grassroots}
|
||||||
@ -408,6 +389,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
cic-notify-tasker:
|
cic-notify-tasker:
|
||||||
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-notify
|
||||||
build:
|
build:
|
||||||
context: apps/cic-notify
|
context: apps/cic-notify
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -436,8 +418,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
cic-meta-server:
|
cic-meta-server:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-meta
|
||||||
- custodial-meta
|
|
||||||
hostname: meta
|
hostname: meta
|
||||||
build:
|
build:
|
||||||
context: apps/cic-meta
|
context: apps/cic-meta
|
||||||
@ -471,8 +452,7 @@ services:
|
|||||||
# command: "/root/start_server.sh -vv"
|
# command: "/root/start_server.sh -vv"
|
||||||
|
|
||||||
cic-user-ussd-server:
|
cic-user-ussd-server:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-ussd
|
||||||
- custodial-ussd
|
|
||||||
build:
|
build:
|
||||||
context: apps/cic-ussd
|
context: apps/cic-ussd
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -502,8 +482,7 @@ services:
|
|||||||
command: "/root/start_cic_user_ussd_server.sh -vv"
|
command: "/root/start_cic_user_ussd_server.sh -vv"
|
||||||
|
|
||||||
cic-user-server:
|
cic-user-server:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-ussd
|
||||||
- custodial-ussd
|
|
||||||
build:
|
build:
|
||||||
context: apps/cic-ussd
|
context: apps/cic-ussd
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
@ -526,8 +505,7 @@ services:
|
|||||||
command: "/root/start_cic_user_server.sh -vv"
|
command: "/root/start_cic_user_server.sh -vv"
|
||||||
|
|
||||||
cic-user-tasker:
|
cic-user-tasker:
|
||||||
profiles:
|
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-ussd
|
||||||
- custodial-ussd
|
|
||||||
build:
|
build:
|
||||||
context: apps/cic-ussd/
|
context: apps/cic-ussd/
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
|
Loading…
Reference in New Issue
Block a user