diff --git a/.idea/runConfigurations/docker_compose_up_django__1_.xml b/.idea/runConfigurations/docker_compose_up_django__1_.xml
index 8d03be4..eb19763 100644
--- a/.idea/runConfigurations/docker_compose_up_django__1_.xml
+++ b/.idea/runConfigurations/docker_compose_up_django__1_.xml
@@ -3,6 +3,14 @@
+
+
+
+
+
+
+
+
@@ -14,4 +22,4 @@
-
\ No newline at end of file
+
diff --git a/.idea/runConfigurations/docker_compose_up_docs.xml b/.idea/runConfigurations/docker_compose_up_docs.xml
index 22f767f..7b8d1b8 100644
--- a/.idea/runConfigurations/docker_compose_up_docs.xml
+++ b/.idea/runConfigurations/docker_compose_up_docs.xml
@@ -6,11 +6,12 @@
+
-
+
-
\ No newline at end of file
+
diff --git a/compose/linode/django/Dockerfile b/compose/linode/django/Dockerfile
index 3511c3c..1e64607 100644
--- a/compose/linode/django/Dockerfile
+++ b/compose/linode/django/Dockerfile
@@ -13,13 +13,19 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages
build-essential \
# psycopg2 dependencies
- libpq-dev
+ libpq-dev \
+ # git
+ git \
+ # ssh
+ openssh-client
+
+RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan home.ascorrea.com >> ~/.ssh/known_hosts
# Requirements are installed here to ensure they will be cached.
COPY ./requirements .
# Create Python Dependency and Sub-Dependency Wheels.
-RUN pip wheel --wheel-dir /usr/src/app/wheels \
+RUN --mount=type=ssh,id=git_ssh_key pip wheel --wheel-dir /usr/src/app/wheels \
-r ${BUILD_ENVIRONMENT}.txt
@@ -41,16 +47,22 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libpq-dev \
# Translations dependencies
gettext \
- # cleaning up unused files
+ # ssh
+ openssh-client \
+ #git
+ git \
+ # cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
+RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan home.ascorrea.com >> ~/.ssh/known_hosts
+
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
# copy python dependency wheels from python-build-stage
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
# use wheels to install python dependencies
-RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
+RUN --mount=type=ssh,id=git_ssh_key pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
&& rm -rf /wheels/
COPY ./compose/production/django/entrypoint /entrypoint
diff --git a/compose/linode/docs/Dockerfile b/compose/linode/docs/Dockerfile
index 6f1bb8b..d9d9bd1 100644
--- a/compose/linode/docs/Dockerfile
+++ b/compose/linode/docs/Dockerfile
@@ -14,15 +14,19 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
# psycopg2 dependencies
libpq-dev \
- # cleaning up unused files
+ git \
+ openssh-client \
+ # cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
# Requirements are installed here to ensure they will be cached.
COPY ./requirements /requirements
+RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan home.ascorrea.com >> ~/.ssh/known_hosts
+
# create python dependency wheels
-RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels \
+RUN --mount=type=ssh,id=git_ssh_key pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels \
-r /requirements/local.txt -r /requirements/production.txt \
&& rm -rf /requirements
diff --git a/requirements/base.txt b/requirements/base.txt
index abbf650..10df357 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -5,7 +5,6 @@ argon2-cffi==21.3.0 # https://github.com/hynek/argon2_cffi
whitenoise==6.1.0 # https://github.com/evansd/whitenoise
redis==4.3.1 # https://github.com/redis/redis-py
hiredis==2.0.0 # https://github.com/redis/hiredis-py
-https://github.com/anthonyscorrea/pyteamsnap/archive/refs/heads/master.zip
# Django
# ------------------------------------------------------------------------------
@@ -17,7 +16,9 @@ django-crispy-forms==1.14.0 # https://github.com/django-crispy-forms/django-cri
crispy-bootstrap5==0.6 # https://github.com/django-crispy-forms/crispy-bootstrap5
django-redis==5.2.0 # https://github.com/jazzband/django-redis
-ssh://gituser@home.ascorrea.com/~/pyteamsnap.git#egg=pyteamsnap
-ssh://gituser@home.ascorrea.com/~/gamescrapyr.git#egg=gamescrapyr
+api-client
+
+-e git+ssh://gituser@home.ascorrea.com/~/pyteamsnap.git#egg=pyteamsnap
+-e git+ssh://gituser@home.ascorrea.com/~/gamescrapyr.git#egg=gamescrapyr
beautifulsoup4==4.11.1