Merge pull request #74 from dmlb2000/v0.2.x
Add docker file to the example project.
This commit is contained in:
commit
242acd6fda
2 changed files with 20 additions and 0 deletions
6
example_project/Dockerfile
Normal file
6
example_project/Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
FROM python:2-onbuild
|
||||||
|
|
||||||
|
RUN [ "python", "manage.py", "migrate" ]
|
||||||
|
RUN [ "python", "manage.py", "creatersakey" ]
|
||||||
|
EXPOSE 8000
|
||||||
|
CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000" ]
|
|
@ -29,6 +29,20 @@ $ python manage.py runserver
|
||||||
|
|
||||||
Open your browser and go to `http://localhost:8000`. Voilà!
|
Open your browser and go to `http://localhost:8000`. Voilà!
|
||||||
|
|
||||||
|
## Or Use Docker
|
||||||
|
|
||||||
|
Build the container first.
|
||||||
|
```
|
||||||
|
docker build -t django-oidc-provider .
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the container next.
|
||||||
|
```
|
||||||
|
docker run -d -p 8000:8000 django-oidc-provider
|
||||||
|
```
|
||||||
|
|
||||||
|
Open your browser and go to `http://localhost:8000`. Voilà!
|
||||||
|
|
||||||
## Install package for development
|
## Install package for development
|
||||||
|
|
||||||
After you run `pip install -r requirements.txt`.
|
After you run `pip install -r requirements.txt`.
|
||||||
|
|
Loading…
Reference in a new issue