Skip to content
Snippets Groups Projects
Commit b4bed58b authored by Alistair Hey's avatar Alistair Hey Committed by Alex Ellis
Browse files

Fix padding on Fn Store Gateway UI


The padding was off on the Gateway UI for the function
Store popup.

I have removed the 0padding css class from this element and left
it on the elements that require it

Signed-off-by: default avatarAlistair Hey <alistair@heyal.co.uk>
parent ac1caa28
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ do
export AUTH_URL=""
;;
--help | -h)
echo "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen"
printf "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen"
exit
;;
esac
......@@ -35,9 +35,9 @@ secret=$(head -c 16 /dev/urandom| $sha_cmd | cut -d " " -f 1)
echo "$secret" | docker secret create basic-auth-password -
if [ $? = 0 ];
then
echo "[Credentials]\n username: admin \n password: $secret\n echo -n "$secret" | faas-cli login --username=admin --password-stdin"
printf "[Credentials]\n username: admin \n password: $secret\n echo -n ""$secret"" | faas-cli login --username=admin --password-stdin"
else
echo "[Credentials]\n already exist, not creating"
printf "[Credentials]\n already exist, not creating"
fi
if [ $BASIC_AUTH = "true" ];
......
.PHONY: all build push
TAG?=latest
NS?=openfaas
all: build
build:
./build.sh ${TAG}
./build.sh ${TAG} ${NS}
push:
./push.sh ${TAG}
./push.sh ${TAG} ${NS}
......@@ -26,7 +26,7 @@
<div layout="column" ng-cloak>
<md-toolbar class="md-theme-indigo" hide-gt-sm>
<div class="md-toolbar-tools">
<div class="md-toolbar-tools no-pad">
<md-button ng-click="toggleSideNav()" class="md-icon-button" aria-label="Menu">
<md-icon md-svg-icon="img/icons/ic_menu_white.svg"></md-icon>
</md-button>
......@@ -36,7 +36,7 @@
<md-sidenav class="md-sidenav-left" md-component-id="left" md-is-locked-open="$mdMedia('gt-sm')" md-whiteframe="4" layout="column">
<md-toolbar class="md-theme-indigo">
<div class="md-toolbar-tools">
<div class="md-toolbar-tools no-pad">
<a href="https://www.openfaas.com/" target="_blank"><img src="icon.png" alt="OpenFaaS Icon" class="md-avatar" /></a>
<h1 style="flex: 1 1 auto;"><img src="img/logo-text.svg" class="md-logo"></h1>
<md-button ng-click="toggleSideNav()" class="md-icon-button" aria-label="Back" hide-gt-sm>
......
......@@ -91,7 +91,7 @@ md-input-container .md-errors-spacer {
}
.md-toolbar-tools {
.no-pad {
padding: 0px 0px 0px 0px;
}
......
......@@ -29,7 +29,12 @@ if [ "$1" ] ; then
fi
fi
NS=openfaas
if [ "$2" ] ; then
NS=$2
else
NS=openfaas
fi
echo "Building $NS/gateway:$eTAG with $dockerfile for $arch"
......
......@@ -21,7 +21,14 @@ if [ "$1" ] ; then
fi
fi
echo Pushing openfaas/gateway:$eTAG
docker push openfaas/gateway:$eTAG
if [ "$2" ] ; then
NS=$2
else
NS=openfaas
fi
echo Pushing $NS/gateway:$eTAG
docker push $NS/gateway:$eTAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment