Skip to content

Commit 08e1b8f

Browse files
committed
Added Option to run ISO-15118 + OPP with Edgeshark
- Added -s flag to `demo-iso15118-2-ac-plus-ocpp.sh`, to curl and launch EdgeShark alongside demo - Added "Optional" section to README, to explain this flag
1 parent 2bf6335 commit 08e1b8f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ in your terminal before one of the one-liners presented in the next section.
9999
- Run the demo: 💄 exploring configs 🔧: `curl -o docker-compose.yml https://raw.githubusercontent.com/everest/everest-demo/main/docker-compose.admin-panel.yml && docker compose -p everest-admin-panel up`
100100
- Access the visual representation at http://localhost:8849
101101

102+
### OPTIONAL: Explore a demo with Edgeshark
103+
- For each demo of ISO 15118-2 AC Charging with OCPP, the demo may be ran alongside [Edgeshark](httpos://github.com/siemans/edgeshark?tab=readme-ov-file#edgeshark) for additional information on the network connection between each container.
104+
- To launch a Edgeshark alongside one of these demos, include the -s flag when running the demo
105+
- 🦈 Example Profile 2 ⚡: `curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-iso15118-2-ac-plus-ocpp.sh | bash -s - -s - -2`
106+
- Using your preferred web browser, navigate to http://localhost:5001 and explore the connections via the discovery engine.
107+
- If you have installed the [cshargextcap plugin](https://github.com/siemens/cshargextcap?tab=readme-ov-file#containershark-extcap-plugin-for-wireshark), you may launch [Wireshark Desktop](https://www.wireshark.org/download.html) from the discovery engine, to perform a live capture.
108+
102109
### TEARDOWN: Clean up after the demo
103110
- Kill the demo process
104111
- Delete files and containers: `docker compose -p [prefix] down && rm docker-compose.yml`

demo-iso15118-2-ac-plus-ocpp.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CSMS="maeve"
1010

1111

1212

13-
usage="usage: $(basename "$0") [-r <repo>] [-b <branch>] [-c <csms>] [-j|1|2|3] [-h]
13+
usage="usage: $(basename "$0") [-r <repo>] [-b <branch>] [-c <csms>] [-s] [-j|1|2|3] [-h]
1414
1515
This script will run EVerest ISO 15118-2 AC charging with OCPP demos.
1616
@@ -21,6 +21,7 @@ where:
2121
-r URL to everest-demo repo to use (default: $DEMO_REPO)
2222
-b Branch of everest-demo repo to use (default: $DEMO_BRANCH)
2323
-c Use CitrineOS CSMS (default: MaEVe)
24+
-s Run with Edgeshark
2425
-j OCPP v1.6j
2526
-1 OCPP v2.0.1 Security Profile 1
2627
-2 OCPP v2.0.1 Security Profile 2
@@ -30,16 +31,17 @@ where:
3031

3132
DEMO_VERSION=
3233
DEMO_COMPOSE_FILE_NAME=
33-
34+
RUN_WITH_EDGESHARK=false
3435

3536
# loop through positional options/arguments
36-
while getopts ':r:b:cj123h' option; do
37+
while getopts ':r:b:c:sj123h' option; do
3738
case "$option" in
3839
r) DEMO_REPO="$OPTARG" ;;
3940
b) DEMO_BRANCH="$OPTARG" ;;
4041
c) CSMS="citrine"
4142
CSMS_REPO="https://github.com/citrineos/citrineos-core"
4243
CSMS_BRANCH="63670f3adc09266a0977862d972b0f7e440c577f" ;;
44+
s) RUN_WITH_EDGESHARK=true ;;
4345
j) DEMO_VERSION="v1.6j"
4446
DEMO_COMPOSE_FILE_NAME="docker-compose.ocpp16j.yml" ;;
4547
1) DEMO_VERSION="v2.0.1-sp1"
@@ -84,13 +86,20 @@ echo "DEMO VERSION: $DEMO_VERSION"
8486
echo "DEMO CONFIG: $DEMO_COMPOSE_FILE_NAME"
8587
echo "DEMO DIR: $DEMO_DIR"
8688

87-
8889
cd "${DEMO_DIR}" || exit 1
8990

9091

9192
echo "Cloning EVerest from ${DEMO_REPO} into ${DEMO_DIR}/everest-demo"
9293
git clone --branch "${DEMO_BRANCH}" "${DEMO_REPO}" everest-demo
9394

95+
echo "Run with Edgeshark? $RUN_WITH_EDGESHARK"
96+
97+
if [[ "$RUN_WITH_EDGESHARK" = true ]]; then
98+
wget -q --no-cache -O - \
99+
https://github.com/siemens/edgeshark/raw/main/deployments/wget/docker-compose-localhost.yaml \
100+
| docker compose -f - up -d
101+
fi
102+
94103
if [[ "$DEMO_VERSION" != v1.6j ]]; then
95104
echo "Cloning ${CSMS} CSMS from ${CSMS_REPO} into ${DEMO_DIR}/${CSMS}-csms and starting it"
96105
git clone ${CSMS_REPO} ${CSMS}-csms

0 commit comments

Comments
 (0)