Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge 799f8b9 into f67454d
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Feb 14, 2017
2 parents f67454d + 799f8b9 commit 42118c5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/installation/installation-docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,26 @@ Building mozillians
$ docker-compose run db /bin/bash
shell> mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -uroot -proot -h db_1 mysql

#. Create user
#. Create a superuser::

#. Run mozillians::
$ docker-compose run web python manage.py createsuperuser

#. Give permissions to the user::

$ docker-compose run web ./scripts/su.sh

#. Run mozillians::

docker-compose up

#. Load http://127.0.0.1:8000 or (for Mac users only) ``<IP>:8000`` where ``<IP>`` is the one returned by ``boot2docker ip`` command.
#. Sign in with persona to create your profile.
#. Stop the server with ``Ctrl^C``.
#. Vouch your account and convert it to superuser::

docker-compose run web ./scripts/su.sh

.. note::

In case this command doesn't work, you can run ``./scripts/su.sh`` inside the container. In order to get shell access please run ``docker-compose run web /bin/bash``.
To login to mozillians.org for dev purposes please visit http://127.0.0.1:8000/admin and login with the credentials issues in the previous step. The signin button doesn't work locally.

******************
Running mozillians
Expand Down
10 changes: 10 additions & 0 deletions mozillians/settings/local.py-devdist
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)

AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', )

OIDC_OP_AUTHORIZATION_ENDPOINT = ''
OIDC_OP_TOKEN_ENDPOINT = ''
OIDC_OP_USER_ENDPOINT = ''
OIDC_RP_CLIENT_ID = ''
OIDC_RP_CLIENT_SECRET = ''
OIDC_RP_CLIENT_SECRET_ENCODED = True
OIDC_OP_DOMAIN = 'http://127.0.0.1:8000'

MANAGERS = ADMINS

DEBUG = TEMPLATE_DEBUG = True
Expand Down
14 changes: 14 additions & 0 deletions mozillians/settings/local.py-dist
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)

AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', )

OIDC_OP_AUTHORIZATION_ENDPOINT = ''
OIDC_OP_TOKEN_ENDPOINT = ''
OIDC_OP_USER_ENDPOINT = ''
OIDC_RP_CLIENT_ID = ''
OIDC_RP_CLIENT_SECRET = ''
OIDC_RP_CLIENT_SECRET_ENCODED = True
OIDC_OP_DOMAIN = 'http://127.0.0.1:8000'

MANAGERS = ADMINS

DEBUG = True
Expand Down Expand Up @@ -90,3 +100,7 @@ CSP_STYLE_SRC = base.CSP_STYLE_SRC + (
BASKET_URL = 'http://127.0.0.1'
BASKET_API_KEY = 'basket_api_key'
BASKET_MANAGERS = None # or list of email addresses.

# Demo keys for ReCaptcha, no for prodution
NORECAPTCHA_SITE_KEY = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI'
NORECAPTCHA_SECRET_KEY = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe'
14 changes: 14 additions & 0 deletions mozillians/settings/local.py-docker-dist
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)

AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', )

OIDC_OP_AUTHORIZATION_ENDPOINT = ''
OIDC_OP_TOKEN_ENDPOINT = ''
OIDC_OP_USER_ENDPOINT = ''
OIDC_RP_CLIENT_ID = ''
OIDC_RP_CLIENT_SECRET = ''
OIDC_RP_CLIENT_SECRET_ENCODED = True
OIDC_OP_DOMAIN = 'http://127.0.0.1:8000'

MANAGERS = ADMINS

DEBUG = True
Expand Down Expand Up @@ -116,3 +126,7 @@ CSP_STYLE_SRC = base.CSP_STYLE_SRC + (
'http://*.mozilla.org',
'http://*.mapbox.com',
)

# Demo keys for ReCaptcha, no for prodution
NORECAPTCHA_SITE_KEY = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI'
NORECAPTCHA_SECRET_KEY = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe'

0 comments on commit 42118c5

Please sign in to comment.