Browse Source

ftpd-hpa config file added

update docker file
master
stevo 6 years ago
committed by Steffen Volkmann
parent
commit
bdde33814f
3 changed files with 84 additions and 45 deletions
  1. +36
    -37
      README.md
  2. +6
    -0
      configs/tftpd-hpa.conf
  3. +42
    -8
      dockerfile

+ 36
- 37
README.md View File

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


+ 6
- 0
configs/tftpd-hpa.conf View File

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

+ 42
- 8
dockerfile View File

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

Loading…
Cancel
Save