mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
73518bf1e7
commit
6c4f6211cb
1
devenv/docker/blocks/mysql_tests/.env
Normal file
1
devenv/docker/blocks/mysql_tests/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
mysql_version=5.6
|
@ -1,3 +1,4 @@
|
|||||||
FROM mysql:5.6
|
ARG mysql_version=5.6
|
||||||
|
FROM mysql:${mysql_version}
|
||||||
ADD setup.sql /docker-entrypoint-initdb.d
|
ADD setup.sql /docker-entrypoint-initdb.d
|
||||||
CMD ["mysqld"]
|
CMD ["mysqld"]
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
mysqltests:
|
mysqltests:
|
||||||
build:
|
build:
|
||||||
context: docker/blocks/mysql_tests
|
context: docker/blocks/mysql_tests
|
||||||
|
args:
|
||||||
|
- mysql_version=${mysql_version}
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: rootpass
|
MYSQL_ROOT_PASSWORD: rootpass
|
||||||
MYSQL_DATABASE: grafana_tests
|
MYSQL_DATABASE: grafana_tests
|
||||||
|
1
devenv/docker/blocks/postgres_tests/.env
Normal file
1
devenv/docker/blocks/postgres_tests/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
postgres_version=9.3
|
@ -1,3 +1,4 @@
|
|||||||
FROM postgres:9.3
|
ARG postgres_version=9.3
|
||||||
|
FROM postgres:${postgres_version}
|
||||||
ADD setup.sql /docker-entrypoint-initdb.d
|
ADD setup.sql /docker-entrypoint-initdb.d
|
||||||
CMD ["postgres"]
|
CMD ["postgres"]
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
postgrestest:
|
postgrestest:
|
||||||
build:
|
build:
|
||||||
context: docker/blocks/postgres_tests
|
context: docker/blocks/postgres_tests
|
||||||
|
args:
|
||||||
|
- postgres_version=${postgres_version}
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: grafanatest
|
POSTGRES_USER: grafanatest
|
||||||
POSTGRES_PASSWORD: grafanatest
|
POSTGRES_PASSWORD: grafanatest
|
||||||
|
Loading…
Reference in New Issue
Block a user