File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
export REGISTRY=${REGISTRY:- icr.io/ codeengine}
5
5
6
6
docker build --platform linux/amd64 -f - -t ${REGISTRY} /ce-tester . << -EOF
7
- FROM icr.io/codeengine/ce-bash
7
+ FROM icr.io/codeengine/cecli
8
8
WORKDIR /root
9
9
COPY tester /
10
10
CMD /tester
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ ibmcloud ce secret create --name sec-secret-env \
32
32
--from-file MY_FILE=file
33
33
34
34
# 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 \
36
36
--env-from-secret sec-secret-env
37
37
38
38
# Get the URL of the app for later use
@@ -52,13 +52,13 @@ exit 0
52
52
# Now check the logs to see if the env vars were set
53
53
ibmcloud ce app logs --instance $name | tee out
54
54
grep MY_ out
55
- if ! [[ $( grep MY_ out | wc -l) == " 4 " ]] ; then
55
+ if (( $(grep MY_ out | wc - l) != 4 )) ; then
56
56
echo " Unexpected output"
57
57
exit 1
58
58
fi
59
59
60
60
# 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
62
62
echo " Unexpected output"
63
63
exit 1
64
64
fi
You can’t perform that action at this time.
0 commit comments