File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,21 @@ echo "For example docker-desktop with its included k8s cluster"
7
7
echo " Usage: ./build-an-deploy.sh"
8
8
9
9
source ./scripts/check-available-commands.sh
10
- checkCommandsAvailable helm docker kubectl
10
+ checkCommandsAvailable helm docker kubectl yq
11
11
12
12
version=" $( uuidgen) "
13
-
13
+ WRONGSECRETS_IMAGE=$( cat helm/wrongsecrets-ctf-party/values.yaml| yq ' .wrongsecrets.image' )
14
+ WRONGSECRETS_TAG=$( cat helm/wrongsecrets-ctf-party/values.yaml| yq ' .wrongsecrets.tag' )
15
+ WEBTOP_IMAGE=$( cat helm/wrongsecrets-ctf-party/values.yaml| yq ' .virtualdesktop.image' )
16
+ WEBTOP_TAG=$( cat helm/wrongsecrets-ctf-party/values.yaml| yq ' .virtualdesktop.tag' )
17
+ echo " Pulling in required images to actually run $WRONGSECRETS_IMAGE :$WRONGSECRETS_TAG & $WEBTOP_IMAGE :$WEBTOP_TAG ."
18
+ echo " If you see an authentication failure: pull them manually by the following 2 commands"
19
+ echo " 'docker pull $WRONGSECRETS_IMAGE :$WRONGSECRETS_TAG '"
20
+ echo " 'docker pull jeroenwillemsen/jeroenwillemsen/$WEBTOP_IMAGE :$WEBTOP_TAG '" &
21
+ docker pull $WRONGSECRETS_IMAGE :$WRONGSECRETS_TAG &
22
+ docker pull jeroenwillemsen/jeroenwillemsen/$WEBTOP_IMAGE :$WEBTOP_TAG &
14
23
docker build -t local/wrongsecrets-balancer:$version ./wrongsecrets-balancer &
15
24
docker build -t local/cleaner:$version ./cleaner &
16
- docker pull jeroenwillemsen/wrongsecrets:1.5.8-no-vault
17
25
wait
18
26
19
27
helm upgrade --install mj ./helm/wrongsecrets-ctf-party --set=" imagePullPolicy=Never" --set=" balancer.repository=local/wrongsecrets-balancer" --set=" balancer.tag=$version " --set=" wrongsecretsCleanup.repository=local/cleaner" --set=" wrongsecretsCleanup.tag=$version "
You can’t perform that action at this time.
0 commit comments