Commit 6c4f6211 by Sofia Papagiannaki Committed by GitHub

Devenv: update mysql_tests and postgres_tests blocks for allowing dynamically…

Devenv: update mysql_tests and postgres_tests blocks for allowing dynamically change of underlying docker image (#29525)

* Devenv: allow dynamically change mysql_tests docker image

* Devenv: allow dynamically change postgres_tests docker image
parent 73518bf1
FROM mysql:5.6
ARG mysql_version=5.6
FROM mysql:${mysql_version}
ADD setup.sql /docker-entrypoint-initdb.d
CMD ["mysqld"]
mysqltests:
build:
context: docker/blocks/mysql_tests
args:
- mysql_version=${mysql_version}
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: grafana_tests
......
FROM postgres:9.3
ARG postgres_version=9.3
FROM postgres:${postgres_version}
ADD setup.sql /docker-entrypoint-initdb.d
CMD ["postgres"]
postgrestest:
build:
context: docker/blocks/postgres_tests
args:
- postgres_version=${postgres_version}
environment:
POSTGRES_USER: grafanatest
POSTGRES_PASSWORD: grafanatest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment