Skip to content

Commit

Permalink
Move catalina_opts to compose env.
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono committed Feb 25, 2017
1 parent 3d88086 commit bf4ee3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can build many different sakai images ready to run at any moment. You just h
* BINARY_RELEASE=11.3,... // Choose a release and don't build the code just test binary releases (fast)
* DB_IMAGE=mysql,mariadb,sakaiproject/oracle // Choose the database docker image
* DB_VERSION=5.6.27,5.5.54,oracle-xe-11g,oracle-12c
* SAKAI_TAG=my_tag_name // Use this to tag your new sakai image, master, 11.3, PRxxx, ...
* SAKAI_TAG=my_tag_name // Use this to tag your new sakai image, master, v11.3, PRxxx, ...

## Build a binary release

Expand All @@ -54,7 +54,7 @@ The first thing you can do is trying a Sakai binary release, without building fr
* Steps to build Sakai 11.3 for any database:
* REPO_OWNER=sakaiproject
* REPO_NAME=sakai
* SAKAI_TAG=11.3
* SAKAI_TAG=v11.3
* TOMCAT_IMAGE=tomcat:8.0.41-jre8
* BINARY_RELEASE=11.3
* SKIP_LAUNCH=true
Expand Down Expand Up @@ -122,7 +122,7 @@ For example you can test some property in a previous 11.3 sakai build.
- EXPERIMENTAL_PROPS=some_url - Any URL with a set of properties, like [this](https://raw.githubusercontent.com/sakaiproject/nightly-config/master/experimental.properties)
- PROPERTIES_FILE=local.properties,sakai.properties,... - Any properties file you want to overwrite.
- SAKAI_BASE_TAG=sakaiproject/sakai:11.3 - The existing image you want to try with this properties.
- SAKAI_TAG=11.3_experimental - You could use any name to tag new image.
- SAKAI_TAG=v11.3_experimental - You could use any name to tag new image.
- Build - Build the image

## More tips and tricks
Expand All @@ -136,7 +136,7 @@ For example you can test some property in a previous 11.3 sakai build.
* SAKAI_BASE_TAG=sakaiproject/sakai:11.3
* EXPERIMENTAL_PROPS=https://beta.etherpad.org/p/your-etherpad-name/export/txt
* PROPERTIES_FILE=local.properties - To add properties in this file
* SAKAI_TAG=11.3_experimental - Any name you want to use to tag the new image
* SAKAI_TAG=v11.3_experimental - Any name you want to use to tag the new image
* SKIP_LAUNCH=true - Do not run the image, just build it.
* You can create multiple pipelines to build different Sakai images.
* Create pipeline and set environment variables
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
links:
- database
environment:
- CATALINA_OPTS_EXTRA=-Dsakai.demo=true -Dsakai.security=/usr/local/tomcat-base/security-$DATABASE_TYPE
- JAVA_OPTS=-server -Xms512m -Xmx1280m -XX:MaxMetaspaceSize=512m -XX:NewSize=192m -XX:MaxNewSize=384m -Doracle.jdbc.timezoneAsRegion=false -Djava.awt.headless=true -Dhttp.agent=Sakai -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Dsun.lang.ClassLoader.allowArraySyntax=true -Dfile.encoding=UTF-8
- CATALINA_OPTS=-Dsakai.demo=true -Duser.language=es -Duser.region=ES -Dsakai.security=/usr/local/tomcat-base/security-$DATABASE_TYPE -Dsakai.home=/usr/local/tomcat-base/sakai -Dsakai.components.root=/usr/local/tomcat-base/components
- CATALINA_BASE=/usr/local/tomcat-base
command: ["/usr/local/tomcat-base/bin/wait-before.sh", "$DATABASE_TYPE", "catalina.sh", "run"]
2 changes: 0 additions & 2 deletions tomcat/bin/setenv.sh

This file was deleted.

0 comments on commit bf4ee3b

Please sign in to comment.