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.
- Grab project
git clone https://github.com/JeffersonLab/mycontainer
cd mycontainer
- Launch Compose
docker compose up
- Query for channels list
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 .
- Create a new release on the GitHub Releases (Enumerate changes and link issues).
- Build and publish a new Docker image from the GitHub tag. GitHub is configured to do this automatically on git push of semver tag (typically part of GitHub release) or the Publish to DockerHub action can be manually triggered after selecting a tag.
- Bump and commit quick start image version