From 6abc551ee9276be2f78154c5f0cd448240dcb85b Mon Sep 17 00:00:00 2001 From: Steffen Volkmann Date: Thu, 26 Jul 2018 11:44:30 +0200 Subject: [PATCH] initial version added --- README.md | 37 +++++++++++++++++++++++++++++++++++++ dockerfile | 11 +++++++++++ start_lava.sh | 19 +++++++++++++++++++ stop_lava.sh | 12 ++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 README.md create mode 100755 dockerfile create mode 100755 start_lava.sh create mode 100755 stop_lava.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..2c61304 --- /dev/null +++ b/README.md @@ -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 + diff --git a/dockerfile b/dockerfile new file mode 100755 index 0000000..41325c9 --- /dev/null +++ b/dockerfile @@ -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 + + + + diff --git a/start_lava.sh b/start_lava.sh new file mode 100755 index 0000000..22e5af7 --- /dev/null +++ b/start_lava.sh @@ -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 + diff --git a/stop_lava.sh b/stop_lava.sh new file mode 100755 index 0000000..d260201 --- /dev/null +++ b/stop_lava.sh @@ -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