Skip to content

Commit 539bbf6

Browse files
committed
fix: idp image can't find templates or statics
1 parent 48f4d54 commit 539bbf6

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
* #1517 OP prompts for logout when no OP session
1818
* #1512 client_secret not marked sensitive
1919
* #1521 Fix 0012 migration loading access token table into memory
20+
* #1584 Fix IDP container in docker compose environment could not find templates and static files.
2021
<!--
2122
### Security
2223
-->

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ ENV DATABASE_URL="sqlite:////data/db.sqlite3"
5757
COPY --from=builder /opt/venv /opt/venv
5858
ENV PATH="/opt/venv/bin:$PATH"
5959
COPY --from=builder /code /code
60-
RUN mkdir -p /code/tests/app/idp/static /code/tests/app/idp/templates
60+
RUN mkdir -p /data/static /data/templates
61+
COPY --from=builder /code/tests/app/idp/static /data/static
62+
COPY --from=builder /code/tests/app/idp/templates /data/templates
63+
6164
WORKDIR /code/tests/app/idp
6265
RUN apt-get update && apt-get install -y \
6366
libpq5 \

docs/contributing.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,28 @@ Reviewing and Merging PRs
325325

326326
PRs that are incorrectly merged may (reluctantly) be reverted by the Project Leads.
327327

328+
End to End Testing
329+
------------------
330+
331+
There is a demonstration Identity Provider (IDP) and Relying Party (RP) to allow for
332+
end to end testing. They can be launched directly by following the instructions in
333+
/test/apps/README.md or via docker compose. To launch via docker compose
334+
335+
.. code-block:: bash
336+
337+
# build the images with the current code
338+
docker compose build
339+
# wipe any existing services and volumes
340+
docker compose rm -v
341+
# start the services
342+
docker compose up -d
343+
344+
Please verify the RP behaves as expected by logging in, reloading, and logging out.
345+
346+
open http://localhost:5173 in your browser and login with the following credentials:
347+
348+
username: superuser
349+
password: password
328350

329351
Publishing a Release
330352
--------------------

0 commit comments

Comments
 (0)