Skip to content

Commit

Permalink
refactor: refactor: moved repo clone step in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Oct 18, 2024
1 parent f48305a commit d061e7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/push-program-intent-engagement-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
schedule:
- cron: "0 4 * * 1-5" # UTC Time

# Added for testing purposes. Will remove once the PR is finalised
pull_request:
branches:
- '**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions dockerfiles/program-intent-engagement.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ ENV DJANGO_SETTINGS_MODULE program_intent_engagement.settings.production
EXPOSE 18781
RUN useradd -m --shell /bin/false app

# Clone the repository
RUN curl -L https://github.com/edx/program-intent-engagement/archive/refs/heads/main.tar.gz | tar -xz --strip-components=1

WORKDIR /edx/app/program-intent-engagement

# Create required directories for requirements
Expand All @@ -90,6 +87,8 @@ RUN virtualenv -p python${PYTHON_VERSION} --always-copy ${INTENT_MANAGEMENT_VENV
RUN curl -L -o requirements/production.txt https://raw.githubusercontent.com/edx/program-intent-engagement/main/requirements/production.txt
RUN pip install -r requirements/production.txt

# Clone the repository
RUN curl -L https://github.com/edx/program-intent-engagement/archive/refs/heads/main.tar.gz | tar -xz --strip-components=1

RUN mkdir -p /edx/var/log

Expand Down

0 comments on commit d061e7a

Please sign in to comment.