From e3ba8c2f118c4dacc098edcb9c5b5ce43005b26e Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 30 Nov 2023 14:04:29 +0000 Subject: [PATCH] build: add build and debug scripts for kivy ui --- ui_build.sh | 12 ++++++++++++ ui_debug.sh | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ui_build.sh create mode 100644 ui_debug.sh diff --git a/ui_build.sh b/ui_build.sh new file mode 100644 index 00000000..68dd3b31 --- /dev/null +++ b/ui_build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Build the app +docker build . --target ui-build \ + --tag ghcr.io/hotosm/osm-fieldwork/ui:latest + +# Remove container if exists and exited +docker rm kivy-ui-build || true + +docker run --rm --name kivy-ui-build \ + -v $PWD/dist:/app/bin \ + ghcr.io/hotosm/osm-fieldwork/ui:latest diff --git a/ui_debug.sh b/ui_debug.sh new file mode 100644 index 00000000..cd49d013 --- /dev/null +++ b/ui_debug.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +docker build . --target ui-debug \ + --tag ghcr.io/hotosm/osm-fieldwork/ui:debug + +# Remove container if exists and exited +docker rm kivy-ui-debug || true + +docker run --rm --name kivy-ui-debug \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ + -e "DISPLAY=$DISPLAY" \ + ghcr.io/hotosm/osm-fieldwork/ui:debug