Commit 7134346c authored by nimrod's avatar nimrod
Browse files

Added Docker pre-commit hooks.

- hadolint and docker-compose config.
- Fix what hadolint complained about.
parent 20935d94
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,3 +25,8 @@ repos:
    hooks:
      - id: shell-lint
      - id: shellcheck
  - repo: https://www.shore.co.il/git/docker-pre-commit
    rev: v0.1.0
    hooks:
      - id: hadolint
      - id: docker-compose
+4 −4
Original line number Diff line number Diff line
FROM debian:sid-slim
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        ca-certificates \
        ldap-account-manager\
        patch \
        wget \
        ca-certificates=20190110 \
        ldap-account-manager=6.7-1 \
        patch=2.7.6-4 \
        wget=1.20.1-1.1 \
    && \
    chmod 755 /var/log/apache2 && \
    ln -sf /dev/stdout /var/log/apache2/access.log && \
+4 −4
Original line number Diff line number Diff line
FROM debian:stretch-slim
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        ca-certificates \
        gosu \
        libnss-ldapd \
        libpam-ldapd \
        ca-certificates=20161130+nmu1+deb9u1 \
        gosu=1.10-1+b2 \
        libnss-ldapd=0.9.7-2+deb9u1 \
        libpam-ldapd=0.9.7-2+deb9u1 \
    && \
    mkdir -p /run/nslcd && \
    chown -R nslcd:nslcd /run/nslcd/ && \
+3 −3
Original line number Diff line number Diff line
@@ -2,9 +2,9 @@ FROM debian:stretch-slim
RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/sources.list.d/backports.list && \
    apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        gnutls-bin \
        ldap-utils \
        slapd \
        gnutls-bin=3.5.8-5+deb9u4 \
        ldap-utils=2.4.44+dfsg-5+deb9u2 \
        slapd=2.4.44+dfsg-5+deb9u2 \
    && \
    mkdir -p /run/slapd && \
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*