Skip to content

Instantly share code, notes, and snippets.

@lukewpatterson
Created January 5, 2015 04:38
Show Gist options
  • Save lukewpatterson/3d9b56fa15b24d361019 to your computer and use it in GitHub Desktop.
Save lukewpatterson/3d9b56fa15b24d361019 to your computer and use it in GitHub Desktop.

khs-docker-caching-blog

org.apache.maven.archetypes:maven-archetype-quickstart:1.1

package com.keyholesoftware.blog;
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
package com.keyholesoftware.blog;
import junit.framework.*;
public class AppTest extends TestCase
{
public void testApp()
{
assertTrue( true );
}
}
FROM maven:3.2.5-jdk-8u40
RUN mkdir --parents /usr/src/app
WORKDIR /usr/src/app
ADD . /usr/src/app
RUN mvn verify
<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>com.keyholesoftware.blog</groupId>
<artifactId>khs-docker-caching-blog</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment