WebScripts is a tool to run scripts and display the result in a Web Interface.
The documentation is available on readthedocs and on my github wiki.
Sources are available on my github.
Three tags are available on Docker hub.
- The WebScripts Server (tag is the version, example:
2.4.9
) - Deployment of WebScripts Server with Apache and mod_wsgi (tag are apache_<version>, example:
apache_2.4.9
andlastest
, default container) - Deployment of WebScripts Server with Nginx as HTTPS proxy (tag is nginx_<version>, example:
nginx_2.4.9
)
Dockerfiles are available on my github.
Deploy WebScripts with Docker - Youtube video
Using default docker image:
docker pull mauricelambert/webscripts
Using default docker image:
docker pull mauricelambert/webscripts:latest
Using specific version of WebScripts:
docker pull mauricelambert/webscripts:apache_2.4.9
For test:
docker run -d mauricelambert/webscripts:apache_2.4.9
For deployment:
docker run --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data -d mauricelambert/webscripts:apache_2.4.9
git clone https://github.com/mauricelambert/WebScriptsContainers.git
NOTE: the volume is not compatible with the Nginx deployment and the basic WebScripts container because the owner is not the same.
cd apache
docker build --build-arg PASS=<AdminPassword> -t apache_webscripts .
docker volume create apache_webscripts_data
For test:
docker run -d apache_webscripts
For deployment:
docker run --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data -d apache_webscripts
docker pull mauricelambert/webscripts:nginx_2.4.9
For test:
docker run -it --rm mauricelambert/webscripts:nginx_2.4.9
For deployment:
docker run --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data -d mauricelambert/webscripts:nginx_2.4.9
git clone https://github.com/mauricelambert/WebScriptsContainers.git
NOTE: the volume is compatible with the basic WebScripts container but not with the Apache deployment because the owner is not the same.
cd nginx
docker build --build-arg PASS=<AdminPassword> -t nginx_webscripts .
docker volume create webscripts_data
For test:
docker run -it --rm nginx_webscripts
For deployment:
docker run --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data -d nginx_webscripts
The connection is not secure (the socket is not secure by SSL. It's HTTP not HTTPS).
docker pull mauricelambert/webscripts:2.4.9
For test:
docker run -it --rm mauricelambert/webscripts:2.4.9
For deployment:
docker run --restart always -p 80:8000/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data -d mauricelambert/webscripts:2.4.9
git clone https://github.com/mauricelambert/WebScriptsContainers.git
NOTE: the volume is compatible with the Nginx deployment but not with the Apache deployment because the owner is not the same.
cd simple
docker build --build-arg PASS=<AdminPassword> -t webscripts .
docker volume create webscripts_data
For test:
docker run -it --rm webscripts
For deployment:
docker run --restart always -p 80:8000/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data -d webscripts
docker logs <dockerID>
docker cp <dockerID>:/usr/src/WebScripts/lib/python3.9/site-packages/WebScripts/data data
docker cp <dockerID>:/usr/src/WebScripts/audit.html audit.html
docker cp <dockerID>:/usr/src/WebScripts/logs logs
docker exec -it <dockerID> bash