Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding test config #8

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

adding test config #8

wants to merge 16 commits into from

Conversation

AShlychkova
Copy link

@AShlychkova AShlychkova commented Mar 22, 2019

CircleCI config (#2)
runs correctly (seems so), but current master code fails

docker stop stand_grafana_1
docker stop stand_carbon-clickhouse_1
docker stop stand_clickhouse_1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add produced image as an Artifact.

- checkout
- run: |
cd stand
(docker-compose up)&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is probably better to run this in executor, maybe ignoring docker-compose - just manually call docker

(docker-compose up)&
sleep 180
(timeout 30 bash generator.sh)&
sleep 20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with circle ci you can dockerize -wait tcp:// to avoid sleeps

sleep 180
(timeout 30 bash generator.sh)&
sleep 20
bash image.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use run instruction multiple times for better output structure

sleep 30
docker stop stand_grafana_1
docker stop stand_carbon-clickhouse_1
docker stop stand_clickhouse_1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will not need stops once you define services


- run:
name: install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please split that line?
Also dockerize should be present in circleci native images

@code-of-kpp code-of-kpp added the conflicts Author was asked to rebase label May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Author was asked to rebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants