Alpine busybox httpd server. Light, below 10 Mb. GNS3 ready
312
Alpine busybox httpd server. Light, below 10 Mb. GNS3 ready
docker run -dt -p 8080:8080 --name myhttp palw3ey/ye3http
docker logs myhttp
The /var/www folder is persistent.
docker run -dt -p 8080:8080 -e Y_USERNAME=tux -e Y_PASSWORD=1234 --name myhttp palw3ey/ye3http
docker run -dt -p 8080:8080 -e Y_WHITELIST="192.0.2.1 10.1.193.0/24" --name myhttp palw3ey/ye3http
docker run -dt -p 8080:8080 -e Y_LOG=yes --name myhttp palw3ey/ye3http
# show log, to exit Press Ctrl C
docker exec -it myhttp tail -f /var/log/httpd.log
docker run -dt -p 8080:8080 -e Y_CROND=yes -e Y_CROND_LOG=yes --name myhttp palw3ey/ye3http
# edit, to save and quit Press Escape and type :wq
docker exec -it myhttp crontab -e
# show log, to exit Press Ctrl C
docker exec -it myhttp tail -f /var/log/crond.log
# to save and quit Press Escape and type :wq
docker exec -it myhttp vi /var/www/index.html
docker cp index.html myhttp:/var/www/
docker cp production/. myhttp:/var/www/
docker cp myhttp:/var/www/index.html index.html
docker inspect myhttp --format '{{range .Mounts}}{{.Source}} -> {{.Destination}}{{println}}{{end}}'
docker stop myhttp; docker rm myhttp
To run through GNS3, download and import the appliance : ye3http.gns3a
Edit config# Static config for eth0 or otherwise # DHCP config for eth0 for a dhcp configurationSaveStartConsoleAuxiliary console| variables | default | description |
|---|---|---|
| Y_DEBUG | no | yes, to use set -x in the entrypoint.sh |
| Y_URL_IP_CHECK | no | yes, to to enable public IP detection |
| Y_URL_IPV4_CHECK | url | http://whatismyip.akamai.com |
| Y_URL_IPV6_CHECK | url | http://ipv6.whatismyip.akamai.com |
| Y_URL_IP_CHECK_TIMEOUT | 5 | Timeout for IP checks, in second |
| Y_SHOW_CRED | yes | yes, to display credentials in docker logs command |
| TZ | Europe/Paris | Time zone, IANA format |
| Y_DATE_FORMAT | "%Y-%m-%dT%H:%M:%S%z" | Date format (strftime) |
| - | - | - |
| Y_PORT | 8080 | httpd listening port |
| Y_WWW | /var/www | Web root directory |
| Y_UID | 1000 | uid for httpd and Y_WWW folder |
| Y_GID | 1000 | gid for httpd and Y_WWW folder |
| Y_CONF | /etc/httpd.conf | httpd config file path |
| Y_LOG | no | yes, to log httpd service |
| Y_LOG_PATH | /var/log/httpd.log | httpd log file path |
| Y_USERNAME | Basic Auth username | |
| Y_PASSWORD | Basic Auth password | |
| Y_WHITELIST | Allowed IP whitelist, space separated | |
| - | - | - |
| Y_CROND | no | yes, to start crond service |
| Y_CROND_LOG | no | yes, to log crond service |
| Y_CROND_LOG_PATH | /var/log/crond.log | crond log file path |
The docker image was compiled to work on these CPU architectures :
Work on most computers including Raspberry Pi
To customize and create your own images.
git clone https://gitlab.com/palw3ey/ye3http.git
cd ye3http
# Make all your modifications, then :
docker build --no-cache --network=host -t ye3http .
docker run -dt --name my_customized_http ye3http
docker logs my_customized_http
# enter inside the container, to leave type: exit
docker exec -it my_customized_http sh
| Registry | Image name |
|---|---|
| Docker | docker.io/palw3ey/ye3http |
| Github | ghcr.io/palw3ey/ye3http |
| Gitlab | registry.gitlab.com/palw3ey/ye3http |
| Redhat | quay.io/palw3ey/ye3http |
| name | version |
|---|---|
| ye3http | 1.0.0 |
| httpd | 1.37.0 |
| alpine | 3.23.3 |
MIT
author: palw3ey
maintainer: palw3ey
email: [email protected]
website: https://gitlab.com/palw3ey/ye3http
docker hub: https://hub.docker.com/r/palw3ey/ye3http
Content type
Image
Digest
sha256:f2ef0e5a0…
Size
3.8 MB
Last updated
5 months ago
docker pull palw3ey/ye3http:1.0.0