forked from EugenMayer/officeconverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
build: stop
docker pull ghcr.io/jodconverter/jodconverter-runtime:0.0.1
docker build --build-arg BASE_IMAGE_VERSION=0.0.1 --build-arg VERSION=0.1.0 --target development . -t ghcr.io/eugenmayer/kontextwork-converter:development
docker build --build-arg BASE_IMAGE_VERSION=0.0.1 --build-arg VERSION=0.1.0 --target production . -t ghcr.io/eugenmayer/kontextwork-converter:production
start-src: stop
./start.sh
watch:
./watch.sh
start: stop
# 5001 is the remote debugger port, which we enable by default
docker run -m 2048m --name converter-dev --rm -p 5001:5001 -p 8080:8080 ghcr.io/eugenmayer/kontextwork-converter:development
start-prod: stop
docker run -m 2048m --name converter-prod --rm -p 8080:8080 ghcr.io/eugenmayer/kontextwork-converter:production
test:
docker run -m 2048m --name converter-test --rm -v ${PWD}/.:/src --workdir /src ghcr.io/eugenmayer/kontextwork-converter:development ./gradlew itTest
stop:
docker stop --name converter-prod > /dev/null 2>&1 || true
docker stop --name converter-dev > /dev/null 2>&1 || true
build-local:
./gradlew build
start-local:
./gradlew bootRun
test-local:
./gradlew test