initial version added
This commit is contained in:
commit
6abc551ee9
37
README.md
Normal file
37
README.md
Normal 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
11
dockerfile
Executable 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
19
start_lava.sh
Executable 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
12
stop_lava.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user