Verified Commit 54a176bf authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add Postfix image resources

parents
Loading
Loading
Loading
Loading

.editorconfig

0 → 100644
+11 −0
Original line number Diff line number Diff line
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2

.gitignore

0 → 100644
+5 −0
Original line number Diff line number Diff line
# Python cache
*.pyc

# tools' cache
/.*cache/

.gitlint

0 → 100644
+7 −0
Original line number Diff line number Diff line
[general]
ignore=body-trailing-whitespace,body-is-missing

[author-valid-email]
regex=.*@[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9])+

# vim:ft=cfg
+90 −0
Original line number Diff line number Diff line
default_stages: [commit]
repos:

- repo: meta
  hooks:
  - id: check-hooks-apply
  - id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.5.0
  hooks:
  - id: check-added-large-files
  - id: check-case-conflict
  - id: check-merge-conflict
  - id: check-toml
  - id: check-yaml
  - id: debug-statements
  - id: destroyed-symlinks
  - id: end-of-file-fixer
    stages: [commit, manual]
  - id: fix-byte-order-marker
  - id: fix-encoding-pragma
    args: [--remove]
  - id: mixed-line-ending
    args: [--fix=lf]
    stages: [commit, manual]
  - id: trailing-whitespace
    exclude_types: [markdown, plain-text]
    stages: [commit, manual]

- repo: https://github.com/jorisroovers/gitlint
  rev: v0.15.1
  hooks:
  - id: gitlint

- repo: https://code.kodo.org.uk/dom/pre-commit-hooks
  rev: v0.6.1
  hooks:
  - id: check-executable-modes
  - id: check-for-squash
  - id: protect-first-parent

- repo: https://github.com/pre-commit/pygrep-hooks
  rev: v1.10.0
  hooks:
  - id: python-no-eval
  - id: python-no-log-warn
  - id: python-use-type-annotations

- repo: https://github.com/hakancelikdev/unimport
  rev: 1.2.1
  hooks:
  - id: unimport
    args: [--remove]
    types: []
    types_or: [python, pyi]
    additional_dependencies: [libcst >=0.4.0]
    stages: [commit, manual]

- repo: https://github.com/pycqa/isort
  rev: 5.13.2
  hooks:
  - id: isort
    stages: [commit, manual]

- repo: https://github.com/asottile/add-trailing-comma
  rev: v3.1.0
  hooks:
  - id: add-trailing-comma
    types: []
    types_or: [python, pyi]
    stages: [commit, manual]

- repo: https://github.com/flakeheaven/flakeheaven
  rev: 3.3.0
  hooks:
  - id: flakeheaven
    additional_dependencies:
    - flake8-bugbear
    - flake8-docstrings
    - flake8-print
    - flake8-return
    - flake8-sfs
    - pydocstyle[toml]

- repo: https://github.com/pre-commit/mirrors-mypy
  rev: v1.8.0
  hooks:
  - id: mypy
    args: [--follow-imports=silent]

Dockerfile

0 → 100644
+14 −0
Original line number Diff line number Diff line
FROM debian:bookworm

LABEL org.opencontainers.image.title="Postfix"
LABEL org.opencontainers.image.description="A popular internet MTA implementing SMTP"
LABEL org.opencontainers.image.authors="Dom Sekotill <dom.sekotill@kodo.org.uk>"
LABEL org.opencontainers.image.source="https://code.kodo.org.uk/docker/postfix"
LABEL org.opencontainers.image.licenses="(EPL-2.0 OR IPL-1.0)"

ARG POSTFIX_VERSION=">=3.7.10,<<3.7.11"
RUN --mount=source=install.bash,target=/install /install "${POSTFIX_VERSION}"

COPY master.cf /etc/postfix/
COPY entrypoint.py /bin/entrypoint
ENTRYPOINT ["/bin/entrypoint"]