Skip to content

Commit

Permalink
Add some build/deploy scripts #188
Browse files Browse the repository at this point in the history
  • Loading branch information
apertome committed Dec 8, 2020
1 parent 41d5c7b commit 8b1e97d
Show file tree
Hide file tree
Showing 10 changed files with 374 additions and 0 deletions.
32 changes: 32 additions & 0 deletions deploy/docker/dev-build-admin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/bash
VERSION=`cat dev-version`

echo "preparing pwa-admin version $VERSION"
rm -rf pwa-admin/tmp
mkdir pwa-admin/tmp
cp -r ../../api pwa-admin/tmp
rm -f pwa-admin/tmp/api/config.js
rm -f pwa-admin/tmp/api/auth.pub
rm -f pwa-admin/tmp/api/auth.key
rm -f pwa-admin/tmp/api/user.jwt

cp -r ../../ui pwa-admin/tmp
cp -r ../../package.json pwa-admin/tmp
rm -rf pwa-admin/tmp/api/config
rm -rf pwa/admin/tmp/ui/node_modules/bootstrap/dist/css
rm -f pwa-admin/tmp/api/auth.pub
rm -f pwa-admin/tmp/api/auth.key
rm -f pwa-admin/tmp/api/user.jwt

docker build pwa-admin -t perfsonar/pwa-admin:$VERSION --no-cache --force-rm
if [ ! $? -eq 0 ]; then
echo "failed to build"
exit
fi

#docker tag perfsonar/pwa-admin perfsonar/pwa-admin:$VERSION
docker push perfsonar/pwa-admin:$VERSION

#docker tag perfsonar/pwa-admin perfsonar/pwa-admin:latest
#docker push perfsonar/pwa-admin:latest

4 changes: 4 additions & 0 deletions deploy/docker/dev-build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/bash
echo "Building pwa-admin DEV tag ..."
./dev-build-admin.sh && echo "Building pwa-pub ..." && \
./dev-build-pub.sh
24 changes: 24 additions & 0 deletions deploy/docker/dev-build-pub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/bash
VERSION=`cat dev-version`

echo "preparing pwa-pub version $VERSION"
rm -rf pwa-pub/tmp
mkdir pwa-pub/tmp
cp -r ../../api pwa-pub/tmp
rm -f pwa-pub/tmp/api/config.js
cp -r ../../package.json pwa-pub/tmp
rm -rf pwa-pub/tmp/api/config

docker build pwa-pub -t perfsonar/pwa-pub:$VERSION --no-cache --force-rm

if [ ! $? -eq 0 ]; then
echo "failed to build"
exit
fi

#docker tag perfsonar/pwa-pub perfsonar/pwa-pub:$VERSION
docker push perfsonar/pwa-pub:$VERSION

#docker tag perfsonar/pwa-pub perfsonar/pwa-pub:latest
#docker push perfsonar/pwa-pub:latest

1 change: 1 addition & 0 deletions deploy/docker/dev-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev
Binary file added ui/apidoc/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
288 changes: 288 additions & 0 deletions ui/apidoc/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/apidoc/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added ui/apidoc/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions ui/apidoc/locales/cs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
define({
cs: {
'Allowed values:' : 'Povolené hodnoty:',
'Compare all with predecessor': 'Porovnat vše s předchozími verzemi',
'compare changes to:' : 'porovnat změny s:',
'compared to' : 'porovnat s',
'Default value:' : 'Výchozí hodnota:',
'Description' : 'Popis',
'Field' : 'Pole',
'General' : 'Obecné',
'Generated with' : 'Vygenerováno pomocí',
'Name' : 'Název',
'No response values.' : 'Nebyly vráceny žádné hodnoty.',
'optional' : 'volitelné',
'Parameter' : 'Parametr',
'Permission:' : 'Oprávnění:',
'Response' : 'Odpověď',
'Send' : 'Odeslat',
'Send a Sample Request' : 'Odeslat ukázkový požadavek',
'show up to version:' : 'zobrazit po verzi:',
'Size range:' : 'Rozsah velikosti:',
'Type' : 'Typ',
'url' : 'url'
}
});

0 comments on commit 8b1e97d

Please sign in to comment.