From 638f93ac95b126d40774c1f6dfe61bb7fb7abbc2 Mon Sep 17 00:00:00 2001 From: Dennis Ried Date: Wed, 9 Oct 2024 07:13:03 +0200 Subject: [PATCH 1/9] 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 14279c9566e3d79b605119a3bd0f805484d5d5fb Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 6 Nov 2024 15:47:30 +0100 Subject: [PATCH 2/9] 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 ffcee891e1ed4e6ef7e894a65c630ecef0230a7b Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 6 Nov 2024 16:50:22 +0100 Subject: [PATCH 3/9] 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 ba5ef09f536b23151662181c0deb8113607de244 Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 6 Nov 2024 17:20:52 +0100 Subject: [PATCH 4/9] 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 From 501ab5862ec37e0eabce2b6d5abcedf4f8bdedd6 Mon Sep 17 00:00:00 2001 From: Dennis Ried Date: Wed, 9 Oct 2024 07:13:03 +0200 Subject: [PATCH 5/9] 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 6/9] 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 7/9] 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 8/9] 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 From 9a00456e20adf6c56426ed08a15583bdac668e62 Mon Sep 17 00:00:00 2001 From: Daniel Jettka Date: Wed, 27 Nov 2024 12:04:11 +0100 Subject: [PATCH 9/9] param for environment (testing/production) via argument --- build.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index e3b154ed..e6959a5b 100755 --- a/build.sh +++ b/build.sh @@ -5,8 +5,12 @@ while getopts "d" flag; do d) # Handle the -d flag # run docker echo "Running in Docker..." + # remove -d from the list of input arguments + shift $((OPTIND-1)) + # set a variable OPTIONS with the remaining input arguments to pass to the build command + OPTIONS=${@} # run docker - docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest /bin/bash -c "./build.sh testing; exit" + docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest ./build.sh $OPTIONS exit ;; \?) @@ -26,7 +30,4 @@ sencha app build $1 ant build-plus # build xar -ant xar - -exit - +ant xar \ No newline at end of file