<properties>
<java.version>1.8</java.version>
+ <!-- app settings -->
+ <yourshouter.facebook.app.server.port>8443</yourshouter.facebook.app.server.port>
+ <yourshouter.facebook.app.server.language>de</yourshouter.facebook.app.server.language>
+ <yourshouter.facebook.app.server.country>DE</yourshouter.facebook.app.server.country>
+ <yourshouter.facebook.app.server.timezone>Europe/Berlin</yourshouter.facebook.app.server.timezone>
<!-- settings for the Graph-API -->
- <facebook.app.id>NOT_SET</facebook.app.id>
- <facebook.app.secret>NOT_SET</facebook.app.secret>
- <facebook.app.canvas>NOT_SET</facebook.app.canvas>
+ <yourshouter.facebook.app.client.id>NOT_SET</yourshouter.facebook.app.client.id>
+ <yourshouter.facebook.app.client.secret>NOT_SET</yourshouter.facebook.app.client.secret>
+ <yourshouter.facebook.app.client.canvas>NOT_SET</yourshouter.facebook.app.client.canvas>
<!-- settings for the Apache Commons Http-Client -->
- <httpclient.timeout.connection>60000</httpclient.timeout.connection>
- <httpclient.timeout.read>60000</httpclient.timeout.read>
- <httpclient.logging.level>ERROR</httpclient.logging.level>
+ <yourshouter.facebook.app.httpclient.timeout.connection>60000</yourshouter.facebook.app.httpclient.timeout.connection>
+ <yourshouter.facebook.app.httpclient.timeout.read>60000</yourshouter.facebook.app.httpclient.timeout.read>
+ <yourshouter.facebook.app.httpclient.logging.level>ERROR</yourshouter.facebook.app.httpclient.logging.level>
<!-- database settings for tests -->
- <jdbc.groupId>com.h2database</jdbc.groupId>
- <jdbc.artifactId>h2</jdbc.artifactId>
- <jdbc.url><![CDATA[jdbc:h2:~/test;DB_CLOSE_ON_EXIT=FALSE]]></jdbc.url>
- <jdbc.username>sa</jdbc.username>
- <jdbc.password></jdbc.password>
+ <yourshouter.facebook.app.jdbc.groupId>com.h2database</yourshouter.facebook.app.jdbc.groupId>
+ <yourshouter.facebook.app.jdbc.artifactId>h2</yourshouter.facebook.app.jdbc.artifactId>
+ <yourshouter.facebook.app.jdbc.url><![CDATA[jdbc:h2:~/test;DB_CLOSE_ON_EXIT=FALSE]]></yourshouter.facebook.app.jdbc.url>
+ <yourshouter.facebook.app.jdbc.username>sa</yourshouter.facebook.app.jdbc.username>
+ <yourshouter.facebook.app.jdbc.password></yourshouter.facebook.app.jdbc.password>
</properties>
<dependencies>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
- <groupId>${jdbc.groupId}</groupId>
- <artifactId>${jdbc.artifactId}</artifactId>
+ <groupId>${yourshouter.facebook.app.jdbc.groupId}</groupId>
+ <artifactId>${yourshouter.facebook.app.jdbc.artifactId}</artifactId>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>${mysql.version}</version>
+ </dependency>
</dependencies>
<build>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.26.0</version>
+ <configuration>
+ <images>
+ <image>
+ <name>yourshouter/%a:%v</name>
+ <build>
+ <from>openjdk:8-jre-alpine</from>
+ <maintainer>kai@yourshouter.com</maintainer>
+ <tags>
+ <tag>${project.version}</tag>
+ </tags>
+ <ports>
+ <port>${yourshouter.facebook.app.server.port}/tcp</port>
+ </ports>
+ <entryPoint>
+ <!-- exec form for ENTRYPOINT -->
+ <exec>
+ <arg>java</arg>
+ <arg>-Duser.language=${yourshouter.api.language}</arg>
+ <arg>-Duser.country=${yourshouter.api.country}</arg>
+ <arg>-Duser.timezone=${yourshouter.api.timezone}</arg>
+ <arg>-jar</arg>
+ <arg>/maven/${project.build.finalName}.jar</arg>
+ </exec>
+ </entryPoint>
+ <assembly>
+ <descriptorRef>artifact</descriptorRef>
+ </assembly>
+ </build>
+ </image>
+ </images>
+ </configuration>
+ </plugin>
</plugins>
</build>