@@ -0,0 +1,37 @@ | |||||
############################################################################### | |||||
# docker image for lava server | |||||
############################################################################### | |||||
lava: | |||||
linux: debian Stretch 9.0 | |||||
deb https://images.validation.linaro.org/production-repo stretch-backports main | |||||
wget https://images.validation.linaro.org/staging-repo/staging-repo.key.asc | |||||
apt-key add staging-repo.key.asc | |||||
apt install postgresql | |||||
apt install lava-server | |||||
a2dissite 000-default | |||||
a2enmod proxy | |||||
a2enmod proxy_http | |||||
a2ensite lava-server.conf | |||||
service apache2 restart | |||||
################### | |||||
build lava container | |||||
## Build Container from dockerfile | |||||
docker build -t sugarcrm-app . | |||||
## Bookmarks: | |||||
https://validation.linaro.org/static/docs/v2/installing_on_debian.html#debian-installation | |||||
@@ -0,0 +1,11 @@ | |||||
FROM debian:9 | |||||
RUN deb https://images.validation.linaro.org/production-repo stretch-backports main \ | |||||
&& wget https://images.validation.linaro.org/staging-repo/staging-repo.key.asc \ | |||||
&& sudo apt-key add staging-repo.key.asc | |||||
&& apt-get update && apt-get upgrade -y \ | |||||
&& apt-get install -y postgresql lava-server | |||||
@@ -0,0 +1,19 @@ | |||||
#!/bin/bash | |||||
# start sugarcrm | |||||
set -x | |||||
# generate and start mysql container | |||||
docker pull mysql:5.5 | |||||
docker run --volume /media/data/docker/sugarcrm_Ubuntu12.02/mysql:/var/lib/mysql --env MYSQL_ROOT_PASSWORD=12345 --name sugarcrm_mysql --hostname sugarmysql --detach mysql:5.5 | |||||
docker build -t sugarcrm-app . | |||||
# start apache & php & ssh | |||||
docker run --volume /media/data/docker/sugarcrm_Ubuntu12.02/SugarCE-Full-6.5.26:/var/www/html/ --detach --publish 80:80 --publish 3333:22 --hostname sugarcrm --link sugarcrm_mysql --name sugarcrm_www sugarcrm-app | |||||
# show container | |||||
set +x | |||||
docker container ls | |||||
echo docker exec -it sugarcrm_www bash | |||||
@@ -0,0 +1,12 @@ | |||||
#!/bin/bash | |||||
# stop sugarcrm | |||||
set -x | |||||
# stop apache / php | |||||
sudo docker stop sugarcrm_www | |||||
sudo docker rm sugarcrm_www | |||||
# stop mysql | |||||
sudo docker stop sugarcrm_mysql | |||||
sudo docker rm sugarcrm_mysql |