Giter VIP home page Giter VIP logo

webspoon-docker's Introduction

Notice

This repository has been archived and read-only now. All the contents have been migrated to under ./docker directory of https://github.com/HiromuHota/pentaho-kettle.

How to build an image

$ docker build --no-cache -t hiromuhota/webspoon:latest .

Tags

Tag 0.8.1.ZZ and lower 0.8.2.ZZ 0.8.3.ZZ and higher
nightly Latest commit of webSpoon without plugins Latest commit of webSpoon with plugins <-- Ditto
nightly-full Latest commit of webSpoon with plugins Identical to nightly, but deprecated Discontinued
latest Latest release of webSpoon without plugins Latest release of webSpoon with plugins <-- Ditto
latest-full Latest release of webSpoon with plugins Identical to latest, but deprecated Discontinued
0.X.Y.ZZ 0.X.Y.ZZ of webSpoon without plugins 0.X.Y.ZZ of webSpoon with plugins <-- Ditto
0.X.Y.ZZ-full 0.X.Y.ZZ of webSpoon with plugins Identical to 0.X.Y.ZZ, but deprecated Discontinued

How to use the image

Basic usage

$ docker run -d -p 8080:8080 hiromuhota/webspoon

Please access http://ip-address:8080/spoon/spoon.

Advanced usage

Java heap size

The Java heap size is configured as -Xms1024m -Xmx2048m by default, but can be overridden as -Xms1024m -Xmx1920m for example when a server has only 2GB of memory.

$ docker run -d -p 8080:8080 \
-e JAVA_OPTS="-Xms1024m -Xmx1920m" \
hiromuhota/webspoon

User config and data persistence/share

If the configuration files should be shared among containers, add -v kettle:/home/tomcat/.kettle -v pentaho:/home/tomcat/.pentaho as

$ docker run -d -p 8080:8080 \
-v kettle:/home/tomcat/.kettle -v pentaho:/home/tomcat/.pentaho \
hiromuhota/webspoon

or execute the following docker-compose command

$ docker-compose up -d

webSpoon config

From 0.8.0.14, spoon.war is pre-extracted at $CATALINA_HOME/webapps/spoon so that configs such as web.xml can be configured at run-time using a bind mount. If you want to enable user authentication, for example, download web.xml and edit it as described here. Then add -v $(pwd)/web.xml:/usr/local/tomcat/webapps/spoon/WEB-INF/web.xml to the command.

$ docker run -d -p 8080:8080 \
-v $(pwd)/web.xml:/usr/local/tomcat/webapps/spoon/WEB-INF/web.xml \
hiromuhota/webspoon

Similarly, $CATALINA_HOME/webapps/spoon/WEB-INF/spring/security.xml can be configured at run-time.

Security manager

To enable the custom security manager, enable user authentication and add -e CATALINA_OPTS="-Djava.security.manager=org.pentaho.di.security.WebSpoonSecurityManager -Djava.security.policy=/usr/local/tomcat/conf/catalina.policy" to the run command.

$ docker run -d -p 8080:8080 \
-e CATALINA_OPTS="-Djava.security.manager=org.pentaho.di.security.WebSpoonSecurityManager -Djava.security.policy=/usr/local/tomcat/conf/catalina.policy" \
-v $(pwd)/web.xml:/usr/local/tomcat/webapps/spoon/WEB-INF/web.xml \
-v $(pwd)/catalina.policy:/usr/local/tomcat/conf/catalina.policy \
hiromuhota/webspoon

Debug

$ docker run -d -p 8080:8080 -p 8000:8000 \
-e JPDA_ADDRESS=8000 \
-e CATALINA_OPTS="-Dorg.eclipse.rap.rwt.developmentMode=true" \
hiromuhota/webspoon catalina.sh jpda run

webspoon-docker's People

Contributors

onelittlenightmusic avatar royosaki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.