You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each supported CDMS should have Dockerfile and docker-compose.yml to allow the quick creation of a test database instance for integration testing using their original database technology.
Allowing us to then use a simple docker-compose up -d
Instead of manually copying the DDL into the container (as shown below) and then restoring this to the database instance, we should git clone –depth 1 –branch main this public repository from within the Dockerfile and then automate the restore process.
get into the container using docker exec -it midas_oracle bash
sqlplus and use system/oracle
then run @'/tmp/2020.12.04 dumpMIDAS_ddl.sql' to execute the DDL file.
Although building MySQL 5.1 succeeded, attempts to build Oracle XE failed and we switched to using oracleinanutshell/oracle-xe-11g. We should make a copy of the oracle-xe-11g image, and other essential publicly available images, to ensure that we do not lose access to them in the future.
The text was updated successfully, but these errors were encountered:
Each supported CDMS should have
Dockerfile
anddocker-compose.yml
to allow the quick creation of a test database instance for integration testing using their original database technology.opencdms-test-data/schemas/clide/clidedb_schema.sql
opencdms-test-data/schemas/climsoft/v4/v4.1.1/climsoft_v4_all.sql
opencdms-test-data/schemas/mch/Create_MCH_English_basic_tables.sql
opencdms-test-data/schemas/midas/midas_core_ddl.sql
For example:
docker-compose.yml
Allowing us to then use a simple
docker-compose up -d
Instead of manually copying the DDL into the container (as shown below) and then restoring this to the database instance, we should
git clone –depth 1 –branch main
this public repository from within theDockerfile
and then automate the restore process.docker ps
/tmp/
of the container usingdocker cp ./met-office-midas/ddl/2020.12.04\ dumpMIDAS_ddl.sql 885756c1abad:/tmp/
docker exec -it midas_oracle bash
sqlplus
and use system/oracle@'/tmp/2020.12.04 dumpMIDAS_ddl.sql'
to execute the DDL file.Although building MySQL 5.1 succeeded, attempts to build Oracle XE failed and we switched to using oracleinanutshell/oracle-xe-11g. We should make a copy of the oracle-xe-11g image, and other essential publicly available images, to ensure that we do not lose access to them in the future.
The text was updated successfully, but these errors were encountered: