-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add demonstration of TIER logging feature
The other parts of the environment (repo, base image, etc) are temporary.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # | ||
| # Just a demonstration of how to use TIER logging feature of midPoint. | ||
| # It requires v3.9devel-262-g2778b2c or later. | ||
| # | ||
| # This is derived from Evolveum's dockerization; this will be changed. | ||
| # | ||
| # Building: (assumes midpoint-3.9-SNAPSHOT-dist.tar.gz is present in the current directory) | ||
| # | ||
| # docker build -t mp-h2 . | ||
| # | ||
| # Running: | ||
| # | ||
| # docker run -e ENV=testing -e USERTOKEN=3.9 mp-h2 | ||
| # | ||
|
|
||
| FROM openjdk:8-jdk-alpine | ||
|
|
||
| MAINTAINER info@evolveum.com | ||
|
|
||
| ARG MP_VERSION=3.9-SNAPSHOT | ||
| ARG MP_DIST_FILE=midpoint-${MP_VERSION}-dist.tar.gz | ||
|
|
||
| ENV MP_DIR /opt/midpoint | ||
|
|
||
| RUN mkdir -p ${MP_DIR}/var | ||
|
|
||
| COPY ${MP_DIST_FILE} ${MP_DIR} | ||
|
|
||
| RUN echo 'Extracting midPoint archive...' \ | ||
| && tar xzf ${MP_DIR}/midpoint-${MP_VERSION}-dist.tar.gz -C ${MP_DIR} --strip-components=1 | ||
|
|
||
| CMD java -Xmx2048M -Xms2048M -Dfile.encoding=UTF8 -Dmidpoint.home=$MP_DIR/var -Dmidpoint.logging.console.enabled=true -Dmidpoint.logging.console.prefix="midpoint;midpoint.log;$ENV;$USERTOKEN;" -Dmidpoint.logging.console.timezone=UTC -jar $MP_DIR/lib/midpoint.war |