Skip to content

Commit

Permalink
Fix run_demo_rpi.sh and patch file
Browse files Browse the repository at this point in the history
Signed-off-by: Luigi Pellecchia <[email protected]>
  • Loading branch information
Luigi Pellecchia committed Jan 25, 2025
1 parent ed8e616 commit daa01f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions misc/tmt_provision_podman.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- podman.py 2024-03-17 09:12:05
+++ podman_modified.py 2024-03-17 22:43:15
--- steps/provision/podman.py
+++ steps/provision/podman_modified.py
@@ -151,7 +151,7 @@
else:
raise err
Expand Down
11 changes: 5 additions & 6 deletions run_demo_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux"
# Raspbian GNU/Linux 12

api_server_url=localhost
api_server_url=http://localhost
api_port=5000
app_port=9000
admin_pw=1234
Expand All @@ -26,7 +26,7 @@ usage()
-f APP_PORT App (frontend) port
-p ADMIN_PASSWRORD Admin user default password (username: admin)
use single quote around your password
-u URL Url, depending on the raspberry ip address in the local
-u URL Full base url, depending on the raspberry ip address in the local
network (e.g.: http://192.168.1.15)
example: ${0##*/} -b 5005 -u 'http://192.168.1.15' -f 9005 -p '!myStrongPasswordForAdmin!'
Expand Down Expand Up @@ -81,7 +81,7 @@ echo -e "\n###################################################################"
echo -e "### building app container\n"

podman build \
--build-arg="API_ENDPOINT=http://${api_server_url}:${api_port}" \
--build-arg="API_ENDPOINT=${api_server_url}:${api_port}" \
--build-arg="APP_PORT=${app_port}" \
-f Containerfile-app \
-t basil-app-image-rpi .
Expand Down Expand Up @@ -119,14 +119,13 @@ echo -e "### start app container\n"

podman run \
-d \
--privileged \
--network=host \
basil-app-image-default
basil-app-image-rpi

echo -e "\n###################################################################"
echo -e "### list running containers\n"

podman ps

echo -e "\n###################################################################"
echo -e "### start now BASIL via chrome browser: http://${api_server_url}:${app_port}\n"
echo -e "### start now BASIL via chrome browser: ${api_server_url}:${app_port}\n"

0 comments on commit daa01f4

Please sign in to comment.