HUB
Sign inSign up
poky-app-lighttpd logo

reliableembeddedsystems/poky-app-lighttpd

By reliableembeddedsystems

•Updated over 7 years ago

lighttpd app container x86-64 glibc

Image
0

1.2K

reliableembeddedsystems/poky-app-lighttpd repository overview

see: https://github.com/RobertBerger/poky-app-lighttpd⁠

latest: 5 MB

wget https://raw.githubusercontent.com/RobertBerger/poky-app-lighttpd/master/non-local_scripts/docker_run.sh
wget https://raw.githubusercontent.com/RobertBerger/poky-app-lighttpd/master/non-local_scripts/docker_run-ash.sh
wget https://raw.githubusercontent.com/RobertBerger/poky-app-lighttpd/master/non-local_scripts/docker_kill.sh
chmod +x docker_*.sh
./docker_run.sh
+ ./docker_run.sh: Too few arguments!
+ use something like:
+ ./docker_run.sh  
+ ./docker_run.sh reliableembeddedsystems/poky-app-lighttpd:latest docker0
+ ./docker_run.sh reliableembeddedsystems/poky-app-lighttpd:latest br0
./docker_run.sh reliableembeddedsystems/poky-app-lighttpd:latest br0
+ ID=$(docker run -t -i -d -p 8888:80 --privileged reliableembeddedsystems/poky-app-lighttpd:latest)
+ ID 515dd4146b161b47636238af46502784d9ad66b674f03f1d0c43c922e18db0b6
+ docker attach 515dd4146b161b47636238af46502784d9ad66b674f03f1d0c43c922e18db0b6

now the lighttpd error log should be visible

use a web browser and browse to the ip where the container runs port 8888

e.g.

http://192.168.42.1:8888/⁠

You should see "It works!"

Now try a non exiting page and you should see something in the error log

e.g.

http://192.168.42.1:8888/lumpi⁠

You should see "404 Not Found" and:

...
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.429) -- splitting Request-URI 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.430) Request-URI     :  /lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.431) URI-scheme      :  http 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.432) URI-authority   :  192.168.42.1:8888 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.433) URI-path (raw)  :  /lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.434) URI-path (clean):  /lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.435) URI-query       :   
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/mod_access.c.177) -- mod_access_uri_handler called 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.580) -- before doc_root 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.581) Doc-Root     : /www/pages/ 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.582) Rel-Path     : /lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.583) Path         :  
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.625) -- after doc_root 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.626) Doc-Root     : /www/pages/ 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.627) Rel-Path     : /lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.628) Path         : /www/pages/lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.652) -- logical -> physical 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.653) Doc-Root     : /www/pages/ 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.654) Basedir      : /www/pages/ 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.655) Rel-Path     : /lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.656) Path         : /www/pages/lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.668) -- handling physical path 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.669) Path         : /www/pages/lumpi 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.144) -- file not found 
2019-04-20 19:26:46: (../../lighttpd-1.4.53/src/response.c.145) Path         : /www/pages/lumpi 
2019-04-20 19:26:52: (../../lighttpd-1.4.53/src/server.c.1863) connection closed - keep-alive timeout: 7 

If you want to kill the docker container open another shell and:

./docker_kill.sh reliableembeddedsystems/poky-app-lighttpd:latest br0

==== If you want to investigate the container from a root shell:

./docker_run-ash.sh reliableembeddedsystems/poky-app-lighttpd:latest br0
+ ID=$(docker run -t -i -d -p 8888:80 --privileged reliableembeddedsystems/poky-app-lighttpd:latest ash -l)
+ ID dc6a3ababe01f76a081948cd5c68a9576f9830c5bb354c41872306c2831b1563
+ docker attach dc6a3ababe01f76a081948cd5c68a9576f9830c5bb354c41872306c2831b1563

root@dc6a3ababe01:/# cat /etc/issue
Resy (Reliable Embedded Systems Reference Distro) 2.7+snapshot \n \l

root@dc6a3ababe01:/# cat /etc/timestamp 
20190420172939
root@dc6a3ababe01:/# netstat -ntul
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
root@dc6a3ababe01:/# /etc/init.d/lighttpd start
Starting Lighttpd Web Server: lighttpd.
root@dc6a3ababe01:/# netstat -ntul
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
root@dc6a3ababe01:/# 
Tag summary
Recent tags
Content type
Image
Digest
Size
4.3 MB
Last updated
over 7 years ago
docker pull reliableembeddedsystems/poky-app-lighttpd:latest