Skip to content
Commits on Source (7)
  • nimrod's avatar
    Update pre-commit hooks. · 6b84e342
    nimrod authored
    6b84e342
  • nimrod's avatar
    Is this all? · 40c8ba1f
    nimrod authored
    Pretty much the same as the python3 image but based on the manylinux2014
    image. The point is when building wheel (or binaries with Pyinstaller)
    it would be pretty portable to older distros.
    40c8ba1f
  • nimrod's avatar
    Rebase on UBI (Centos) 7. · 68bd31dd
    nimrod authored
    The manylinux image is building Python in a way that doesn't allow
    linking to libpython. That's reasonable for most cases, but Pyinstaller
    needs to bundle it for creating a single executable. Instead go for the
    base image and use the OS packaged Python.
    68bd31dd
  • nimrod's avatar
    Replace the UBI7 base with Centos7. · b829dca5
    nimrod authored
    I'm not sure why, but the build fails with an obscure message. For
    future reference, th build error is "could not resolve digest for
    registry.access.redhat.com/ubi7/ubi:latest" and in the dockerd log the
    error is "transport: Error while dialing only one connection allowed".
    b829dca5
  • nimrod's avatar
    Set the locale to UTF-8 for Python. · 9f0c0278
    nimrod authored
    9f0c0278
  • nimrod's avatar
    Add auditwheel. · 47e91cb2
    nimrod authored
    47e91cb2
  • nimrod's avatar
    Add build. · 43a8f448
    nimrod authored
    It's the new blessed wheel build tool.
    43a8f448
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: \.diff$
- repo: https://github.com/Yelp/detect-secrets
- repo: https://github.com/codespell-project/codespell.git
rev: v2.1.0
hooks:
- id: codespell
- repo: https://github.com/Yelp/detect-secrets.git
rev: v1.1.0
hooks:
- id: detect-secrets
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.1
- repo: https://gitlab.com/devopshq/gitlab-ci-linter.git
rev: v1.0.4
hooks:
- id: yamllint
- id: gitlab-ci-linter
args:
- "--server"
- https://git.shore.co.il
- repo: https://github.com/amperser/proselint/
- repo: https://github.com/amperser/proselint.git
rev: 0.10.2
hooks:
- id: proselint
types: [plain-text]
exclude: LICENSE
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat.git
rev: 0.7.4
rev: 0.7.10
hooks:
- id: mdformat
- repo: https://git.shore.co.il/nimrod/shell-pre-commit.git
rev: v0.6.0
- repo: https://github.com/pre-commit/pre-commit.git
rev: v2.15.0
hooks:
- id: shell-lint
- id: validate_manifest
- repo: https://git.shore.co.il/nimrod/pre-commit-hooks.git
rev: v0.2.0
hooks:
- id: shell-validate
- id: docker-compose
- repo: https://github.com/shellcheck-py/shellcheck-py.git
rev: v0.7.2.1
hooks:
- id: shellcheck
- repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/
rev: v0.3.0
- repo: https://github.com/AleksaC/hadolint-py.git
rev: v2.1.0
hooks:
- id: hadolint
- id: docker-compose
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.3
hooks:
- id: gitlab-ci-linter
args:
- "--server"
- https://git.shore.co.il
# hadolint ignore=DL3006
FROM registry.hub.docker.com/library/centos:7
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
# hadolint ignore=DL3013,DL3033
RUN yum group install -y "Development tools" && \
yum install -y \
python3-devel \
python3-pip \
python3-wheel \
&& \
yum clean all && \
pip3 install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir \
auditwheel \
build \
docutils \
pipenv \
poetry \
pygments \
pyinstaller \
tox \
twine \
wheel \
&& \
rm -rf /tmp/* /var/tmp/* ~/.cache/* /var/cache/yum/*