Files
dockerfiles/httpd
Patrick McCarty d6864e5c91 Link to swupd-client repo for swupd option docs
This link should be more stable and always provide the latest
information about swupd command-line options.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-04-29 13:07:00 -07:00
..
2019-04-08 19:18:26 -07:00
2019-04-08 19:18:26 -07:00
2019-04-08 19:18:26 -07:00

httpd

This provides a Clear Linux* httpd instance.

Build

docker build -t clearlinux/httpd .

Or just pull it from Dockerhub

docker pull clearlinux/httpd

start a redis instance

docker run --name some-httpd -dit -p 8080:80 clearlinux/httpd

connecting

curl http://localhost:8080/	# locally
curl http://${server-ip}:8080/	# remotely

benchmark test using apache ab

Please refer to the page for details.

ab -n 25000 -c 50 -k http://${server-ip}:8080/

use customized configuration file

The default conf file on clear Linux* is put on /usr/share/defaults/httpd/httpd.conf. The /etc/httpd/conf.d/httpd.conf could be used to override the defaul one. The default DocumentRoot is on /var/www/html/. Above could be modified dynamically by "docker run -v " option, for example,

docker run --name some-httpd -dit -p 8080:80 \
	-v /etc/httpd/conf.d:/etc/httpd/conf.d \
	-v $PWD/html:/var/www/html \
	clearlinux/httpd

Extra Build ARGs

  • swupd_args Specifies SWUPD flags

Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg