Skip to content

Commit

Permalink
Merge branch 'main' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo authored Sep 11, 2024
2 parents e99b7aa + 6342b56 commit b4096da
Show file tree
Hide file tree
Showing 5 changed files with 912 additions and 793 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ name: 🛍 Update dependencies

on:
schedule:
- cron: 0 12 * * 3
- cron: 0 10 * * 3
workflow_dispatch:

jobs:
update:
name: 🦿 Update dependencies
uses: WGBH-MLA/.github/.github/workflows/update.yml@main
with:
pdm_args: -G dev,test,cli -u --save-compatible --no-sync --no-self && pdm update --no-default -G docs -L pdm-locks/pdm.doc.lock --unconstrained --save-compatible --no-sync --no-self
pdm_args: |
-G dev,test,cli -u --save-compatible --no-sync --no-self && \
pdm update --no-default -G production -L pdm-locks/pdm.prod.lock --unconstrained --save-compatible --no-sync --no-self && \
pdm update --no-default -G docs -L pdm-locks/pdm.doc.lock --unconstrained --save-compatible --no-sync --no-self
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY search search
### Test ###
# Build the test image, which includes the test applications
FROM base as test
# Install the test requirements.
# Install the test requirements
RUN pip install pdm
RUN pdm install -dG test

Expand All @@ -38,16 +38,16 @@ FROM base as production
# Create directory for logs
RUN mkdir -p /logs

# Set environment variables.
# 1. Force Python stdout and stderr streams to be unbuffered.
# Set environment variables
# 1. Force Python stdout and stderr streams to be unbuffered
# 2. Set PORT variable that is used by Gunicorn. This should match "EXPOSE"
# command.
# command
ENV PYTHONUNBUFFERED=1 \
PORT=80

EXPOSE 80

# Install the application server.
# Install the application server
RUN pip install .[production]

ENTRYPOINT /docker_entrypoints/deploy.sh
Loading

0 comments on commit b4096da

Please sign in to comment.