Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ executors:

builder:
docker:
- image: omisegoimages/elixir-omg-builder:dev-a21824a
- image: omisegoimages/elixir-omg-builder:dev-85e4411
working_directory: ~/src

builder_pg:
docker:
- image: omisegoimages/elixir-omg-builder:dev-a21824a
- image: omisegoimages/elixir-omg-builder:dev-85e4411
- image: circleci/postgres:9.6-alpine
environment:
POSTGRES_USER: omisego_dev
Expand All @@ -34,7 +34,7 @@ executors:

builder_pg_geth:
docker:
- image: omisegoimages/elixir-omg-tester:dev-a21824a
- image: omisegoimages/elixir-omg-tester:dev-85e4411
- image: circleci/postgres:9.6-alpine
environment:
POSTGRES_USER: omisego_dev
Expand All @@ -44,7 +44,7 @@ executors:

deployer:
docker:
- image: omisegoimages/elixir-omg-deploy:dev-a21824a
- image: omisegoimages/elixir-omg-deploy:dev-85e4411
working_directory: ~/src

commands:
Expand Down Expand Up @@ -137,7 +137,7 @@ commands:
- run:
name: "Docker run <<parameters.test_name>>"
command: |
docker run --rm -it --network=chain_net -e DOCKER=true -e CHILD_CHAIN_URL=http://172.27.0.108:9656/v1 -e ETHEREUM_RPC_URL=http://172.27.0.108:80 -e DOCKER_GETH=true -e TEST_DATABASE_URL=postgresql://omisego_dev:omisego_dev@172.27.0.107:5432/omisego_test -e SHELL=/bin/sh -v $(pwd):/app --entrypoint /bin/sh omisegoimages/elixir-omg-builder:dev-a21824a -c "cd /app && mix deps.get && <<parameters.test_command>>"
docker run --rm -it --network=chain_net -e DOCKER=true -e CHILD_CHAIN_URL=http://172.27.0.108:9656/v1 -e ETHEREUM_RPC_URL=http://172.27.0.108:80 -e DOCKER_GETH=true -e TEST_DATABASE_URL=postgresql://omisego_dev:omisego_dev@172.27.0.107:5432/omisego_test -e SHELL=/bin/sh -v $(pwd):/app --entrypoint /bin/sh omisegoimages/elixir-omg-builder:dev-85e4411 -c "cd /app && mix deps.get && <<parameters.test_command>>"

install_elixir:
description: Installs elixir and checks if docker is healthy
Expand Down Expand Up @@ -653,7 +653,7 @@ jobs:
-e SHELL=/bin/sh \
-v $(pwd):/app \
--entrypoint /bin/sh \
"omisego/childchain-builder:dev-a21824a" -c "cd /app/priv/cabbage && apk add maven && apk add jq && make install && make generate_api_code && mix deps.get && mix test ${TESTFILES} --trace"
"omisego/childchain-builder:dev-85e4411" -c "cd /app/priv/cabbage && apk add maven && apk add jq && make install && make generate_api_code && mix deps.get && mix test ${TESTFILES} --trace"
- store_test_results:
path: ~/project/priv/cabbage/_build/test/lib/itest/
- save_cache:
Expand Down Expand Up @@ -812,7 +812,7 @@ jobs:
-e REORG=true \
-v $(pwd):/app \
--entrypoint /bin/sh \
"omisego/childchain-builder:dev-a21824a" -c "cd /app/priv/cabbage && apk add maven && apk add jq && make install && make generate_api_code && mix deps.get && mix test --only deposit --trace"
"omisego/childchain-builder:dev-85e4411" -c "cd /app/priv/cabbage && apk add maven && apk add jq && make install && make generate_api_code && mix deps.get && mix test --only deposit --trace"
- save_cache:
key: docker_compose_release-cabbage-{{ checksum "~/project/priv/cabbage/mix.lock" }}
paths:
Expand Down Expand Up @@ -1111,11 +1111,11 @@ workflows:
filters: *all_branches_and_tags
# - test_docker_compose_performance:
# filters: *all_branches_and_tags
- test_docker_compose_reorg:
filters:
branches:
only:
- master-v2
- test_docker_compose_reorg
# filters:
# branches:
# only:
# - master-v2
- audit_deps:
requires: [build]
filters: *all_branches_and_tags
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.watcher
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN set -xe \
#rocksdb from builder image to deployer image
RUN mkdir -p /usr/local/rocksdb/lib
RUN mkdir /usr/local/rocksdb/include
COPY --from=omisegoimages/elixir-omg-builder:dev-a21824a /usr/local/rocksdb/ /usr/local/rocksdb/
COPY --from=omisegoimages/elixir-omg-builder:dev-85e4411 /usr/local/rocksdb/ /usr/local/rocksdb/

ARG release_version
ADD _build_docker/prod/watcher-${release_version}.tar.gz /app
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.watcher_info
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN set -xe \
#rocksdb from builder image to deployer image
RUN mkdir -p /usr/local/rocksdb/lib
RUN mkdir /usr/local/rocksdb/include
COPY --from=omisegoimages/elixir-omg-builder:dev-a21824a /usr/local/rocksdb/ /usr/local/rocksdb/
COPY --from=omisegoimages/elixir-omg-builder:dev-85e4411 /usr/local/rocksdb/ /usr/local/rocksdb/

ARG release_version
ADD _build_docker/prod/watcher_info-${release_version}.tar.gz /app
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ all: clean build-watcher-prod build-watcher_info-prod
WATCHER_IMAGE_NAME ?= "omisego/watcher-v2:latest"
WATCHER_INFO_IMAGE_NAME ?= "omisego/watcher_info-v2:latest"

IMAGE_BUILDER ?= "omisegoimages/elixir-omg-builder:dev-a21824a"
IMAGE_BUILDER ?= "omisegoimages/elixir-omg-builder:dev-85e4411"
IMAGE_BUILD_DIR ?= $(PWD)

ENV_DEV ?= env MIX_ENV=dev
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "2.3"
services:
elixir-omg:
image: omisegoimages/elixir-omg-builder:dev-a21824a
image: omisegoimages/elixir-omg-builder:dev-85e4411
environment:
DATABASE_URL: postgres://omisegodev:omisegodev@postgres:5432/omisego_dev
TEST_DATABASE_URL: postgres://omisegodev:omisegodev@postgres:5432/omisego_test
Expand Down
2 changes: 1 addition & 1 deletion snapshot_reorg.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SNAPSHOT=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-a21824a-MIN_EXIT_PERIOD-120-PLASMA_CONTRACTS_SHA--reorg.tar.gz
SNAPSHOT=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-85e4411-MIN_EXIT_PERIOD-120-PLASMA_CONTRACTS_SHA--reorg.tar.gz
CONTRACT_SHA=5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28
8 changes: 4 additions & 4 deletions snapshots.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_20=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-a21824a-MIN_EXIT_PERIOD-20-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-false.tar.gz
SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_120=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-a21824a-MIN_EXIT_PERIOD-120-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-false.tar.gz
VAULT_SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_20=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-a21824a-MIN_EXIT_PERIOD-20-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-true.tar.gz
VAULT_SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_120=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-a21824a-MIN_EXIT_PERIOD-120-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-true.tar.gz
SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_20=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-85e4411-MIN_EXIT_PERIOD-20-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-false.tar.gz
SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_120=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-85e4411-MIN_EXIT_PERIOD-120-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-false.tar.gz
VAULT_SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_20=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-85e4411-MIN_EXIT_PERIOD-20-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-true.tar.gz
VAULT_SNAPSHOT_MIN_EXIT_PERIOD_SECONDS_120=https://storage.googleapis.com/circleci-docker-artifacts/data-elixir-omg-tester-plasma-deployer-dev-85e4411-MIN_EXIT_PERIOD-120-PLASMA_CONTRACTS_SHA-5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28-VAULT-true.tar.gz
CONTRACT_SHA=5d29c432e9b55ae2c7ec7a06a5e66761eca7ab28