Skip to content

Commit e420b49

Browse files
committed
adjusted sample secret-env
1 parent ae1f32a commit e420b49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/build-tester

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -ex
44
export REGISTRY=${REGISTRY:-icr.io/codeengine}
55

66
docker build --platform linux/amd64 -f - -t ${REGISTRY}/ce-tester . <<-EOF
7-
FROM icr.io/codeengine/ce-bash
7+
FROM icr.io/codeengine/cecli
88
WORKDIR /root
99
COPY tester /
1010
CMD /tester

secrets-env/run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ibmcloud ce secret create --name sec-secret-env \
3232
--from-file MY_FILE=file
3333

3434
# Create the app
35-
ibmcloud ce app create -n sec-app-env --image ${REGISTRY}/ce-secret-env \
35+
ibmcloud ce app create -n sec-app-env --src . --cpu 0.125 --memory 0.25G \
3636
--env-from-secret sec-secret-env
3737

3838
# Get the URL of the app for later use
@@ -52,13 +52,13 @@ exit 0
5252
# Now check the logs to see if the env vars were set
5353
ibmcloud ce app logs --instance $name | tee out
5454
grep MY_ out
55-
if ! [[ $(grep MY_ out | wc -l) == "4" ]]; then
55+
if (( $(grep MY_ out | wc -l) != 4 )); then
5656
echo "Unexpected output"
5757
exit 1
5858
fi
5959

6060
# Check to see if the context of "file" are assign to the "file" env var.
61-
if ! [[ $(grep '^file=In Congress' out | wc -l) == "1" ]]; then
61+
if (( $(grep '^file=In Congress' out | wc -l) != 1 )); then
6262
echo "Unexpected output"
6363
exit 1
6464
fi

0 commit comments

Comments
 (0)