diff --git a/README.md b/README.md index 2c61304..b16325f 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,36 @@ -############################################################################### -# 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 - +############################################################################### +# 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 lava-srv . + +## Bookmarks: +* https://validation.linaro.org/static/docs/v2/installing_on_debian.html#debian-installation +* https://github.com/WindRiver-OpenSourceLabs/lava-base +* https://github.com/kernelci/lava-docker + diff --git a/configs/tftpd-hpa.conf b/configs/tftpd-hpa.conf new file mode 100755 index 0000000..81dc9f8 --- /dev/null +++ b/configs/tftpd-hpa.conf @@ -0,0 +1,6 @@ +# /etc/default/tftpd-hpa + +TFTP_USERNAME="tftp" +TFTP_DIRECTORY="/var/lib/lava/dispatcher/tmp/" +TFTP_ADDRESS="0.0.0.0:69" +TFTP_OPTIONS="--secure" \ No newline at end of file diff --git a/dockerfile b/dockerfile index 41325c9..f30857c 100755 --- a/dockerfile +++ b/dockerfile @@ -1,11 +1,45 @@ -FROM debian:9 +FROM debian:stretch -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 - +RUN apt-get update \ + && apt-get install -y locales \ + && rm -rf /var/lib/apt/lists/* \ + && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 - +ENV LANG en_US.utf8 +# install several packages for the server +RUN apt-get update && apt-get upgrade -y \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y \ + wget \ + curl \ + apt-utils \ + gnupg \ + locales \ + screen \ + sudo \ + nano \ + postgresql \ + e2fsprogs \ + vim \ + ser2net + +# add linaro package server to pacjage manager sources +RUN apt-get update && apt-get upgrade -y \ + && wget https://images.validation.linaro.org/staging-repo/staging-repo.key.asc \ + && apt-key add staging-repo.key.asc \ + && echo 'deb http://images.validation.linaro.org/production-repo/ stretch-backports main' > /etc/apt/sources.list.d/lava.list \ + && apt-get clean && apt-get update + +# start postgresql and install the lava server +RUN /etc/init.d/postgresql start \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y lava + +# enable lava in apache2 config +RUN a2enmod proxy \ + && a2enmod proxy_http \ + && a2dissite 000-default \ + && a2ensite lava-server + + + +# gnupggnupg