Files
staticzolaserver-docker/build1stTime.sh
T

30 lines
821 B
Bash
Executable File

#!/bin/bash
cat << EOF >.env
GITPROJECTNAME="serinty-website"
GITPROJECTUSER="Serinty"
GITSERVER="gogs.serinty.net"
GITSERVERPORT=22104
GITUSER="gogs"
GITPROJECTNAME="serinty-website"
GITTHEMENAME="serinty-zola-theme"
THEME_NAME=${GITTHEMENAME}
LOCALUSER="swsuser"
LOCALGROUP="swsgroup"
SWSPORT=8970
IDLE_TIME=86400
OUTPUT_DIR="~/${GITPROJECTNAME}/public"
BASE_URL="http://docker.local:${SWSPORT}"
EOF
ssh-keygen -q -t ed25519 -C "swsuser@serinty.net" -f ./id_ed25519
docker secret create id_ed25519 id_ed25519
docker secret create id_ed25519.pub id_ed25519.pub
echo "Copy this key to your repository:"
cat id_ed25519.pub
ssh-keygen -lf id_ed25519.pub
export DOCKER_BUILDKIT=1
#docker build --no-cache --progress=plain --tag sws4zola:latest .
#docker build --progress=plain --tag sws4zola:latest .
docker-compose build