Skip to content

Commit b812b5c

Browse files
authored
Fixes from test run (#15)
* Update Dockerfile Change comment to work with docker file formatting * Update undeploy.sh Fixed comment formatting for bash * Create ext-order-service.yaml * Update test.sh Fix syntax * Update test.sh Fixed to support insecure SSH
1 parent 45ade29 commit b812b5c

File tree

5 files changed

+33
-22
lines changed

5 files changed

+33
-22
lines changed

grabdish/artillery/test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
##
3+
## Copyright (c) 2021 Oracle and/or its affiliates.
4+
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
25

36
set -e
47

@@ -17,9 +20,9 @@ export RUN=`cat $NEXT_RUN_FILE`
1720
RUN=$((RUN+1))
1821
echo $RUN > $NEXT_RUN_FILE
1922

20-
for i in {1..1}
23+
for i in {1..20}
2124
do
2225
export VU=$i
23-
./node_modules/artillery/bin/artillery run art-placeorder.yaml &
26+
./node_modules/artillery/bin/artillery run --insecure art-placeorder.yaml &
2427
done
2528
wait

grabdish/inventory-nodejs/inventory/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/*
2-
** Copyright (c) 2021 Oracle and/or its affiliates.
3-
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
4-
*/
5-
FROM oraclelinux:7-slim
1+
# Copyright (c) 2021 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3+
4+
FROM oraclelinux:7-slim
65

76
ARG release=19
87
ARG update=5

grabdish/inventory-nodejs/undeploy.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
2-
** Copyright (c) 2021 Oracle and/or its affiliates.
3-
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
4-
2+
# Copyright (c) 2021 Oracle and/or its affiliates.
3+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
54

65
echo delete inventory-nodejs deployment...
76

grabdish/k6/test.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
1+
#!/bin/bash
22
##
33
## Copyright (c) 2021 Oracle and/or its affiliates.
44
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
5-
export VUS="$1"
65

76
set -e
87

@@ -17,17 +16,8 @@ if [ ! -f "$NEXT_RUN_FILE" ]; then
1716
echo 0 > $NEXT_RUN_FILE
1817
fi
1918

20-
#export RUN=`cat $NEXT_RUN_FILE`
21-
#RUN=$((RUN+1))
22-
#echo $RUN > $NEXT_RUN_FILE
23-
24-
#echo Warming up for 30 seconds
25-
#./k6 run --vus $VUS --duration "20s" --address localhost:6566 placeorder.js > /dev/null
26-
27-
#sleep 10
28-
2919
export RUN=`cat $NEXT_RUN_FILE`
3020
RUN=$((RUN+1))
3121
echo $RUN > $NEXT_RUN_FILE
3222

33-
./k6 run --vus 20 --duration "30s" --address localhost:6566 --insecure-skip-tls-verify true placeorder.js
23+
./k6 run --vus 20 --duration "30s" --address localhost:6566 --insecure-skip-tls-verify placeorder.js
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
##
2+
## Copyright (c) 2021 Oracle and/or its affiliates.
3+
## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
4+
apiVersion: v1
5+
kind: Service
6+
metadata:
7+
name: ext-order
8+
labels:
9+
app: order
10+
annotations:
11+
service.beta.kubernetes.io/oci-load-balancer-ssl-ports: "443"
12+
service.beta.kubernetes.io/oci-load-balancer-tls-secret: ssl-certificate-secret
13+
spec:
14+
type: LoadBalancer
15+
ports:
16+
- port: 443
17+
name: https
18+
targetPort: 8080
19+
selector:
20+
app: order

0 commit comments

Comments
 (0)