mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Working docker setup
This commit is contained in:
parent
a1ac1bf17f
commit
394fd17dfa
3 changed files with 23 additions and 4 deletions
|
@ -5,11 +5,12 @@ FROM ubuntu:latest
|
|||
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git make maven openjdk-8-jdk && \
|
||||
apt-get install -y git make maven openjdk-8-jdk curl && \
|
||||
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
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
|
@ -1,6 +1,7 @@
|
|||
# git-bridge makefile
|
||||
|
||||
run:
|
||||
|
||||
run: package
|
||||
java -jar target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar conf/local.json
|
||||
|
||||
|
||||
|
@ -20,4 +21,4 @@ package:
|
|||
mvn package
|
||||
|
||||
|
||||
.PHONY: build clean test
|
||||
.PHONY: run package build clean test
|
||||
|
|
17
services/git-bridge/docker-compose.yml
Normal file
17
services/git-bridge/docker-compose.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
version: "3"
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: sharelatex_overleaf
|
||||
|
||||
services:
|
||||
git_bridge:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- .:/app
|
||||
command: make run
|
||||
ports:
|
||||
- 8000:8000
|
Loading…
Reference in a new issue