From 501ab5862ec37e0eabce2b6d5abcedf4f8bdedd6 Mon Sep 17 00:00:00 2001 From: Dennis Ried Date: Wed, 9 Oct 2024 07:13:03 +0200 Subject: [PATCH 1/4] adding shell to start a docker with sencha --- startSencha.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 startSencha.sh diff --git a/startSencha.sh b/startSencha.sh new file mode 100644 index 00000000..66a3aff2 --- /dev/null +++ b/startSencha.sh @@ -0,0 +1 @@ +docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest \ No newline at end of file From 328b690d5b6d9c5528ff8f71c8daab96c7bc3992 Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 6 Nov 2024 15:47:30 +0100 Subject: [PATCH 2/4] added flag -d to build script to run in docker --- build.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index eb6e440c..658c3df8 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,20 @@ #!/bin/sh +while getopts "d" flag; do + case $flag in + d) # Handle the -d flag + # run docker + echo "Running in Docker..." + docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest /bin/bash -c "./build.sh testing; exit" + exit + ;; + \?) + # Handle invalid options + ;; + esac +done + + # cleaning the build dir sencha ant clean @@ -10,4 +25,7 @@ sencha app build $1 ant build-plus # build xar -ant xar \ No newline at end of file +ant xar + +exit + From 6fe426b7c16616ba58a63f042ec988a83a33b963 Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 6 Nov 2024 16:50:22 +0100 Subject: [PATCH 3/4] added comment --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 658c3df8..e3b154ed 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,8 @@ while getopts "d" flag; do d) # Handle the -d flag # run docker echo "Running in Docker..." - docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest /bin/bash -c "./build.sh testing; exit" + # run docker + docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest /bin/bash -c "./build.sh testing; exit" exit ;; \?) From 573c73b52f2d089614906bc696f2f2aa20f3260e Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 6 Nov 2024 17:20:52 +0100 Subject: [PATCH 4/4] removed startSencha script --- startSencha.sh | 1 - 1 file changed, 1 deletion(-) delete mode 100644 startSencha.sh diff --git a/startSencha.sh b/startSencha.sh deleted file mode 100644 index 66a3aff2..00000000 --- a/startSencha.sh +++ /dev/null @@ -1 +0,0 @@ -docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest \ No newline at end of file