Skip to content

Commit

Permalink
Add build via alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
oglimmer committed Nov 25, 2016
1 parent e5d2f7d commit cea7827
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker/Build-alpine/Dockerfile
@@ -0,0 +1,17 @@
FROM openjdk:8-jdk-alpine

MAINTAINER Oli Zimpasser <oglimmer@gmail.com>

RUN apk update && apk upgrade && apk add git

RUN MAVEN_VERSION=3.3.3 \
&& cd /usr/share \
&& wget -q http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz -O - | tar xzf - \
&& mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

ENV MAVEN_HOME /usr/share/maven

WORKDIR /home

CMD git clone https://github.com/oglimmer/cyc && cd cyc && mvn package
11 changes: 11 additions & 0 deletions docker/Build-alpine/README.md
@@ -0,0 +1,11 @@
DESC
====

This demonstrates how to build cyc via an alpine image.

USAGE
=====

docker build -t codeyourrestaurant/simplebuild .

docker run -rm codeyourrestaurant/simplebuild
5 changes: 5 additions & 0 deletions docker/README.md
Expand Up @@ -8,3 +8,8 @@ Build

Demonstrates how to build cyc. Doesn't try to deploy it.

Build-alpine
============

Demonstrates how to build cyc via an alpine image. Doesn't try to deploy it.

0 comments on commit cea7827

Please sign in to comment.