mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 05:03:33 -05:00
Add makefile and basic dockerfile
This commit is contained in:
parent
0908e8e607
commit
33dbbe49ff
3 changed files with 40 additions and 0 deletions
2
services/git-bridge/.gitignore
vendored
2
services/git-bridge/.gitignore
vendored
|
@ -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
|
||||
|
|
15
services/git-bridge/Dockerfile
Normal file
15
services/git-bridge/Dockerfile
Normal 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
|
23
services/git-bridge/Makefile
Normal file
23
services/git-bridge/Makefile
Normal 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
|
Loading…
Reference in a new issue