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:
3.0.11) - Deployment of WebScripts Server with Apache and mod_wsgi (tag are apache_<version>, example:
apache_3.0.11andlastest, default container) - Deployment of WebScripts Server with Nginx as HTTPS proxy (tag is nginx_<version>, example:
nginx_3.0.11)
Dockerfiles are available on my github.
Deploy WebScripts with Docker - Youtube video
Using default docker image:
docker pull mauricelambert/webscriptsUsing default docker image:
docker pull mauricelambert/webscripts:latestUsing specific version of WebScripts:
docker pull mauricelambert/webscripts:apache_3.0.11For test:
docker run --name WebScripts -d mauricelambert/webscripts:apache_3.0.11For deployment:
docker run --name WebScripts --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/lib/data -d mauricelambert/webscripts:apache_3.0.11git clone https://github.com/mauricelambert/WebScriptsContainers.gitNOTE: the volume is not compatible with the Nginx deployment and the basic WebScripts container because the owner is not the same, you should change the owner of each files to use the apache deployment volume with nginx container or the basic WebScripts container.
cd apache
docker build --build-arg PASS=<AdminPassword> -t apache_webscripts .
docker volume create apache_webscripts_dataFor test:
docker run --name WebScripts -d apache_webscriptsFor deployment:
docker run --name WebScripts --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/data -d apache_webscriptsdocker pull mauricelambert/webscripts:nginx_3.0.11For test:
docker run --name WebScripts -it --rm mauricelambert/webscripts:nginx_3.0.11For deployment:
docker run --name WebScripts --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/data -d mauricelambert/webscripts:nginx_2.4.9git clone https://github.com/mauricelambert/WebScriptsContainers.gitNOTE: the volume is compatible with the basic WebScripts container but not with the Apache deployment because the owner is not the same, you should change the owner of each files to use the nginx deployment volume with apache container.
cd nginx
docker build --build-arg PASS=<AdminPassword> -t nginx_webscripts .
docker volume create webscripts_dataFor test:
docker run --name WebScripts -it --rm nginx_webscriptsFor deployment:
docker run --name WebScripts --restart always -p 80:80/tcp -p 443:443/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/data -d nginx_webscriptsThe connection is not secure (the socket is not secure by SSL. It's HTTP not HTTPS).
docker pull mauricelambert/webscripts:3.0.11For test:
docker run --name WebScripts -it --rm mauricelambert/webscripts:3.0.11For deployment:
docker run --name WebScripts --restart always -p 80:8000/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/data -d mauricelambert/webscripts:3.0.11git clone https://github.com/mauricelambert/WebScriptsContainers.gitNOTE: the volume is compatible with the Nginx deployment but not with the Apache deployment because the owner is not the same, you should change the owner of each files to use the basic WebScripts deployment volume with apache container.
cd simple
docker build --build-arg PASS=<AdminPassword> -t webscripts .
docker volume create webscripts_dataFor test:
docker run --name WebScripts -it --rm webscriptsFor deployment:
docker run --name WebScripts --restart always -p 80:8000/tcp --mount type=volume,source=apache_webscripts_data,target=/usr/src/WebScripts/data -d webscriptsdocker logs <dockerID>docker cp <dockerID>:/usr/src/WebScripts/data data
docker cp <dockerID>:/usr/src/WebScripts/hardening/audit.html audit.html
docker cp <dockerID>:/usr/src/WebScripts/logs logsdocker exec -it WebScripts bash
