Skip to content

Commit

Permalink
#546 chore: moved the django and fastapi libraries into the common im…
Browse files Browse the repository at this point in the history
…ages folder, removed the django and fastapi alpine images
  • Loading branch information
zsinnema committed Aug 10, 2022
1 parent 7467b39 commit ec408f0
Show file tree
Hide file tree
Showing 47 changed files with 19 additions and 695 deletions.
18 changes: 0 additions & 18 deletions infrastructure/common-images/cloudharness-django-debian/Dockerfile

This file was deleted.

This file was deleted.

17 changes: 10 additions & 7 deletions infrastructure/common-images/cloudharness-django/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG CLOUDHARNESS_BASE
FROM $CLOUDHARNESS_BASE
ARG CLOUDHARNESS_BASE_DEBIAN
FROM $CLOUDHARNESS_BASE_DEBIAN

ENV MODULE_NAME=backend
ENV PORT=8080
Expand All @@ -8,11 +8,14 @@ ENV APP_DIR=/usr/src/app

ENV PRODUCTION=true

COPY libraries/cloudharness-django /libraries/cloudharness-django
RUN apt install -y libjpeg-dev zlib1g-dev git

RUN python3 -m pip install --upgrade pip

COPY libraries/fastapi/requirements.txt /tmp

RUN apk add jpeg-dev zlib-dev git && \
python3 -m pip install --upgrade pip && \
python3 -m pip install -r /tmp/requirements.txt && \
python3 -m pip install -e /libraries/cloudharness-django --no-cache-dir --upgrade && \
RUN python3 -m pip install -r /tmp/requirements.txt && \
rm /tmp/requirements.txt

COPY libraries/cloudharness-django /libraries/cloudharness-django
RUN python3 -m pip install -e /libraries/cloudharness-django --no-cache-dir --upgrade
2 changes: 1 addition & 1 deletion infrastructure/common-images/cloudharness-django/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# CloudHarness-Django Base image
# CloudHarness-Django Base Debian image

Use this image to bring the package cloudharness-django into your image.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions infrastructure/common-images/cloudharness-fastapi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG CLOUDHARNESS_BASE
FROM $CLOUDHARNESS_BASE
ARG CLOUDHARNESS_BASE_DEBIAN
FROM $CLOUDHARNESS_BASE_DEBIAN

ENV MODULE_NAME=backend
ENV PORT=8080
Expand All @@ -8,5 +8,5 @@ ENV APP_DIR=/usr/src/app

COPY libraries/fastapi/requirements.txt /tmp
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -r /tmp/requirements.txt && \
python3 -m pip install -r /tmp/requirements.txt --no-cache-dir && \
rm /tmp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# CloudHarness-FastAPI Base image
# CloudHarness-FastAPI Base Debian image

Use this image for FastAPI based microservices.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fastapi==0.77.1
fastapi-code-generator==0.3.5
uvicorn==0.17.6

This file was deleted.

This file was deleted.

Empty file.
49 changes: 0 additions & 49 deletions libraries/cloudharness-django/cloudharness_django/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/cloudharness-django/cloudharness_django/apps.py

This file was deleted.

16 changes: 0 additions & 16 deletions libraries/cloudharness-django/cloudharness_django/exceptions.py

This file was deleted.

This file was deleted.

Empty file.
20 changes: 0 additions & 20 deletions libraries/cloudharness-django/cloudharness_django/models.py

This file was deleted.

Loading

0 comments on commit ec408f0

Please sign in to comment.