Skip to content

add local ssh folder for accessing private edly repos #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ below, run the following sequence of commands if you want to use the most up-to-

This will stop any running devstack containers, pull the latest images, and then start all of the devstack containers.

Get You SSh Keys Added to Edly
------------------------------

Please get access to edly's organization prior to setting up edly devstack.

Basically we need ssh keys which are enabled to access the edly's private repos.
Since at Edly we individually give permissions to our developers so avoid getting access denied error,
we now mount the default directory of ssh keys on Edly developers system, present at ``$HOME/.ssh:/root/.ssh``

This way a developer can install private edly apps,
e.g. `pip install git+ssh://[email protected]/edly-io/edly-panel-edx-app.git#egg=edly-panel-app` directly from ``LMS Shell``.


Getting Started
---------------

Expand Down Expand Up @@ -290,34 +303,34 @@ To setup the single sing on(SSO) on WordPress. Follow the below steps
.. code:: sh

make wordpress-shell

2. Open `wp-config.php` file

.. code:: sh

apt update

apt install nano

nano wp-config.php


3. Past the below code and save file

3. Past the below code and save file

.. code:: sh

define( 'EDLY_SSO_CLIENT_ID', 'edly-wordpress-key' );

define( 'EDLY_SSO_CLIENT_SECRET', 'edly-wordpress-secret' );

define( 'EDLY_SSO_AUTHORIZE_ENDPOINT', 'http://edx.devstack.lms:18000/oauth2/authorize' );

define( 'EDLY_SSO_ACCESS_TOKEN_URL', 'http://edx.devstack.lms:18000/oauth2/access_token' );

define( 'EDLY_SSO_SCOPE', 'openid+profile+email+permissions' );

define( 'EDLY_SSO_REDIRECT_URL', 'http://localhost:8888' );

define( 'EDLY_SOCIAL_AUTH_EDX_OIDC_ISSUER', 'http://localhost:18000/oauth2' );


Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ services:
volumes:
- edxapp_lms_assets:/edx/var/edxapp/staticfiles/
- ../src/edly-edx-themes/st-lutherx:/edx/app/edxapp/edx-platform/themes/st-lutherx
- $HOME/.ssh:/root/.ssh

edx_notes_api:
command: bash -c 'source /edx/app/edx_notes_api/edx_notes_api_env && while true; do python /edx/app/edx_notes_api/edx_notes_api/manage.py runserver 0.0.0.0:18120 --settings notesserver.settings.devstack; sleep 2; done'
Expand Down