-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix routing from most specific to least for manifests views * add check that manifest is not draft before saving to RCRAInfo * refactor CreateManifestView so that all logic is moved into our business logic and it now saves to the database if just a draft or launches a task and saves to RCRAInfo if not a draft * revert docker and local virtual environment to python 3.11 until python 3.12 is fully supported by Celery * refactor sync rcrainfo manifest services and tasks * refactor site services for pulling rcra sites from rcrainfo * update HandlerSearchView to follow styleguide and use class internal serializer, switch DRF exception handling to match-case * Cache all GET api views for at least 15 minutes * misc service method renames and add waste_services for retrieving waste information * add service function for getting DOT shipping information (hazard class, ID Numbers, Shipping name) * add examples for DOT option lookup views * move test_handler_service to sites app * update test suite and conform quicker sign related function signatures * add test for waste service functions for retrieveing DOT lookup infromation * add unit test for ManifestService._filter_mtn method * remove python 3.10 from supported versions
- Loading branch information
1 parent
aaaa460
commit 14c77cd
Showing
33 changed files
with
496 additions
and
393 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
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,19 +1,16 @@ | ||
# Builder | ||
FROM python:3.11.2-alpine3.17 as builder | ||
FROM python:3.11.6-alpine3.18 as builder | ||
LABEL maintainer="[email protected]" | ||
# Starting environment varibles | ||
ENV APP_DIRECTORY=/app/ | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
WORKDIR $APP_DIRECTORY | ||
COPY requirements.txt ./ | ||
RUN mkdir $APP_DIRECTORY/static | ||
RUN mkdir $APP_DIRECTORY/media | ||
# Setup virtual environment and install dependencies | ||
RUN python -m venv /opt/venv \ | ||
&& /opt/venv/bin/pip install --upgrade pip \ | ||
&& /opt/venv/bin/pip install --no-cache-dir --quiet -r requirements.txt | ||
# Copy app into image working directory | ||
COPY . . | ||
ENV VIRTUAL_ENV="/opt/venv" | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
|
@@ -27,7 +24,6 @@ RUN python manage.py makemigrations && \ | |
python manage.py loaddata dev_data.yaml | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] | ||
|
||
|
||
# Production | ||
FROM builder as production | ||
EXPOSE 8000 | ||
|
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
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
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
Oops, something went wrong.