Skip to content
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

feat: added dockerfile and docker image push workflow for edx-analytics-dashboard #34

Merged

Conversation

BilalQamar95
Copy link
Contributor

Issue: #19

Description

PR adds Dockerfile along with workflow to build & push docker image for edx-analytics-dashboard.

@BilalQamar95 BilalQamar95 self-assigned this Oct 15, 2024
@BilalQamar95 BilalQamar95 changed the title feat: added dockerfile and docker image push workflow for edx-analytics-dashboard feat: added dockerfile and docker image push workflow for edx-analytics-dashboard Oct 15, 2024
# No need to activate insights virtualenv as it is already activated by putting in the path
RUN virtualenv -p python${PYTHON_VERSION} --always-copy ${INSIGHTS_VENV_DIR}

ENV PATH="${INSIGHTS_CODE_DIR}/node_modules/.bin:$PATH"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to specify workdir here

WORKDIR ${INSIGHTS_CODE_DIR}/
# Create required directories for requirements
RUN mkdir -p requirements

RUN pip install virtualenv

# Create required directories for requirements
RUN mkdir -p requirements
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will create this dir after specifying workdir


FROM app as dev

RUN curl -L -o requirements/local.txt https://raw.githubusercontent.com/edx/edx-analytics-dashboard/master/requirements/local.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to download this file at this stage.
We are extending dev from app so it should be already available.

@UsamaSadiq UsamaSadiq merged commit 11277d2 into main Oct 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants