Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOP-11711] Run tests in github actions #3

Merged
merged 124 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
9cc31ae
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 26, 2024
bbf1949
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 26, 2024
ea0866d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 26, 2024
844eb3d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 26, 2024
aeff3c6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 26, 2024
9c2e410
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 26, 2024
40f4642
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
aaf86c2
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
759cbe4
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
0723272
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
7f5daed
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
9ec4a4b
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
ac248d3
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
baf7e86
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
4901131
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
6a4012d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
1a0870b
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
09ac789
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
d8486ca
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
3afca7f
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
fb8299e
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
b0a8e64
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
2ff6fcd
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
114289d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
59928bd
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
fd778ce
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
502d7c5
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
d92b18c
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
835acf0
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
a20dd8a
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
6bac7ba
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
756a0ce
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
e8e4937
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
b72c58a
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
257bdd4
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
d560d87
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 27, 2024
ae33b7d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
1d7685b
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
4c7820e
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
dd67181
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
8117d14
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
2556359
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
2ec5172
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
3a802d5
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
dfc0316
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
c65c862
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
3e66726
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
0be74f6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
9023a9b
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
a2c1160
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
5c7d7e6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
51870c5
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
f6bf18c
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
51bcdd0
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
68b3ad1
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
4d9fe31
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
3f3ce37
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
a830d17
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
4b257a2
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
6cc55e4
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
67afef8
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
26a80f3
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
d02813a
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
359f555
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
652ce2e
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
15f9ada
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
476a760
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
458cb7f
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
56ebf55
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
6a0165e
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
c06b5b6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
a46473a
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
529fb5e
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 28, 2024
6b58257
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
4fe2516
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
c13f212
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
98942bd
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
fd906ee
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
bb480cd
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
6f84e0a
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
962c468
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
3aa0d6d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
8e0ce02
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
a8df922
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
a9f5157
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
eca6ace
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
1120622
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
b785aa0
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
086b312
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
3f65cf2
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
48332f0
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
96996aa
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
6629b4d
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
98e1699
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
491ba4b
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
e4c8a0f
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
3d78f18
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
4b8b5cb
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
07b7084
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
8c96f00
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
9433349
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
8ebe9d8
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
7fc39d6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
32e900b
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
8524689
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
394ed03
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
d0c48c1
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
7909d82
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
5aef182
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
07087c6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
7178a6f
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
cc23b4c
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
f84f882
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
edfd5ef
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
c8fd31e
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
077b17c
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
87b4196
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
de4b790
[DOP-11711] Run tests in github actions
dmitry-pedchenko Feb 29, 2024
6574823
[DOP-11711] Run tests in github actions
dmitry-pedchenko Mar 1, 2024
2ee3739
[DOP-11711] Run tests in github actions
dmitry-pedchenko Mar 1, 2024
0d7cec6
[DOP-11711] Run tests in github actions
dmitry-pedchenko Mar 1, 2024
649ed37
[DOP-11711] Run tests in github actions
dmitry-pedchenko Mar 1, 2024
7341593
[DOP-11711] Run tests in github actions
dmitry-pedchenko Mar 1, 2024
4f4b771
[DOP-11711] Run tests in github actions
dmitry-pedchenko Mar 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Docker image

on:
push:
branches:
- develop
pull_request:
branches-ignore:
- master
workflow_dispatch:

jobs:
build-backend:
name: Build backend image
runs-on: ubuntu-latest
if: github.repository == 'MobileTeleSystems/syncmaster' # prevent running on forks

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Checkout code
uses: actions/checkout@v4

- name: Build Backend image
uses: docker/build-push-action@v5
with:
context: .
file: docker/backend.dockerfile
dolfinus marked this conversation as resolved.
Show resolved Hide resolved
cache-to: type=gha,mode=max
cache-from: type=gha
provenance: mode=max
build-worker:
dolfinus marked this conversation as resolved.
Show resolved Hide resolved
name: Build worker image
runs-on: ubuntu-latest
if: github.repository == 'MobileTeleSystems/syncmaster' # prevent running on forks

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Checkout code
uses: actions/checkout@v4

- name: Build Backend image
uses: docker/build-push-action@v5
with:
context: .
file: docker/worker.dockerfile
cache-to: type=gha,mode=max
cache-from: type=gha
provenance: mode=max
22 changes: 17 additions & 5 deletions docker/backend.dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
FROM sregistry.mts.ru/bigdata/platform/docker-images/python:3.11-slim
FROM python:3.11-slim

RUN microdnf install java-17-openjdk libnghttp2-1.33.0-3.el8_2.1 # fix version https://github.com/nghttp2/nghttp2/issues/2003
RUN apt-get update && apt-get install -y \
libkrb5-dev \
libsasl2-dev \
libsasl2-modules-gssapi-mit \
libsasl2-modules-ldap \
libsasl2-modules \
libssl-dev \
libldap2-dev \
autoconf \
gcc \
g++ \
make \
libnghttp2-dev \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir --timeout 3 --retries 3 poetry \
&& poetry config virtualenvs.create false

WORKDIR /syncmaster

COPY ./pyproject.toml ./poetry.lock* /syncmaster/
RUN poetry export -f requirements.txt --with backend,dev,test --output /syncmaster/requirements.txt \
--without-hashes --with-credentials --without-urls \
&& pip install --timeout 5 --retries 5 --no-cache-dir -r /syncmaster/requirements.txt
RUN poetry install --no-root --with backend,dev,test
dolfinus marked this conversation as resolved.
Show resolved Hide resolved

COPY ./syncmaster/ /syncmaster/

Expand Down
31 changes: 21 additions & 10 deletions docker/worker.dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
FROM sregistry.mts.ru/bigdata/platform/docker-images/python:3.11-slim as prod

RUN microdnf install java-17-openjdk libnghttp2-1.33.0-3.el8_2.1 # fix version https://github.com/nghttp2/nghttp2/issues/2003
RUN microdnf install telnet # for debugging in pdb

RUN pip install --no-cache-dir --timeout 3 --retries 3 poetry \
&& poetry config virtualenvs.create false
FROM python:3.11-slim as prod

RUN apt-get update && apt-get install -y \
libkrb5-dev \
libsasl2-dev \
libsasl2-modules-gssapi-mit \
libsasl2-modules-ldap \
libsasl2-modules \
libssl-dev \
libldap2-dev \
autoconf \
gcc \
g++ \
make \
libnghttp2-dev \
libffi-dev \
telnetd \
&& rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir --timeout 3 --retries 3 poetry && poetry config virtualenvs.create false

WORKDIR /syncmaster

COPY ./pyproject.toml ./poetry.lock* /syncmaster/
RUN poetry export -f requirements.txt --with worker --output /syncmaster/requirements.txt \
--without-hashes --with-credentials --without-urls \
&& pip install --timeout 5 --retries 5 --no-cache-dir -r /syncmaster/requirements.txt
RUN poetry install --no-root --with worker

COPY ./syncmaster/ /syncmaster/

Expand Down