pre-req:
install latest docker and docker-compose from https://www.docker.com
dw-seqdb
work-in-progress
Going from a vagrant-packaging ( dev - https://bitbucket.org/aafc-mbb/seqdb-vagrant ) to docker-packaging.
Every new release comes from aafc as a ZIP file containing:
- war-file (store in the 'tomcat'-directory)
- sql-dump (store in the 'mysql_autoload'-directory)
- context.xml (store in the 'tomcat'-directory)
the context.xml has information about the database
- JNDI-name = jdbc/SeqDBWeb
- username and password
- url="jdbc:mysql://db/seqdbweb?useUnicode=true&characterEncoding=utf-8"
where 'db' is the container-name ( set in the docker-compose.yml)
run with the proxy-docker
store the nrm.se.crt- and nrm.se.key-files in the 'certs'-directory
image is stored at hub.docker.com
- Check that your version of the image is the same in the docker-compose.yml and in the Makefile
- latest image is stored in https://hub.docker.com/r/dina/seqdb/tags/
- the image is populated with seqdb version 3.8 (seqdb.web-3.8.war)
Run the target 'make'
login with Admin/Admin
Environment for tomcat
Java
Oracle-Java , version 8
Apache Tomcat
version 7.0.69
Environment for database
DB
MySQL, version 5.6
for the developer.
if pushing to hub.docker.com
- Makefile : set a tag via DOCKERHUB_VER='tag' ( i.e DOCKERHUB_VER=v0.8 )
- run 'make build'
- try the image 'make up'
- push the image : 'make release'
how to log in to the docker container
- docker exec -it seqdbdocker_tomcat_1 bash
- docker exec -it seqdbdocker_db_1 mysql -u brf -p
Wherer seqdbdocker_tomcat_1 and seqdbdocker_db_1 are the names of the container