Docker
This commit is contained in:
2
docker/docker.md
Normal file
2
docker/docker.md
Normal 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
30
docker/start.sh
Normal 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
|
||||
Reference in New Issue
Block a user