Loading .dockerignore 0 → 100644 +1 −0 Original line number Diff line number Diff line * .gitignore 0 → 100644 +49 −0 Original line number Diff line number Diff line ~* *~ *.sw[op] *.py[cod] .DS_Store __pycache__/ .vagrant/ vendor/ Thumbs.db *.retry .svn/ .sass-cache/ *.log *.out *.so node_modules/ .npm/ nbproject/ *.ipynb .idea/ *.egg-info/ *.[ao] .classpath .cache/ bower_components/ *.class *.[ewj]ar secring.* .*.kate-swp .swp.* .directory .Trash-* build/ _build/ dist/ .tox/ *.pdf *.exe *.dll *.gz *.tgz *.tar *.rar *.zip *.pid *.lock *.env .bundle/ !Pipfile.lock .gitlab-ci.yml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- include: - project: shore/ci-templates file: templates/pre-commit.yml - project: shore/ci-templates file: templates/docker.yml stages: - test - build - deploy build: extends: .docker-build-shore push: extends: .docker-push .pre-commit-config.yaml 0 → 100644 +82 −0 Original line number Diff line number Diff line --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-toml files: Pipfile - id: trailing-whitespace - repo: https://github.com/Yelp/detect-secrets rev: v0.14.3 hooks: - id: detect-secrets - repo: https://github.com/adrienverge/yamllint rev: v1.25.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint/ rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - id: black args: - | --line-length=79 - repo: https://github.com/PyCQA/prospector rev: 1.3.1 hooks: - id: prospector args: - |- --max-line-length=79 - |- --with-tool=pyroma - |- --with-tool=bandit - |- --without-tool=pep257 - |- --doc-warnings - |- --test-warnings - |- --full-pep8 - |- --strictness=high - |- --no-autodetect additional_dependencies: - bandit - pyroma - repo: https://gitlab.com/pycqa/flake8.git rev: 3.8.4 hooks: - id: flake8 args: - |- --doctests additional_dependencies: - flake8-bugbear - repo: https://github.com/executablebooks/mdformat.git rev: 0.5.3 hooks: - id: mdformat - repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/ rev: v0.3.0 hooks: - id: hadolint Dockerfile 0 → 100644 +27 −0 Original line number Diff line number Diff line FROM registry.hub.docker.com/library/python:3.9-slim-buster as wheels # hadolint ignore=DL3008,DL3015 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ build-essential \ libldap2-dev \ libsasl2-dev \ ; WORKDIR /wheels RUN python3 -m pip wheel https://github.com/python-ldap/python-ldap/releases/download/python-ldap-3.3.1/python-ldap-3.3.1.tar.gz FROM registry.hub.docker.com/library/python:3.9-slim-buster # hadolint ignore=DL3008 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ libldap-2.4-2 \ libsasl2-2 \ && \ rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* COPY --from=wheels /wheels/*.whl /wheels/ RUN pip install /wheels/*.whl # hadolint ignore=DL3013 RUN pip install --no-cache-dir \ flask \ flask-ldap \ gunicorn \ ; Loading
.gitignore 0 → 100644 +49 −0 Original line number Diff line number Diff line ~* *~ *.sw[op] *.py[cod] .DS_Store __pycache__/ .vagrant/ vendor/ Thumbs.db *.retry .svn/ .sass-cache/ *.log *.out *.so node_modules/ .npm/ nbproject/ *.ipynb .idea/ *.egg-info/ *.[ao] .classpath .cache/ bower_components/ *.class *.[ewj]ar secring.* .*.kate-swp .swp.* .directory .Trash-* build/ _build/ dist/ .tox/ *.pdf *.exe *.dll *.gz *.tgz *.tar *.rar *.zip *.pid *.lock *.env .bundle/ !Pipfile.lock
.gitlab-ci.yml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- include: - project: shore/ci-templates file: templates/pre-commit.yml - project: shore/ci-templates file: templates/docker.yml stages: - test - build - deploy build: extends: .docker-build-shore push: extends: .docker-push
.pre-commit-config.yaml 0 → 100644 +82 −0 Original line number Diff line number Diff line --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-toml files: Pipfile - id: trailing-whitespace - repo: https://github.com/Yelp/detect-secrets rev: v0.14.3 hooks: - id: detect-secrets - repo: https://github.com/adrienverge/yamllint rev: v1.25.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint/ rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - id: black args: - | --line-length=79 - repo: https://github.com/PyCQA/prospector rev: 1.3.1 hooks: - id: prospector args: - |- --max-line-length=79 - |- --with-tool=pyroma - |- --with-tool=bandit - |- --without-tool=pep257 - |- --doc-warnings - |- --test-warnings - |- --full-pep8 - |- --strictness=high - |- --no-autodetect additional_dependencies: - bandit - pyroma - repo: https://gitlab.com/pycqa/flake8.git rev: 3.8.4 hooks: - id: flake8 args: - |- --doctests additional_dependencies: - flake8-bugbear - repo: https://github.com/executablebooks/mdformat.git rev: 0.5.3 hooks: - id: mdformat - repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/ rev: v0.3.0 hooks: - id: hadolint
Dockerfile 0 → 100644 +27 −0 Original line number Diff line number Diff line FROM registry.hub.docker.com/library/python:3.9-slim-buster as wheels # hadolint ignore=DL3008,DL3015 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ build-essential \ libldap2-dev \ libsasl2-dev \ ; WORKDIR /wheels RUN python3 -m pip wheel https://github.com/python-ldap/python-ldap/releases/download/python-ldap-3.3.1/python-ldap-3.3.1.tar.gz FROM registry.hub.docker.com/library/python:3.9-slim-buster # hadolint ignore=DL3008 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ libldap-2.4-2 \ libsasl2-2 \ && \ rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* COPY --from=wheels /wheels/*.whl /wheels/ RUN pip install /wheels/*.whl # hadolint ignore=DL3013 RUN pip install --no-cache-dir \ flask \ flask-ldap \ gunicorn \ ;