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
This commit is contained in:
Sofia Papagiannaki 2020-12-02 11:06:53 +02:00 committed by GitHub
parent 73518bf1e7
commit 6c4f6211cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1 @@
mysql_version=5.6

View File

@ -1,3 +1,4 @@
FROM mysql:5.6
ARG mysql_version=5.6
FROM mysql:${mysql_version}
ADD setup.sql /docker-entrypoint-initdb.d
CMD ["mysqld"]

View File

@ -1,6 +1,8 @@
mysqltests:
build:
context: docker/blocks/mysql_tests
args:
- mysql_version=${mysql_version}
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: grafana_tests

View File

@ -0,0 +1 @@
postgres_version=9.3

View File

@ -1,3 +1,4 @@
FROM postgres:9.3
ARG postgres_version=9.3
FROM postgres:${postgres_version}
ADD setup.sql /docker-entrypoint-initdb.d
CMD ["postgres"]

View File

@ -1,6 +1,8 @@
postgrestest:
build:
context: docker/blocks/postgres_tests
args:
- postgres_version=${postgres_version}
environment:
POSTGRES_USER: grafanatest
POSTGRES_PASSWORD: grafanatest