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

Tidies build and completes migration off docker.io images during build #3281

Merged
merged 4 commits into from
Nov 2, 2020

Conversation

codefromthecrypt
Copy link
Member

This makes some editorial changes to make this project look the same as
zipkin-aws and zipkin-gcp. It also completes migration off docker.io
images so that routine test and development cannot cause a build outage.

Fixes #3279

This makes some editorial changes to make this project look the same as
zipkin-aws and zipkin-gcp. It also completes migration off docker.io
images so that routine test and development cannot cause a build outage.

Fixes #3279
set -xeuo pipefail

if ! curl --retry 5 --retry-connrefused --retry-delay 0 -sf https://grafana:3000/api/dashboards/name/prom; then
if ! curl --retry 5 --retry-connrefused --retry-delay 0 -sf https://grafana:3000/api/datasources/name/prom; then
curl -sf -X POST -H "Content-Type: application/json" \
--data-binary '{"name":"prom","type":"prometheus","url":"https://prometheus:9090","access":"proxy","isDefault":true}' \
https://grafana:3000/api/datasources
Copy link
Member Author

Choose a reason for hiding this comment

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

this was a pre-flight check that checked the wrong condition, but wouldn't have mattered

@codefromthecrypt
Copy link
Member Author

fyi I verified grafana works in docker-compose, but for some reason, it starts, but doesn't import the dashboard in ServerIntegratedBenchmark. I'm leaving that as is for now as don't have time to figure out why.

new GenericContainer<>(parse("quay.io/rackspace/curl:7.70.0"))
.withNetwork(Network.SHARED)
.withWorkingDirectory("/tmp")
.withLogConsumer(new Slf4jLogConsumer(LOG))
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the container that I can't tell if even worked or not despite it being fine in docker-compose externally. Even it logged nothing though the logging properties here are set to info -> stdout.

Copy link
Contributor

Choose a reason for hiding this comment

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

If grafana has the zipkin dashboards, it should be working ok.

new GenericContainer<>(parse("quay.io/rackspace/curl:7.70.0"))
.withNetwork(Network.SHARED)
.withWorkingDirectory("/tmp")
.withLogConsumer(new Slf4jLogConsumer(LOG))
Copy link
Contributor

Choose a reason for hiding this comment

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

If grafana has the zipkin dashboards, it should be working ok.

@codefromthecrypt
Copy link
Member Author

If grafana has the zipkin dashboards, it should be working ok.

problem is that it doesn't :P not in the benchmark script anyway

@codefromthecrypt
Copy link
Member Author

we can debug the grafana dashboard lack in another PR. thanks for the look @anuraaga!

@codefromthecrypt codefromthecrypt merged commit c3177fa into master Nov 2, 2020
@codefromthecrypt codefromthecrypt deleted the build-tidies branch November 2, 2020 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find a replacement for "rabbitmq:3.8-management-alpine"
2 participants