Skip to content

Commit

Permalink
tweak image, try activating venv in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Aug 6, 2024
1 parent 6f095b3 commit f7cc1aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/harvest-restrictions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
- uses: actions/checkout@v4
- name: Download sources
run: |
python download.py sources.json -v
/venv/bin/python download.py sources.json -v
- name: Process overlays
run: |
source /venv/bin/activate
./process.sh
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ RUN apt-get update && \
apt-get -qq install -y --no-install-recommends python3-psycopg2 && \
rm -rf /var/lib/apt/lists/*

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install

WORKDIR /home/harvest-restrictions

COPY requirements*.txt ./

RUN python3 -m venv venv && \
. venv/bin/activate && \
python -m pip install -U pip && \
python -m pip install --no-cache-dir --upgrade numpy && \
python -m pip install -r requirements.txt && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install
RUN python3 -m venv /venv && \
/venv/bin/python -m pip install -U pip && \
/venv/bin/python -m pip install --no-cache-dir --upgrade numpy && \
/venv/bin/python -m pip install -r requirements.txt

0 comments on commit f7cc1aa

Please sign in to comment.