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