Read-only MYA Docker container
4.4K
Read-only MYA Docker container.
The JLab EPICS archiver is named MYA, and this project provides a read-only single node instance in a container. The container image leverages the MariaDB image and adds the MYA schema with some example data. The parts of MYA that monitor EPICS and write to the database are not included. This container is useful for testing and developing MYA-dependent apps.
git clone https://github.com/JeffersonLab/mycontainer
cd mycontainer
docker compose up
docker exec -it mya bash
mysql -u myapi -p -A archive
select * from channels;
Use password: password
docker pull jeffersonlab/mycontainer
The container is extended from the official MariaDB image so all of those environment variables apply, especially the MYSQL_PASSWORD and MYSQL_ROOT_PASSWORD.
You can mount an .sql file into the /docker-entrypoint-initdb.d/ directory to add additional data. Some files already exist, so be careful not to overwrite or name your file starting with a number that forces it to be processed before the base DDL is run. Use a file mount and avoid an entire directory mount else you'll erase the 00_base.sql file needed to setup the base DDL.
git clone https://github.com/JeffersonLab/mycontainer
cd mycontainer
docker build -t mycontainer .
Content type
Image
Digest
sha256:03e6f2e28…
Size
113.3 MB
Last updated
about 3 years ago
docker pull jeffersonlab/mycontainer