mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Add makefile and basic dockerfile
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
conf/local.json
|
||||||
|
|
||||||
# Let's not share anything because we're using Maven.
|
# Let's not share anything because we're using Maven.
|
||||||
|
|
||||||
.idea
|
.idea
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user