This file contains hidden or 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
FROM python:3.11.4-slim-bullseye | |
ENV PYTHONUNBUFFERED 1 | |
RUN sed -i s@/deb.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list \ | |
&& sed -i s@/security.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list \ | |
&& apt-get clean | |
RUN apt-get update \ | |
&& apt-get install -y default-libmysqlclient-dev build-essential pkg-config procps \ | |
git | |
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ \ | |
&& pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn |
This file contains hidden or 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
FROM python:3.11-slim-bookworm as base | |
WORKDIR /wheels | |
COPY ./requirements.txt . | |
RUN sed -i s@/deb.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list.d/debian.sources \ | |
&& apt-get clean | |
RUN apt-get update && \ | |
apt-get install -y \ | |
default-libmysqlclient-dev \ | |
libmariadb3 \ | |
gcc libjpeg-dev libpng-dev |
This file contains hidden or 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
[uwsgi] | |
chdir = /var/www/demo | |
module = demo.wsgi | |
master = true | |
processes = 5 | |
socket = 0.0.0.0:8080 | |
http = 0.0.0.0:8081 | |
vacuum = true |
This file contains hidden or 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
#!/bin/bash | |
# 1. create your volume at first. | |
docker volume create mysqldata | |
# 2. start the container | |
docker run -d \ | |
--restart=always \ | |
--name mysql8 \ | |
-v mysqldata:/var/lib/mysql \ | |
-e MYSQL_ROOT_PASSWORD=your_simple_password \ |
This file contains hidden or 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
FROM python:3.11.4-slim-bullseye | |
ENV PYTHONUNBUFFERED 1 | |
RUN sed -i s@/deb.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list \ | |
&& sed -i s@/security.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list \ | |
&& apt-get clean | |
RUN apt-get update \ | |
&& apt-get install -y default-libmysqlclient-dev build-essential pkg-config | |
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ \ | |
&& pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn | |
RUN pip install --no-cache-dir mysqlclient |
This file contains hidden or 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
{ | |
// 使用 IntelliSense 了解相关属性。 | |
// 悬停以查看现有属性的描述。 | |
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Current File", | |
"type": "python", | |
"request": "launch", |
This file contains hidden or 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
FROM python:3.7.9-slim-buster as base | |
WORKDIR /wheels | |
COPY ./requirements.txt . | |
RUN apt-get update && \ | |
apt-get install -y \ | |
default-libmysqlclient-dev \ | |
libmariadb3 \ | |
gcc | |
RUN pip install -U pip \ | |
&& pip install --no-cache-dir wheel \ |
This file contains hidden or 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
# coding: utf-8 | |
import logging | |
import yaml | |
import os | |
import string | |
from openpyxl import Workbook, load_workbook | |
logging.basicConfig(level=logging.DEBUG) |
This file contains hidden or 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
# coding: utf-8 | |
import warnings | |
import string | |
from openpyxl import Workbook, load_workbook | |
BLANK_LINES = 3 | |
class ExcelBook(object): |
This file contains hidden or 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
# -*- mode: python -*- | |
block_cipher = None | |
a = Analysis(['myproject\\manage.py'], | |
pathex=['D:\\GitHub\\django_samples\\django_pyinstaller_sample'], | |
binaries=[], | |
datas=[ | |
('myproject/templates', 'templates'), |
NewerOlder