Public Repository

Last pushed: 2 years ago
Short Description
Default Sakai 10.3 Source Install with MySQL 5.5 DB Support
Full Description

##This is a testimonial image to dockerize a fresh Sakai installation with MySQL 5.5 DB Support

First create and run a MySQL 5.5 container using:

docker run --name sakai-mysql -e MYSQL_ROOT_PASSWORD=your_MySQL_root_password -e MYSQL_USER=sakai -e MYSQL_PASSWORD=your_MySQL_sakai_user_password -e MYSQL_DATABASE=sakai -d -p 3306:3306 mysql:5.5

While your MySQL Container is running you can create and run your Sakai Container using:

Option 1: If you like to use default sakai.properties (like HSQLDB etc.)

docker run -d -p 8080:8080 dalan/sakai-10.3

Option 2: If you like to use your own sakai.properties file (with MySQL 5.5 Support etc.)

Note: Remember to connect MySQL Server and set your sakai db collation to UTF-8 before running sakai container. Also do not forget to configure your sakai.properties file to disable HSQLDB, enable MySQL with valid credentials and set auto.ddl=true

docker run -d -p 8080:8080 -v /home/yourusername/sakai.properties:/opt/tomcat/sakai/sakai.properties

Above example uses hosts sakai.properties file in container. So after first launch you should change to auto.ddl=false to restrict db overwrites.

And browse sakai from http://youripaddress:8080/portal

(Give it some 'grab a coffee time' like over 6min for the first launch)

Notes:

Components Used:

Oracle Java 7u71-b14

Apache Maven 3.2.5

Apache Tomcat 7.0.57

New! MySQL Connector Java 5.1.34

Tomcat Configuration Used:

export JAVA_OPTS="-server -Xmx2048m -XX:MaxPermSize=512m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dsun.lang.ClassLoader.allowArraySyntax=true -Duser.language=tr -Duser.region=TR -Djava.library.path=/opt/tomcat/apr-connector/lib:/usr/lib"

export CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=8090 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
Docker Pull Command
Owner
dalan

Comments (4)
dalan
3 years ago

MySQL 5.5 Option and external sakai.properties support added

ncaidin
3 years ago

FYI - we are deprecating support of HSQLDB. Any chance you could make a version using MySql as the default (or we could just add instructions for configuring in Sakai properties)?

dalan
3 years ago

Sakai needs some time (over 6min on a m3.large instance on AWS, over 4min on Vmware fusion Centos 6 on a iMac 12,2) start and serve gateway page for the first time. This container has default db choice of HSQLDB and sakai generates db every time you start the container. So it needs some time. I am working on another tag with mysql and external sakai.properties file. I am sure it will start way faster.

lourinaldi
3 years ago

I get dead air when I hit http://`boot2docker ip`:8080/portal - think I've got all the environment variables set properly.