mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -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
|
||||
CMD ["mysqld"]
|
||||
|
@ -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
|
||||
|
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
|
||||
CMD ["postgres"]
|
||||
|
@ -1,6 +1,8 @@
|
||||
postgrestest:
|
||||
build:
|
||||
context: docker/blocks/postgres_tests
|
||||
args:
|
||||
- postgres_version=${postgres_version}
|
||||
environment:
|
||||
POSTGRES_USER: grafanatest
|
||||
POSTGRES_PASSWORD: grafanatest
|
||||
|
Loading…
Reference in New Issue
Block a user