From 6dfd01e94aab56a2f183c685f50c2a2165eaf708 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 28 Jan 2024 10:43:56 +0100 Subject: [PATCH] Add credentials --- scripts/deploy_silverbullet_playground.sh | 9 ++------- scripts/playground_space/index.md | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/deploy_silverbullet_playground.sh b/scripts/deploy_silverbullet_playground.sh index b3ecce2b..b388a9fe 100755 --- a/scripts/deploy_silverbullet_playground.sh +++ b/scripts/deploy_silverbullet_playground.sh @@ -5,12 +5,7 @@ cd $(realpath $(dirname $(dirname $0))) IMAGE_NAME="zefhemel/silverbullet:edge" PLAYGROUND_SPACE="/tmp/silverbullet-playground" PLAYGROUND_PORT=3001 - -# Pull the Docker image -docker pull $IMAGE_NAME - -echo "Let's update the repo content, just in case." -git pull +SB_USER=sb:thisiscool # Now do the same for the playground echo "Now resetting the playground" @@ -33,7 +28,7 @@ cp -r scripts/playground_space/* $PLAYGROUND_SPACE/ cp -r website/Library $PLAYGROUND_SPACE/ echo "Starting new playground container" -docker run -d --name silverbullet-playground --restart unless-stopped -v $PLAYGROUND_SPACE:/space -e SB_SHELL_BACKEND=off -p $PLAYGROUND_PORT:3000 $IMAGE_NAME +docker run -d --name silverbullet-playground --restart unless-stopped -v $PLAYGROUND_SPACE:/space -e SB_SHELL_BACKEND=off -e SB_USER=$SB_USER -p $PLAYGROUND_PORT:3000 $IMAGE_NAME echo "Waiting for the server to start" diff --git a/scripts/playground_space/index.md b/scripts/playground_space/index.md index d8cda833..2ad337bf 100644 --- a/scripts/playground_space/index.md +++ b/scripts/playground_space/index.md @@ -1,5 +1,5 @@ # Welcome to the SilverBullet Playground -This is a fully functional SilverBullet instance that **resets every hour.** +This is a fully functional SilverBullet instance that **resets every 15 minutes.** So go ahead, play around, but don't keep anything valuable here. It will be gone in a snap.