Dockerize Project
This commit is contained in:
commit
e679d02b41
205 changed files with 17941 additions and 0 deletions
23
bin/setup.sh
Executable file
23
bin/setup.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z $1 ]];
|
||||
then
|
||||
echo "No argument passed. ./setup.sh {projectName}"
|
||||
exit;
|
||||
fi
|
||||
|
||||
projectName=$1
|
||||
currentProjectName=$(cut -d "=" -f 2 docker/.env)
|
||||
|
||||
sed -i "s/$currentProjectName/$projectName/g" docker/.env
|
||||
|
||||
composer install
|
||||
|
||||
cd docker || exit
|
||||
|
||||
docker-compose up -d --build
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf .git
|
||||
git init && git add . && git commit -m'Initial Commit'
|
Loading…
Add table
Add a link
Reference in a new issue