generated from GenomicDataInfrastructure/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ea5095
commit dad6fe1
Showing
16 changed files
with
121 additions
and
1,534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,9 @@ nb-configuration.xml | |
|
||
# Local environment | ||
.env | ||
venv | ||
|
||
# Plugin directory | ||
/.quarkus/cli/plugins/ | ||
|
||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
#### | ||
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode. | ||
# It uses a micro base image, tuned for Quarkus native executables. | ||
# It reduces the size of the resulting container image. | ||
# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image. | ||
# | ||
# Before building the container image run: | ||
# | ||
# mvn package -Dnative | ||
# | ||
# Then, build the image with: | ||
# | ||
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/code-with-quarkus . | ||
# | ||
# Then run the container using: | ||
# | ||
# docker run -i --rm -p 8080:8080 quarkus/code-with-quarkus | ||
# | ||
### | ||
FROM quay.io/quarkus/quarkus-micro-image:2.0 | ||
WORKDIR /work/ | ||
RUN chown 1001 /work \ | ||
&& chmod "g+rwX" /work \ | ||
&& chown 1001:root /work | ||
COPY --chown=1001:root target/*-runner /work/application | ||
FROM python:3.10-slim-bookworm | ||
|
||
WORKDIR /code | ||
|
||
COPY ./requirements.txt /code/requirements.txt | ||
COPY ./run.py /code/run.py | ||
COPY ./openapi.yaml /code/openapi.yaml | ||
|
||
EXPOSE 8080 | ||
USER 1001 | ||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | ||
|
||
ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"] | ||
CMD ["uvicorn", "run:app", "--host", "0.0.0.0", "--port", "8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
openapi: 3.0.3 | ||
info: | ||
title: Access Request Management Service - OpenAPI 3.0 | ||
description: |- | ||
This is the OpenAPI 3.0 specification for the Access Request Management Service. | ||
This service is responsible for managing access requests to the Genomic Data Infrastructure (GDI). | ||
The service provides endpoints for creating, updating, and retrieving access requests, as well as managing the datasets and members associated with each request. | ||
The service also provides endpoints for managing baskets of access requests. | ||
#termsOfService: http://TODO/terms/ | ||
contact: | ||
email: [email protected] | ||
license: | ||
name: Apache 2.0 | ||
url: https://spdx.org/licenses/Apache-2.0.html | ||
version: 0.0.0 | ||
externalDocs: | ||
description: Find out more about GDI | ||
url: https://genomicdatainfrastructure.github.io/gdi-userportal-docs/ | ||
servers: | ||
- url: https://localhost:8080 | ||
description: Development server | ||
tags: | ||
- name: applications | ||
description: All endpoints related to access request management | ||
- name: baskets | ||
description: All endpoints related to baskets | ||
- name: attachments | ||
description: All endpoints related to attachments | ||
- name: members | ||
description: All endpoints related to members | ||
- name: terms | ||
description: All endpoints related to terms | ||
- name: datasets | ||
description: All endpoints related to datasets | ||
- name: forms | ||
description: All endpoints related to forms | ||
- name: actions | ||
description: All endpoints related to user actions | ||
- name: events | ||
description: All endpoints related to events | ||
paths: | ||
/api/v1/applications: | ||
get: | ||
summary: List applications | ||
operationId: run.list_applications_v1 | ||
tags: | ||
- "applications" | ||
responses: | ||
"200": | ||
description: Successful Response | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
title: collection of applications | ||
items: | ||
$ref: "#/components/schemas/ListedApplication" | ||
components: | ||
schemas: | ||
ListedApplication: | ||
properties: | ||
id: | ||
type: string | ||
title: Application id | ||
title: | ||
type: string | ||
title: Application title | ||
currentState: | ||
type: string | ||
title: Application state | ||
stateChangedAt: | ||
type: string | ||
format: date-time | ||
title: Status changed at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
connexion==3.0.5 | ||
uvicorn==0.27.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: Genomic Data Infrastructure | ||
|
||
SPDX-License-Identifier: Apache-2.0 |
Oops, something went wrong.