Skip to content

Commit

Permalink
Building scripts to restore GemStone backups and to start pepperPotts…
Browse files Browse the repository at this point in the history
…CoreApis
adebonis committed Dec 12, 2024
1 parent 6d8dc79 commit 3284ca0
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -3,3 +3,5 @@ locks/*
logs/*
conf/*
projects/*
scripts/*
backups/*
Binary file added examples/backups/to-restore.bak.lz4
Binary file not shown.
4 changes: 3 additions & 1 deletion examples/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"


services:
stone:
@@ -14,4 +14,6 @@ services:
- ./locks/:/opt/gemstone/locks/
- ./logs/:/opt/gemstone/logs/
- ./projects/:/opt/gemstone/projects/
- ./backups/:/opt/gemstone/backups/
- ./scripts/:/opt/gemstone/scripts/
- ~/.ssh/:/home/gemstone/.ssh/:ro
15 changes: 15 additions & 0 deletions examples/scripts/start-pepper-potts-core-apis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -eu

readonly PUBLIC_URL=http://pc52.mercap.net:50555

topaz -l -q -- launchpad start pepper-potts-core --stargate.public-url=${PUBLIC_URL} --stargate.port=50555 --stargate.operations-secret=XXX --stargate.consul-agent-location= --root-system=PepperPottsCore --authentication-secret=secret <<EOF
set gemstone gs64stone username SystemUser password swordfish
login
doit
LaunchpadCommandLineHandler activateWith: (CommandLineArguments new copyAfter: '--').
[ Delay waitForMilliseconds: 20 ] repeat.
%
exit 0

0 comments on commit 3284ca0

Please sign in to comment.