forked from petermichalek/iotan-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdpack.sh
executable file
·39 lines (35 loc) · 1 KB
/
dpack.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
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# Copyright © 2017 Peter Michalek
#
# Pack binaries for docker
# sbt pack must have been run before this.
#version := "0.1.01"
#version=0.1.01
version=$(sed s/version:=// ./target/pack/VERSION)
BINDIR=target/iotan-core-bin-$version
TARNAME=iotan-core-bin-$version.tar.gz
# first cleanup from previous build
for f in $BINDIR; do
rm -rf $f
done
mkdir $BINDIR
mkdir -p $BINDIR/db/jars
mkdir -p $BINDIR/docker/dev
mkdir $BINDIR/lib
cp -a db/*.cql $BINDIR/db
#cp -a db/jars/* $BINDIR/db/jars
cp -a docker/entrypoint.sh $BINDIR/docker
cp -a docker/populate_db.py $BINDIR/docker
cp -a src/main/resources/iotus-simple.zinc $BINDIR/docker
cp -a docker/project_create.scala $BINDIR/docker
cp -a docker/dev/*.cql $BINDIR/docker/dev
cp -a srepl.sh $BINDIR
cp -a requirements.txt $BINDIR
cp -a target/pack/VERSION $BINDIR
cp -a ./target/scala-2.11/*.jar $BINDIR/lib
#cp -a target/pack/* $BINDIR
cd target
tar zcvf ../$TARNAME ./iotan-core-bin-$version
cd ..
echo A new file was created in ./$TARNAME
ls -l $TARNAME