Skip to content

Commit

Permalink
Merge pull request #63 from edx/umar/adjust-user-permissions-for-lice…
Browse files Browse the repository at this point in the history
…nse-manager

chore: update user permissions in license manager
  • Loading branch information
mumarkhan999 authored Nov 22, 2024
2 parents 62b4cb1 + a49cdd0 commit bdf72fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dockerfiles/license-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ RUN curl -L -o requirements/production.txt https://raw.githubusercontent.com/edx
RUN pip install --no-cache-dir -r requirements/production.txt

RUN curl -L https://github.com/edx/license-manager/archive/refs/heads/master.tar.gz | tar -xz --strip-components=1
RUN curl -L -o license_manager/settings/devstack.py https://raw.githubusercontent.com/edx/devstack/master/py_configuration_files/license_manager.py

RUN mkdir -p /edx/var/log

Expand All @@ -112,10 +113,9 @@ RUN pip install newrelic
CMD newrelic-admin run-program gunicorn --workers=2 --name license_manager -c /edx/app/license_manager/license_manager/docker_gunicorn_configuration.py --log-file - --max-requests=1000 license_manager.wsgi:application


FROM app as devstack
FROM app as dev

Check warning on line 116 in dockerfiles/license-manager.Dockerfile

View workflow job for this annotation

GitHub Actions / build-and-push-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
USER root
RUN pip install -r /edx/app/license_manager/requirements/dev.txt
USER app
CMD gunicorn --reload --workers=2 --name license_manager -c /edx/app/license_manager/license_manager/docker_gunicorn_configuration.py --log-file - --max-requests=1000 license_manager.wsgi:application


Expand All @@ -125,5 +125,4 @@ EXPOSE 18170
EXPOSE 18171
USER root
RUN pip install -r /edx/app/license_manager/requirements/dev.txt
USER app
CMD gunicorn --reload --workers=2 --name license_manager -c /edx/app/license_manager/license_manager/docker_gunicorn_configuration.py --log-file - --max-requests=1000 license_manager.wsgi:application

0 comments on commit bdf72fd

Please sign in to comment.