This commit is contained in:
Thilina Hasantha
2016-07-31 11:03:43 +05:30
parent 1757421d9f
commit 9e243073df
2 changed files with 32 additions and 0 deletions

2
docker/docker.md Normal file
View File

@@ -0,0 +1,2 @@
https://hub.docker.com/r/thilinah/icehrm/
docker run -i -t -p 192.168.99.100:80:80 thilinah/icehrm /bin/start.sh

30
docker/start.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
service nginx start
service php5-fpm start
service mysql start
if [ -d "/usr/share/nginx/www/" ]; then
echo 'Already Installed'
else
echo 'Installing IceHrm'
cd /usr/share/nginx
curl -s https://api.github.com/repos/gamonoid/icehrm/releases/latest | jq -r ".assets[] | select(.name) | .browser_download_url" | grep '.zip' | xargs wget
ls | grep 'zip' | xargs unzip
mv `ls -d */ | grep icehrm | head -1` www/
rm *.zip
echo 'Your MySQL root password : icehrmpwd'
echo "Following will be needed during installation"
echo "--------------------------------------------"
echo 'IceHrm Database : icehrmdb'
echo 'IceHrm User : icehrmuser'
echo 'IceHrm User Password : icehrmuserpwd'
echo 'IceHrm Database host : localhost'
echo 'Please visit your docker installation url to begin installation.'
fi
/bin/bash