FROM centos:6
RUN useradd appuser
CMD env|grep JAVA_OPTIONS|awk -F= '{print "export "$1"=\""$2"\""}'>/etc/profile.d/00_java-env.sh;bash
docker build -t javaenv .docker run -it -e JAVA_OPTIONS="-DjvmProperty1=1 -DjvmProperty2=2" javaenv
| # Inspired from http://elsethenif.wordpress.com/2009/06/11/open-a-new-tab-on-terminal-with-the-same-path-on-mac-os-x/ | |
| # Put this in your ~/.bash_profile | |
| # Added functinality to pass commands to the new tab | |
| # Examples: | |
| # Open a new tab in terminal with the same path: | |
| # nt | |
| # Open a new tab with the same path, and pass command "script/server": | |
| # nt script/server | |
| # Open a new tab with the same path, list all files and navigate one directory up: | |
| # nt ls "cd .." |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>bootcamp-kurs</groupId> | |
| <artifactId>bootcamp-kurs</artifactId> | |
| <version>1.0-SNAPSHOT</version> |
keytool -genkey -alias wiremock -keyalg RSA -keysize 1024 \
-validity 365 -keypass password -keystore identity.jks -storepass password
Important: keypass must equal storepass, or else you'll receive java.io.IOException: !JsseListener: java.security.UnrecoverableKeyException: Cannot recover key