Skip to content

Commit

Permalink
build: add build and debug scripts for kivy ui
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 30, 2023
1 parent 510bbba commit e3ba8c2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ui_build.sh
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions ui_debug.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e3ba8c2

Please sign in to comment.