-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from pacificclimate/i167-upgrade-python
I167 upgrade python
- Loading branch information
Showing
36 changed files
with
30,388 additions
and
59,408 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[bumpversion] | ||
current_version = 1.2.3 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:thunderbird/__version__.py] | ||
search = __version__ = "{current_version}" | ||
replace = __version__ = "{new_version}" | ||
|
||
[bumpversion:file:pyproject.toml] | ||
search = version = "{current_version}" | ||
replace = version = "{new_version}" | ||
|
||
[bumpversion:file:Dockerfile] | ||
search = Version="{current_version}" | ||
replace = Version="{new_version}" | ||
|
||
[bumpversion:file:.cruft.json] | ||
search = "version": "{current_version}" | ||
replace = "version": "{new_version}" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
DACCS_HOST="marble-dev01.pcic.uvic.ca" |
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 |
---|---|---|
|
@@ -78,7 +78,6 @@ src/ | |
|
||
# tests | ||
*.log | ||
*.lock | ||
testdata.json | ||
|
||
# IPython | ||
|
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 @@ | ||
HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt |
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,25 +1,19 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.10-slim | ||
|
||
LABEL Maintainer=https://github.com/pacificclimate/thunderbird Description="thunderbird WPS" Vendor="pcic" Version="1.2.3" | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV PIP_INDEX_URL="https://pypi.pacificclimate.org/simple/" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y cdo curl libhdf5-serial-dev netcdf-bin libnetcdf-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /tmp | ||
WORKDIR /tmp | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential cdo libhdf5-serial-dev netcdf-bin libnetcdf-dev && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
# this line combats the issue found here: | ||
# https://superuser.com/questions/1347723/arch-on-wsl-libqt5core-so-5-not-found-despite-being-installed | ||
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 && \ | ||
# Removing this package prevents a scan failure. It will be reintroduced | ||
# once 1.24.2 becomes available through the base image. | ||
# Issue link: https://github.com/advisories/GHSA-mh33-7rrq-662w | ||
apt-get remove -y python3-urllib3 && \ | ||
pip install -U pip && \ | ||
pip install . && \ | ||
pip install gunicorn | ||
RUN curl -sSL https://install.python-poetry.org | python3 - | ||
ENV PATH=/root/.local/bin:$PATH | ||
RUN poetry install | ||
|
||
EXPOSE 5000 | ||
CMD ["gunicorn", "--bind=0.0.0.0:5000", "thunderbird.wsgi:application"] | ||
CMD ["poetry", "run", "gunicorn", "-t 60", "--bind=0.0.0.0:5000", "thunderbird.wsgi:application"] |
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.