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 (like HSQLDB etc.)

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

Option 2: If you like to use your own 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 file to disable HSQLDB, enable MySQL with valid credentials and set auto.ddl=true

docker run -d -p 8080:8080 -v /home/yourusername/

Above example uses hosts 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)


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 -Dsun.lang.ClassLoader.allowArraySyntax=true -Duser.language=tr -Duser.region=TR -Djava.library.path=/opt/tomcat/apr-connector/lib:/usr/lib"

Docker Pull Command

Comments (4)
3 years ago

MySQL 5.5 Option and external support added

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)?

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 file. I am sure it will start way faster.

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.