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 .pre-commit-config.yaml 0 → 100644 +25 −0 Original line number Diff line number Diff line # vim:ff=unix ts=2 sw=2 ai expandtab --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.2.3 hooks: - id: check-added-large-files - id: check-merge-conflict - id: detect-private-key - id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint rev: v1.16.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://www.shore.co.il/git/docker-pre-commit rev: v0.3.0 hooks: - id: hadolint - id: dockerfile-lint Dockerfile 0 → 100644 +37 −0 Original line number Diff line number Diff line ARG Version="1.5.0" ARG AlpineVersion="3.10" FROM alpine:$AlpineVersion as builder # hadolint ignore=DL3018 RUN apk add --update --no-cache \ autoconf \ automake \ bison \ build-base \ flex \ libev-dev \ openssl-dev ARG Version ENV VERSION="$Version" # Tar fails without an error in Docker Hub but succeeds on my laptop. For now # ignore the error as the build is fine even with it. RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \ tar -vxzf "${VERSION}.tar.gz" || true WORKDIR /hitch-${Version} ENV LDFLAGS="--static" RUN ./bootstrap && \ ./configure && \ make && \ make install FROM alpine:$AlpineVersion # hadolint ignore=DL3018 RUN apk add --update --no-cache ca-certificates tini netcat-openbsd openssl COPY --from=builder /usr/local/sbin/hitch /usr/local/sbin/ ARG Version ENV VERSION="$Version" RUN [ "$(hitch --version)" = "hitch $VERSION" ] ENTRYPOINT ["tini", "--", "hitch"] HEALTHCHECK CMD pgrep hitch || exit 1 LABEL Name="Hitch" LABEL Version="${Version}" LICENSE.txt 0 → 100644 +21 −0 Original line number Diff line number Diff line MIT License Copyright (c) 2019 Adar Nimrod Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 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
.pre-commit-config.yaml 0 → 100644 +25 −0 Original line number Diff line number Diff line # vim:ff=unix ts=2 sw=2 ai expandtab --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.2.3 hooks: - id: check-added-large-files - id: check-merge-conflict - id: detect-private-key - id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint rev: v1.16.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://www.shore.co.il/git/docker-pre-commit rev: v0.3.0 hooks: - id: hadolint - id: dockerfile-lint
Dockerfile 0 → 100644 +37 −0 Original line number Diff line number Diff line ARG Version="1.5.0" ARG AlpineVersion="3.10" FROM alpine:$AlpineVersion as builder # hadolint ignore=DL3018 RUN apk add --update --no-cache \ autoconf \ automake \ bison \ build-base \ flex \ libev-dev \ openssl-dev ARG Version ENV VERSION="$Version" # Tar fails without an error in Docker Hub but succeeds on my laptop. For now # ignore the error as the build is fine even with it. RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \ tar -vxzf "${VERSION}.tar.gz" || true WORKDIR /hitch-${Version} ENV LDFLAGS="--static" RUN ./bootstrap && \ ./configure && \ make && \ make install FROM alpine:$AlpineVersion # hadolint ignore=DL3018 RUN apk add --update --no-cache ca-certificates tini netcat-openbsd openssl COPY --from=builder /usr/local/sbin/hitch /usr/local/sbin/ ARG Version ENV VERSION="$Version" RUN [ "$(hitch --version)" = "hitch $VERSION" ] ENTRYPOINT ["tini", "--", "hitch"] HEALTHCHECK CMD pgrep hitch || exit 1 LABEL Name="Hitch" LABEL Version="${Version}"
LICENSE.txt 0 → 100644 +21 −0 Original line number Diff line number Diff line MIT License Copyright (c) 2019 Adar Nimrod Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.