feat(Docker): docker support
This commit is contained in:
Родитель
4794a65668
Коммит
14d1e515e6
|
@ -0,0 +1,15 @@
|
|||
##
|
||||
# NAME : fgribreau/httpobs-cli
|
||||
# VERSION : latest
|
||||
# DOCKER-VERSION : 1.5
|
||||
# DESCRIPTION :
|
||||
# TO_BUILD : docker build --pull=true --no-cache -t fgribreau/httpobs-cli .
|
||||
# TO_SHIP : docker push fgribreau/httpobs-cli
|
||||
# TO_RUN : docker run -d fgribreau/httpobs-cli
|
||||
##
|
||||
|
||||
FROM python:3-slim
|
||||
|
||||
RUN pip install httpobs-cli
|
||||
|
||||
ENTRYPOINT [ "httpobs-cli" ]
|
23
README.rst
23
README.rst
|
@ -5,10 +5,29 @@ This repository is for the HTTP Observatory command line utility. If
|
|||
you're looking for the code for the HTTP Observatory itself, it can be
|
||||
found `here <https://github.com/mozilla/http-observatory>`__.
|
||||
|
||||
Getting started with the HTTP Observatory
|
||||
Getting started with the HTTP Observatory (docker)
|
||||
-----------------------------------------
|
||||
|
||||
First, install the client:
|
||||
|
||||
.. code:: bash
|
||||
|
||||
$ docker run --rm fgribreau/httpobs-cli www.mozilla.org
|
||||
Score: 30 [E]
|
||||
Modifiers:
|
||||
[ -5] Initial redirection from http to https is to a different host, preventing HSTS
|
||||
[ -5] Subresource Integrity (SRI) not implemented, but all external scripts are loaded over https
|
||||
[ -5] X-Content-Type-Options header not implemented
|
||||
[ -10] X-XSS-Protection header not implemented
|
||||
[ -20] HTTP Strict Transport Security (HSTS) header not implemented
|
||||
[ -25] Content Security Policy (CSP) header not implemented
|
||||
|
||||
Getting started with the HTTP Observatory (python)
|
||||
-----------------------------------------
|
||||
|
||||
First install the client:
|
||||
|
||||
pip install httpobs-cli
|
||||
|
||||
|
||||
.. code:: bash
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче