-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·27 lines (21 loc) · 1 KB
/
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
# Build script for DUKIntegrator
# Required: wget, unzip
# This script is used to build the project and create the distribution package
# @Author: Mihai KELEMEN <[email protected]>
DUKIntegratorURL=https://static.anaf.ro/static/DUKIntegrator/dist_javaInclus20200203.zip
D112URL=https://static.anaf.ro/static/10/Anaf/Declaratii_R/AplicatiiDec/D112_26112024.zip
D100URL=https://static.anaf.ro/static/10/Anaf/Declaratii_R/AplicatiiDec/D100_13012025.zip
VERSION=1.6.2
wget $DUKIntegratorURL -O DUKIntegrator.zip && unzip -qq DUKIntegrator.zip -d $PWD && rm DUKIntegrator.zip
cp ./dist/lib/* ./lib
mkdir -p $PWD/tmp
wget $D112URL -O ./tmp/D112.zip && unzip -qq ./tmp/D112.zip -d ./tmp && mv ./tmp/D112*.jar
wget $D100URL -O ./tmp/D100.zip && unzip -qq ./tmp/D100.zip -d ./tmp && mv ./tmp/D100*.jar
docker build --no-cache -t dukintegrator:$VERSION -f ./Dockerfile .
docker save -o ./dukintegrator-v$VERSION.tar.gz dukintegrator:$VERSION
rm -rf ./tmp/*
# cleanup
rm -rf ./dist
# Exit with success status
exit 0