initial version added

This commit is contained in:
Steffen Volkmann 2018-07-26 11:44:30 +02:00
commit 6abc551ee9
4 changed files with 79 additions and 0 deletions

37
README.md Normal file
View File

@ -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

11
dockerfile Executable file
View File

@ -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

19
start_lava.sh Executable file
View File

@ -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

12
stop_lava.sh Executable file
View File

@ -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