===============
The Docker tutorial is an interactive learning environment to get familiar with the Docker commandline.
Simple Usage
------------
Generally this application is used in the www.docker.io website. It's source can be found on
https://github.com/dotcloud/www.docker.io/. By installing that you will get this app 'for free' as a
dependency.
However, this app is made to also be usable inside other Django applications. All that is required is to
add git+https://github.com/dhrp/docker-tutorial.git#egg=DockerTutorial-dev to your requirements.txt
and it will be installed by pip upon pip install -r requirements.txt
To include it
* Make sure your "host" app uses the same python environment
* In your "host" app settings include "docker_tutorial"
* in a template {% include 'tutorial/snippet.html' %}
* in your urls.py add url(r'^tutorial/', include('docker_tutorial.urls')),
* in your settings make sure you include the session middleware:
When you want to make changes
-----------------------------
* First create or switch to a virtual environment in which you have the "host" app into which you would
like to embed the tutorial. e.g. a clone of the the Docker website (before you ran install)
* Clone this repository:
git clone https://github.com/dhrp/docker-tutorial.git
* Switch to the dir:
cd docker-tutorial
* Install the application with the -e (editable) flag.
pip install -e .
This will setup the symlinks such that you don't need to run setup.py every time you want to see a
change. i.e. your local repository is now linked into the environment.
Running the unit tests
----------------------
* ./runtests.py
Running code coverage
---------------------
* coverage run ./runtests.py && coverage html --include="./docker_tutorial/*"
Happy coding!
Metadata
Release files for docker-tutorial 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docker-tutorial-0.2.1.tar.gz | 158.9 kB | Without provenance | Details for docker-tutorial-0.2.1.tar.gz |
Release files / docker-tutorial-0.2.1.tar.gz
| Download URL | docker-tutorial-0.2.1.tar.gz |
|---|---|
| Size | 158.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfd66a3666220f312f988f8a20cbbc1b36bafd24feec88c51d0185440e6d8f2a
|
|
BLAKE2b-256 checksum How to use checksums |
f5d68430f55b6c102700b172283eb5f05fba7d73ae54110632af057529df8661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for docker-tutorial 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.