FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit b48b055d authored by Robin Goodall's avatar Robin Goodall :speech_balloon:
Browse files

Merge branch 'build-from-committed-files' into 'main'

Build from spec files instead of portal

Closes #13

See merge request !24
parents feae8ae8 d031eba3
No related branches found
No related tags found
1 merge request!24Build from spec files instead of portal
Pipeline #235058 waiting for manual action
......@@ -5,41 +5,43 @@ FROM openapitools/openapi-generator-cli as builder
WORKDIR /generated
COPY ./specs /specs
# openapi-generator-cli v6.2.0 changed the python generator. Using 'python-prior' until we have
# checked the impact of this change
RUN docker-entrypoint.sh generate \
--input-spec https://developer.api.apps.cam.ac.uk/portals/api/sites/api-prod-a3dc87f7-prod/liveportal/apis/card/download_spec \
--input-spec /specs/card.yaml \
--generator-name python-prior \
--additional-properties packageName=identitylib.card_client \
--output /generated
RUN docker-entrypoint.sh generate \
--input-spec https://developer.api.apps.cam.ac.uk/portals/api/sites/api-prod-a3dc87f7-prod/liveportal/apis/university-human-resources/download_spec \
--input-spec /specs/hr.yaml \
--generator-name python-prior \
--additional-properties packageName=identitylib.hr_client \
--output /generated
RUN docker-entrypoint.sh generate \
--input-spec https://developer.api.apps.cam.ac.uk/portals/api/sites/api-prod-a3dc87f7-prod/liveportal/apis/lookup/download_spec \
--input-spec /specs/lookup.yaml \
--generator-name python-prior \
--additional-properties packageName=identitylib.lookup_client \
--output /generated
RUN docker-entrypoint.sh generate \
--input-spec https://developer.api.apps.cam.ac.uk/portals/api/sites/api-prod-a3dc87f7-prod/liveportal/apis/photo/download_spec \
--input-spec /specs/photo.yaml \
--generator-name python-prior \
--additional-properties packageName=identitylib.photo_client \
--output /generated
RUN docker-entrypoint.sh generate \
--input-spec https://developer.api.apps.cam.ac.uk/portals/api/sites/api-prod-a3dc87f7-prod/liveportal/apis/university-student/download_spec \
--input-spec /specs/student.yaml \
--generator-name python-prior \
--additional-properties packageName=identitylib.student_client \
--output /generated
RUN docker-entrypoint.sh generate \
--input-spec https://developer.api.apps.cam.ac.uk/portals/api/sites/api-prod-a3dc87f7-prod/liveportal/apis/inst-identifiers/download_spec \
--input-spec /specs/inst_identifier.yaml \
--generator-name python-prior \
--additional-properties packageName=identitylib.inst_identifier_client \
--output /generated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment