Skip to content

Commit

Permalink
shell script to start sencha (#434)
Browse files Browse the repository at this point in the history
* adding shell to start a docker with sencha

* added flag -d to build script to run in docker

* added comment

* removed startSencha script

* adding shell to start a docker with sencha

* added flag -d to build script to run in docker

* added comment

* removed startSencha script

* param for environment (testing/production) via argument

---------

Co-authored-by: Daniel Jettka <[email protected]>
  • Loading branch information
riedde and daniel-jettka authored Dec 2, 2024
1 parent 5ce1dc4 commit d35d75a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/sh

while getopts "d" flag; do
case $flag in
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 ./build.sh $OPTIONS
exit
;;
\?)
# Handle invalid options
;;
esac
done


# cleaning the build dir
sencha ant clean

Expand Down

0 comments on commit d35d75a

Please sign in to comment.