Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions .ci/40-delivery/app.Dockerfile → .ci/40-delivery/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ RUN apt update && \
tee /etc/apt/sources.list.d/postgresql.list && \
apt update && \
apt install -y postgresql-client-15 && \
groupadd --system -g 1001 themaker \
&& useradd --system --create-home -g 1001 --no-user-group -u 1001 themaker
groupadd --system -g 1001 themaker && \
useradd --system --create-home -g 1001 --no-user-group -u 1001 themaker

WORKDIR /home/themaker

COPY dist/database_sync*.whl ./

RUN chown -R themaker:themaker /home/themaker

COPY ../../.venv .venv
RUN cp -r .venv/lib/*/site-packages/* /usr/local/lib/python3.10/site-packages && rm -rf .venv
RUN pip install --no-cache-dir database_sync*.whl && \
pip install --no-cache-dir psycopg2

USER themaker
RUN pip install --no-index database_sync*.whl \
&& pip install --force-reinstall psycopg2

ENTRYPOINT ["python", "-m", "database_sync"]
4 changes: 4 additions & 0 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
# checks: 'write' # code_check-style_golangci_lint
# contents: 'write' # delivery-release

permissions:
contents: read
packages: write

jobs:
default:
uses: 'rios0rios0/pipelines/.github/workflows/python-docker.yaml@main'
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Exceptions are acceptable depending on the circumstances (critical bug fixes tha

- fixed missing exclude table command for the id_seq of the table ignored
- fixed dropping the id_seq table for the ignored table
- fixed `Dockerfile` and CI `workflow` to support Docker image delivery step

### Removed

Expand Down