Add makefile and basic dockerfile

This commit is contained in:
Shane Kilkelly 2018-10-08 10:36:20 +01:00
parent 0908e8e607
commit 33dbbe49ff
3 changed files with 40 additions and 0 deletions

View file

@ -1,6 +1,8 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
conf/local.json
# Let's not share anything because we're using Maven.
.idea

View file

@ -0,0 +1,15 @@
# Dockerfile for git-bridge
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y make maven openjdk-8-jdk && \
update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-openjdk-amd64/bin/java 100 && \
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 100 && \
update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/bin/java && \
update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
RUN mkdir /app

View file

@ -0,0 +1,23 @@
# git-bridge makefile
run: package
java -jar target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar config/local.json
build:
mvn package
test:
mvn test
clean:
mvn clean
package:
mvn package
.PHONY: build clean test