-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: deprecate devstack from registrar IDA #39
Conversation
d0ed02b
to
c9e1c25
Compare
c9e1c25
to
a416375
Compare
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: "0 4 * * *" |
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.
Let's schedule it to run only on the weekdays and mention the default time zone which will be used i.e. UTC
- cron: "0 4 * * *" | |
- cron: "0 4 * * 1-5" # UTC Time |
result-encoding: string | ||
|
||
- name: Build and push Dev Docker image | ||
uses: docker/build-push-action@v1 |
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.
Let's try using the latest available v6 version.
uses: docker/build-push-action@v1 | |
uses: docker/build-push-action@v6 |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
target: dev | ||
repository: edxops/registrar-devstack-dev |
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.
As the dev
environment is solely used within the devstack setup, there is no need to add a redundant identifier. Simply specifying registrar-dev
will suffice. Since we will be updating the image, there's no need to distinguish it from previous versions.
repository: edxops/registrar-devstack-dev | |
repository: edxops/registrar-dev |
@@ -535,7 +535,7 @@ services: | |||
CELERY_BROKER_PASSWORD: password | |||
DJANGO_WATCHMAN_TIMEOUT: 30 | |||
ANALYTICS_DASHBOARD_CFG: /edx/etc/registrar.yml | |||
image: edxops/registrar-dev:${OPENEDX_RELEASE:-latest} | |||
image: edxops/registrar-devstack-dev:${OPENEDX_RELEASE:-latest} |
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.
This change can be skipped if we decide to use registrar-dev
.
image: edxops/registrar-devstack-dev:${OPENEDX_RELEASE:-latest} | |
image: edxops/registrar-dev:${OPENEDX_RELEASE:-latest} |
dockerfiles/registrar.Dockerfile
Outdated
|
||
# System requirements. | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy \ |
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.
we've already defined the flag above so it is not needed here.
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy \ | |
RUN apt-get install -qy \ |
dockerfiles/registrar.Dockerfile
Outdated
|
||
# Gunicorn 19 does not log to stdout or stderr by default. Once we are past gunicorn 19, the logging to STDOUT need not be specified. | ||
CMD ["gunicorn", "--workers=2", "--name", "registrar", "-c", "/edx/app/registrar/registrar/docker_gunicorn_configuration.py", "--log-file", "-", "--max-requests=1000", "registrar.wsgi:application"] | ||
|
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.
nit: remove extra lines from end of file.
dockerfiles/registrar.Dockerfile
Outdated
ENV DJANGO_SETTINGS_MODULE registrar.settings.production | ||
|
||
# Gunicorn 19 does not log to stdout or stderr by default. Once we are past gunicorn 19, the logging to STDOUT need not be specified. | ||
CMD ["gunicorn", "--workers=2", "--name", "registrar", "-c", "/edx/app/registrar/registrar/docker_gunicorn_configuration.py", "--log-file", "-", "--max-requests=1000", "registrar.wsgi:application"] |
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.
We're currently using gunicorn==23.0.0
in production.txt so the comment can be removed, and the command can be simplified as following:
CMD ["gunicorn", "--workers=2", "--name", "registrar", "-c", "/edx/app/registrar/registrar/docker_gunicorn_configuration.py", "--log-file", "-", "--max-requests=1000", "registrar.wsgi:application"] | |
CMD ["gunicorn", "--workers=2", "--name", "registrar", "-c", "/edx/app/registrar/registrar/docker_gunicorn_configuration.py", "--max-requests=1000", "registrar.wsgi:application"] |
Closing this as this PR will now be created in public-dockerfiles repo |
Description
This PR adds registrar devstack config and image build to devstack repo.