-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧refactor: Migrate to python 3.11 (#168)
* 🔧refactor: Migrate to python 3.11 * 🔧refactor: outputs * 🔧refactor: outputs symbol colors * 🔧refactor: outputs symbol colors update in place * 🔧refactor: deploy set pagination and search * 🔧refactor: add stack pagination and search * 🔧refactor: add pagination and search component js * 🔧refactor: add pagination and search component js for users * 🐛fix: edit deploy * 🐛fix: edit users * 🐛fix: add destroy for plan UI * 🔧refactor: stacks forms * 🔧refactor: stacks forms variables * 🔧refactor: Dockerfiles for use asdf and python3.11 * 🔧refactor: github action bump version
- Loading branch information
1 parent
4a62a93
commit df1936b
Showing
38 changed files
with
683 additions
and
488 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
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 @@ | ||
python 3.11.6 |
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,32 +1,54 @@ | ||
FROM ubuntu:22.04 | ||
MAINTAINER D10S0VSkY | ||
|
||
# Metadata | ||
MAINTAINER D10S0VSkY | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
ENV TZ=Europe/Madrid | ||
|
||
# Set up working directory | ||
WORKDIR /app | ||
ADD ./requirements.txt /app/requirements.txt | ||
|
||
# Create a user and group | ||
RUN groupadd --gid 10000 sld && \ | ||
useradd --uid 10000 --gid sld --shell /bin/bash --create-home sld | ||
useradd --uid 10000 --gid sld --shell /bin/bash --create-home sld | ||
|
||
# Set timezone | ||
RUN echo $TZ > /etc/timezone && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime | ||
|
||
|
||
# Install dependencies including build tools | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get upgrade -yq && \ | ||
apt-get -yq install \ | ||
python3.10 pip default-libmysqlclient-dev zip git tzdata && \ | ||
pip install --no-cache-dir -r requirements.txt | ||
apt-get update && \ | ||
apt-get -yq install curl git zip tzdata build-essential libssl-dev libffi-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev pkg-config libmysqlclient-dev | ||
|
||
RUN apt-get clean autoclean && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
|
||
# Install asdf, Python plugin, and Python version | ||
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0 && \ | ||
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc && \ | ||
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN . $HOME/.asdf/asdf.sh && \ | ||
asdf plugin add python && \ | ||
asdf install python 3.11.6 && \ | ||
asdf global python 3.11.6 | ||
|
||
|
||
# Install Python packages | ||
RUN . $HOME/.asdf/asdf.sh && \ | ||
python -m pip install --upgrade pip setuptools && \ | ||
python -m pip install --no-cache-dir -r requirements.txt | ||
|
||
# Clean up | ||
RUN apt-get clean autoclean && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log} | ||
|
||
# Add the rest of the application | ||
ADD . /app/ | ||
RUN chown -R sld /app | ||
|
||
# Switch to user | ||
USER sld |
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,68 +1,73 @@ | ||
aioredis==2.0.1 | ||
amqp==5.1.1 | ||
anyio==3.6.2 | ||
async-timeout==4.0.2 | ||
attrs==22.2.0 | ||
annotated-types==0.6.0 | ||
anyio==3.7.1 | ||
async-timeout==4.0.3 | ||
attrs==23.1.0 | ||
bcrypt==4.0.1 | ||
billiard==3.6.4.0 | ||
celery==5.2.7 | ||
certifi==2022.12.7 | ||
cffi==1.15.1 | ||
charset-normalizer==3.0.1 | ||
click==8.1.3 | ||
billiard==4.1.0 | ||
celery==5.3.4 | ||
certifi==2023.7.22 | ||
cffi==1.16.0 | ||
charset-normalizer==3.3.0 | ||
click==8.1.7 | ||
click-didyoumean==0.3.0 | ||
click-plugins==1.1.1 | ||
click-repl==0.2.0 | ||
croniter==1.3.8 | ||
cryptography==39.0.1 | ||
click-repl==0.3.0 | ||
croniter==2.0.1 | ||
cryptography==41.0.4 | ||
dependency-injector==4.41.0 | ||
Deprecated==1.2.13 | ||
dnspython==2.3.0 | ||
Deprecated==1.2.14 | ||
dnspython==2.4.2 | ||
ecdsa==0.18.0 | ||
email-validator==1.3.1 | ||
exceptiongroup==1.1.0 | ||
fastapi==0.91.0 | ||
email-validator==2.0.0.post2 | ||
exceptiongroup==1.1.3 | ||
fastapi==0.104.1 | ||
fastapi-limiter==0.1.5 | ||
fastapi-versioning==0.10.0 | ||
greenlet==2.0.2 | ||
greenlet==3.0.0 | ||
h11==0.14.0 | ||
idna==3.4 | ||
iniconfig==2.0.0 | ||
Jinja2==3.1.2 | ||
jmespath==1.0.1 | ||
kombu==5.2.4 | ||
MarkupSafe==2.1.2 | ||
mysqlclient==2.1.1 | ||
packaging==23.0 | ||
kombu==5.3.2 | ||
MarkupSafe==2.1.3 | ||
mysqlclient==2.2.0 | ||
packaging==23.2 | ||
passlib==1.7.4 | ||
password-strength==0.0.3.post2 | ||
pluggy==1.0.0 | ||
prompt-toolkit==3.0.36 | ||
pluggy==1.3.0 | ||
prompt-toolkit==3.0.39 | ||
py==1.11.0 | ||
pyasn1==0.4.8 | ||
pyasn1==0.5.0 | ||
pycparser==2.21 | ||
pydantic==1.10.4 | ||
pyhcl==0.4.4 | ||
PyJWT==2.6.0 | ||
PyMySQL==1.0.2 | ||
pyparsing==3.0.9 | ||
pytest==7.2.1 | ||
pydantic==2.4.2 | ||
pydantic-settings==2.0.3 | ||
pydantic_core==2.10.1 | ||
pyhcl==0.4.5 | ||
PyJWT==2.8.0 | ||
PyMySQL==1.1.0 | ||
pyparsing==3.1.1 | ||
pytest==7.4.2 | ||
python-dateutil==2.8.2 | ||
python-dotenv==1.0.0 | ||
python-jose==3.3.0 | ||
python-multipart==0.0.5 | ||
python-usernames==0.3.1 | ||
pytz==2022.7.1 | ||
redis==4.5.1 | ||
requests==2.28.2 | ||
python-multipart==0.0.6 | ||
python-usernames==1.0.0 | ||
pytz==2023.3.post1 | ||
redis==4.6.0 | ||
requests==2.31.0 | ||
rsa==4.9 | ||
six==1.16.0 | ||
sniffio==1.3.0 | ||
SQLAlchemy==2.0.3 | ||
starlette==0.24.0 | ||
SQLAlchemy==2.0.22 | ||
starlette==0.27.0 | ||
tomli==2.0.1 | ||
typing_extensions==4.4.0 | ||
urllib3==1.26.14 | ||
uvicorn==0.20.0 | ||
typing_extensions==4.8.0 | ||
tzdata==2023.3 | ||
urllib3==2.0.7 | ||
uvicorn==0.23.2 | ||
vine==5.0.0 | ||
wcwidth==0.2.6 | ||
wrapt==1.14.1 | ||
wcwidth==0.2.8 | ||
wrapt==1.15.0 |
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.