Explorar el Código

initial version added

master
Steffen Volkmann hace 6 años
commit
6abc551ee9
Se han modificado 4 ficheros con 79 adiciones y 0 borrados
  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 Ver fichero

@@ -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
- 0
dockerfile Ver fichero

@@ -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
- 0
start_lava.sh Ver fichero

@@ -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
- 0
stop_lava.sh Ver fichero

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

Cargando…
Cancelar
Guardar