2017-10-22 19:08:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-05-26 00:12:10 +02:00
|
|
|
# If there aren't any keys, generate them first.
|
2019-06-19 15:34:33 +02:00
|
|
|
[ -e ./.keys/cert.cert ] || ./.keys/generate-keys.sh
|
|
|
|
|
|
|
|
[ -e ./src/bitBetter/api/.keys ] || mkdir ./src/bitBetter/api/.keys
|
|
|
|
[ -e ./src/bitBetter/identity/.keys ] || mkdir ./src/bitBetter/identity/.keys
|
2017-10-29 17:57:49 +01:00
|
|
|
|
2019-05-26 00:12:10 +02:00
|
|
|
cp .keys/cert.cert ./src/bitBetter/api/.keys
|
|
|
|
cp .keys/cert.cert ./src/bitBetter/identity/.keys
|
2017-10-29 17:57:49 +01:00
|
|
|
|
2017-10-29 20:19:20 +01:00
|
|
|
cd ./src/bitBetter
|
2017-10-29 17:57:49 +01:00
|
|
|
|
2017-10-22 19:08:50 +02:00
|
|
|
dotnet restore
|
|
|
|
dotnet publish
|
2017-10-29 17:57:49 +01:00
|
|
|
|
2019-05-26 00:12:10 +02:00
|
|
|
cp -r bin/ api/
|
|
|
|
cp -r bin/ identity/
|
|
|
|
|
|
|
|
cd ./api
|
2017-10-29 20:13:38 +01:00
|
|
|
docker build --pull . -t bitbetter/api # --squash
|
2017-10-29 17:57:49 +01:00
|
|
|
|
2019-05-26 00:12:10 +02:00
|
|
|
cd ../identity
|
|
|
|
docker build --pull . -t bitbetter/identity # --squash
|