forked from joelplourde3/kf-etl-clin-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·28 lines (24 loc) · 755 Bytes
/
build.sh
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
#!/bin/bash
set -e
set -x
mkdir -p ~/.ivy2 ~/.sbt ~/.m2 ~/.sbt_cache
echo "Generate config ..."
docker run --net host --rm -v $(pwd):/app/project \
--user $(id -u):$(id -g) \
-v ~/.m2:/app/.m2 \
-v ~/.ivy2:/app/.ivy2 \
-v ~/.sbt:/app/.sbt \
-v ~/.sbt_cache:/app/.cache \
-w /app/project \
hseeberger/scala-sbt:11.0.14.1_1.6.2_2.12.15 \
sbt -Duser.home=/app config/run
echo "Build jars ..."
docker run --net host --rm -v $(pwd):/app/project \
--user $(id -u):$(id -g) \
-v ~/.m2:/app/.m2 \
-v ~/.ivy2:/app/.ivy2 \
-v ~/.sbt:/app/.sbt \
-v ~/.sbt_cache:/app/.cache \
-w /app/project \
hseeberger/scala-sbt:11.0.14.1_1.6.2_2.12.15 \
sbt -Duser.home=/app fhavro_export/assembly etl/assembly