-
Notifications
You must be signed in to change notification settings - Fork 420
edx_notes_api config for native image #993
base: master
Are you sure you want to change the base?
Changes from 3 commits
b4ac23a
857ea69
3d3f85d
4f92b7c
b3c6326
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
|
||
ALLOWED_HOSTS: | ||
- localhost | ||
CLIENT_ID: CHANGEME | ||
CLIENT_SECRET: CHANGEME | ||
DATABASES: | ||
default: | ||
ENGINE: django.db.backends.mysql | ||
HOST: db | ||
NAME: edx_notes_api | ||
OPTIONS: | ||
connect_timeout: 10 | ||
PASSWORD: secret | ||
PORT: '3306' | ||
USER: notes001 | ||
DISABLE_TOKEN_CHECK: false | ||
ELASTICSEARCH_INDEX: edx_notes | ||
ELASTICSEARCH_URL: http://es:9200/ | ||
HAYSTACK_CONNECTIONS: | ||
default: | ||
ENGINE: notesserver.highlight.ElasticsearchSearchEngine | ||
INDEX_NAME: edx_notes_api | ||
URL: http://es:9200/ | ||
JWT_AUTH: | ||
JWT_AUTH_COOKIE_HEADER_PAYLOAD: edx-jwt-cookie-header-payload | ||
JWT_AUTH_COOKIE_SIGNATURE: edx-jwt-cookie-signature | ||
JWT_ISSUERS: | ||
- AUDIENCE: SET-ME-PLEASE | ||
ISSUER: http://127.0.0.1:8000/oauth2 | ||
SECRET_KEY: SET-ME-PLEASE | ||
JWT_PUBLIC_SIGNING_JWK_SET: '' | ||
RESULTS_DEFAULT_SIZE: 25 | ||
RESULTS_MAX_SIZE: 250 | ||
SECRET_KEY: CHANGEME | ||
USERNAME_REPLACEMENT_WORKER: OVERRIDE THIS WITH A VALID USERNAME | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: no new line There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,6 +390,7 @@ services: | |
- lms | ||
- mysql57 | ||
image: edxops/notes:${OPENEDX_RELEASE:-latest} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have to use new Ansible free image here and test it before we merge this PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please help me to find it how you have done it before for other PRs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will need to change the image specified here currently with the new Ansible free image once we merge the PR in notes-api repository There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. image name changed |
||
working_dir: /edx/app/edx_notes_api/edx_notes_api | ||
networks: | ||
default: | ||
aliases: | ||
|
@@ -407,6 +408,9 @@ services: | |
ENABLE_DJANGO_TOOLBAR: 1 | ||
ELASTICSEARCH_URL: "http://edx.devstack.elasticsearch710:9200" | ||
ELASTICSEARCH_DSL: "http://edx.devstack.elasticsearch710:9200" | ||
volumes: | ||
- /edx/var/edx_notes_api/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This wasn't present before. We shouldn't add anything not related to our work There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but you have it in your analytics PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't add it as part of my PR. We simply don't need it for notes-api if it wasn't specified already There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, verified it. It was not there before. |
||
- ${PWD}/configuration_files/edx_notes_api.yml:/edx/etc/edx_notes_api.yml | ||
|
||
forum: | ||
command: bash -c 'source /edx/app/forum/ruby_env && source /edx/app/forum/devstack_forum_env && cd /edx/app/forum/cs_comments_service && bundle install && while true; do ruby app.rb -o 0.0.0.0 ; sleep 2; done' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no specific make target for note_api then according to my understanding this command will be executed which means there should be no need to add this command explicitly. Can you please try this theory too when testing the Ansible free image