Browse Source

ftpd-hpa config file added

stevo 5 years ago
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 @@
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
-
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 lava-srv .
31
+
32
+## Bookmarks:
33
+* https://validation.linaro.org/static/docs/v2/installing_on_debian.html#debian-installation
34
+* https://github.com/WindRiver-OpenSourceLabs/lava-base
35
+* https://github.com/kernelci/lava-docker
36
+

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

@@ -0,0 +1,6 @@
1
+# /etc/default/tftpd-hpa
2
+
3
+TFTP_USERNAME="tftp"
4
+TFTP_DIRECTORY="/var/lib/lava/dispatcher/tmp/"
5
+TFTP_ADDRESS="0.0.0.0:69"
6
+TFTP_OPTIONS="--secure"

+ 42 - 8
dockerfile View File

@@ -1,11 +1,45 @@
1
-FROM debian:9
1
+FROM debian:stretch
2 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
-	
3
+RUN apt-get update \
4
+    && apt-get install -y locales \
5
+    && rm -rf /var/lib/apt/lists/* \
6
+    && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 
9 7
 
10
-    
8
+ENV LANG en_US.utf8
11 9
 
10
+# install several packages for the server
11
+RUN  apt-get update && apt-get upgrade -y \
12
+     && DEBIAN_FRONTEND=noninteractive apt-get install -y \
13
+	wget \
14
+	curl \
15
+	apt-utils \
16
+	gnupg \
17
+	locales \
18
+	screen \
19
+	sudo \
20
+	nano \
21
+	postgresql \
22
+	e2fsprogs \
23
+	vim \
24
+        ser2net 
25
+
26
+# add linaro package server to pacjage manager sources
27
+RUN  apt-get update && apt-get upgrade -y \
28
+     && wget https://images.validation.linaro.org/staging-repo/staging-repo.key.asc \
29
+     && apt-key add staging-repo.key.asc \
30
+     && echo 'deb http://images.validation.linaro.org/production-repo/ stretch-backports main' > /etc/apt/sources.list.d/lava.list \
31
+     && apt-get clean && apt-get update
32
+
33
+# start postgresql and install the lava server
34
+RUN /etc/init.d/postgresql start \
35
+    && DEBIAN_FRONTEND=noninteractive apt-get install -y lava
36
+
37
+# enable lava in apache2 config
38
+RUN a2enmod proxy \
39
+ && a2enmod proxy_http \
40
+ && a2dissite 000-default \
41
+ && a2ensite lava-server
42
+
43
+
44
+
45
+# gnupggnupg