-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add build and debug scripts for kivy ui
- Loading branch information
1 parent
510bbba
commit e3ba8c2
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |