Browse Source

initial version added

Steffen Volkmann 5 years ago
commit
6abc551ee9
4 changed files with 79 additions and 0 deletions
  1. 37 0
      README.md
  2. 11 0
      dockerfile
  3. 19 0
      start_lava.sh
  4. 12 0
      stop_lava.sh

+ 37 - 0
README.md View File

@@ -0,0 +1,37 @@
1
+###############################################################################
2
+# docker image for lava server
3
+###############################################################################
4
+
5
+lava: 
6
+	linux: debian Stretch 9.0
7
+
8
+
9
+deb https://images.validation.linaro.org/production-repo stretch-backports main
10
+
11
+wget https://images.validation.linaro.org/staging-repo/staging-repo.key.asc
12
+apt-key add staging-repo.key.asc
13
+
14
+apt install postgresql
15
+
16
+apt install lava-server
17
+
18
+a2dissite 000-default
19
+a2enmod proxy
20
+a2enmod proxy_http
21
+a2ensite lava-server.conf
22
+service apache2 restart
23
+
24
+
25
+###################
26
+
27
+build lava container
28
+
29
+## Build Container from dockerfile
30
+docker build -t sugarcrm-app .
31
+
32
+
33
+
34
+
35
+## Bookmarks:
36
+https://validation.linaro.org/static/docs/v2/installing_on_debian.html#debian-installation
37
+

+ 11 - 0
dockerfile View File

@@ -0,0 +1,11 @@
1
+FROM debian:9
2
+
3
+RUN deb https://images.validation.linaro.org/production-repo stretch-backports main \
4
+	&& wget https://images.validation.linaro.org/staging-repo/staging-repo.key.asc \
5
+    && sudo apt-key add staging-repo.key.asc
6
+    && apt-get update && apt-get upgrade -y \
7
+    && apt-get install -y postgresql lava-server 
8
+	
9
+
10
+    
11
+

+ 19 - 0
start_lava.sh View File

@@ -0,0 +1,19 @@
1
+#!/bin/bash
2
+
3
+# start sugarcrm
4
+
5
+set -x
6
+
7
+# generate and start mysql container
8
+docker pull mysql:5.5
9
+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 
10
+docker build -t sugarcrm-app .
11
+
12
+# start apache & php & ssh
13
+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 
14
+
15
+# show container
16
+set +x
17
+docker container ls
18
+echo docker exec -it sugarcrm_www bash
19
+

+ 12 - 0
stop_lava.sh View File

@@ -0,0 +1,12 @@
1
+#!/bin/bash
2
+
3
+# stop sugarcrm
4
+set -x
5
+
6
+# stop apache / php
7
+sudo docker stop sugarcrm_www
8
+sudo docker rm sugarcrm_www
9
+
10
+# stop mysql
11
+sudo docker stop sugarcrm_mysql
12
+sudo docker rm sugarcrm_mysql