Skip to content

Commit 9043d38

Browse files
authored
v1.2.0
version 1.2.0
2 parents f375dc7 + 98e110e commit 9043d38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2283
-1503
lines changed

.dockerignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
*.pyc
2+
*.pyo
3+
*.mo
4+
*.db
5+
*.css.map
6+
*.egg-info
7+
*.sql.gz
8+
.cache
9+
.project
10+
.idea
11+
.pydevproject
12+
.idea/workspace.xml
13+
.DS_Store
14+
.git/
15+
.sass-cache
16+
.vagrant/
17+
__pycache__
18+
dist
19+
docs
20+
env
21+
venv
22+
logs
23+
src/{{ project_name }}/settings/local.py
24+
src/node_modules
25+
web/media
26+
web/static/CACHE
27+
stats
28+
Dockerfile
29+
LabCourse/local_settings.py

.github/workflows/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Sync Repo to GitLab
2+
3+
on:
4+
push
5+
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: keninkujovic/[email protected]
11+
with:
12+
gitlab_url: ${{ secrets.GITLAB_URL }}
13+
username: ${{ secrets.USERNAME }}
14+
gitlab_pat: ${{ secrets.GITLAB_PAT }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
build:
2+
stage: build
3+
image:
4+
name: gcr.io/kaniko-project/executor:v1.14.0-debug
5+
entrypoint: [""]
6+
script:
7+
- /kaniko/executor
8+
--context "${CI_PROJECT_DIR}"
9+
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
10+
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
11+
--destination "${CI_REGISTRY_IMAGE}:latest"
12+
rules:
13+
- if: $CI_COMMIT_TAG

Dockerfile

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
FROM python:3.7-slim AS compile-image
2-
RUN apt-get update \
3-
&& apt-get install -y build-essential libmariadbclient-dev-compat \
4-
&& rm -rf /var/lib/apt/lists/*
5-
COPY requirements.txt .
6-
RUN pip install --user -r requirements.txt
1+
FROM python:3.12-slim-bookworm
72

8-
FROM python:3.7-slim
3+
ENV \
4+
POETRY_NO_INTERACTION=1 \
5+
POETRY_VIRTUALENVS_CREATE=false \
6+
POETRY_CACHE_DIR='/var/cache/pypoetry' \
7+
POETRY_HOME='/usr/local' \
8+
OPENBLAS_NUM_THREADS=1
9+
10+
# install package
911
RUN apt-get update \
10-
&& apt-get install -y mariadb-client \
12+
&& apt-get install -y curl \
1113
&& rm -rf /var/lib/apt/lists/*
12-
COPY --from=compile-image /root/.local /root/.local
13-
ENV PATH=/root/.local/bin:$PATH
14+
15+
# poetry
16+
RUN curl -sSL https://install.python-poetry.org | python3 -
17+
18+
# Copy only requirements to cache them in docker layer
1419
WORKDIR /weather
15-
COPY . /weather/
20+
COPY poetry.lock pyproject.toml /weather/
21+
22+
# Project initialization:
23+
RUN poetry install --no-root --no-interaction --no-ansi
24+
25+
# copy all
26+
COPY . /weather
27+
1628
CMD gunicorn --bind 0.0.0.0:8002 --workers=6 --threads=3 --worker-class=gthread pyobs_weather.wsgi

docs/source/stations/current.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/source/stations/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ List of weather station classes
55
:maxdepth: 2
66

77
average
8-
current
98
mcdlocke
109
mcdlockearchive
1110
mcdtelnet

0 commit comments

Comments
 (0)