Loading .gitlab-ci.yml +3 −6 Original line number Diff line number Diff line --- test: image: alpine:3.12 before_script: - apk add --update docker bats script: - bats . include: - project: shore/ci-templates file: templates/bats.yml .pre-commit-config.yaml 0 → 100644 +48 −0 Original line number Diff line number Diff line --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks.git rev: v3.4.0 hooks: - id: check-added-large-files - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks - 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/executablebooks/mdformat.git rev: 0.5.3 hooks: - id: mdformat - repo: https://git.shore.co.il/nimrod/shell-pre-commit.git rev: v0.6.0 hooks: - id: shell-lint - repo: https://github.com/shellcheck-py/shellcheck-py.git rev: v0.7.1.1 hooks: - id: shellcheck - repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/ rev: v0.3.0 hooks: - id: hadolint - id: docker-compose Dockerfile +2 −0 Original line number Diff line number Diff line ARG image # hadolint ignore=DL3006 FROM ${image} # hadolint ignore=DL3018,DL4001 RUN apk add --update --no-cache openssl || true && \ wget https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 || \ curl -fsSL https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 -o gosu-amd64 && \ Loading README.md +8 −8 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ [](https://git.shore.co.il/nimrod/docker-runas-test/-/commits/master) > A test suite for the runas Docker entrypoint. See [here](https://www.shore.co.il/blog/docker_uid/) for more info. > See [here](https://www.shore.co.il/blog/docker_uid/) for more info. ## Requirements Loading @@ -13,7 +13,7 @@ See [here](https://www.shore.co.il/blog/docker_uid/) for more info. ## Usage ``` bats test.bats bats tests/ ``` ## License Loading @@ -22,7 +22,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`). ## Author Information Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( https://www.shore.co.il/). Patches are welcome via [`git send-email`]( http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located at: <https://git.shore.co.il/explore/>. Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website](https://www.shore.co.il/). Patches are welcome via [`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located at: <https://git.shore.co.il/expore/>. test.bats→tests/test.bats +0 −0 File moved. View file Loading
.gitlab-ci.yml +3 −6 Original line number Diff line number Diff line --- test: image: alpine:3.12 before_script: - apk add --update docker bats script: - bats . include: - project: shore/ci-templates file: templates/bats.yml
.pre-commit-config.yaml 0 → 100644 +48 −0 Original line number Diff line number Diff line --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks.git rev: v3.4.0 hooks: - id: check-added-large-files - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks - 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/executablebooks/mdformat.git rev: 0.5.3 hooks: - id: mdformat - repo: https://git.shore.co.il/nimrod/shell-pre-commit.git rev: v0.6.0 hooks: - id: shell-lint - repo: https://github.com/shellcheck-py/shellcheck-py.git rev: v0.7.1.1 hooks: - id: shellcheck - repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/ rev: v0.3.0 hooks: - id: hadolint - id: docker-compose
Dockerfile +2 −0 Original line number Diff line number Diff line ARG image # hadolint ignore=DL3006 FROM ${image} # hadolint ignore=DL3018,DL4001 RUN apk add --update --no-cache openssl || true && \ wget https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 || \ curl -fsSL https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 -o gosu-amd64 && \ Loading
README.md +8 −8 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ [](https://git.shore.co.il/nimrod/docker-runas-test/-/commits/master) > A test suite for the runas Docker entrypoint. See [here](https://www.shore.co.il/blog/docker_uid/) for more info. > See [here](https://www.shore.co.il/blog/docker_uid/) for more info. ## Requirements Loading @@ -13,7 +13,7 @@ See [here](https://www.shore.co.il/blog/docker_uid/) for more info. ## Usage ``` bats test.bats bats tests/ ``` ## License Loading @@ -22,7 +22,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`). ## Author Information Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( https://www.shore.co.il/). Patches are welcome via [`git send-email`]( http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located at: <https://git.shore.co.il/explore/>. Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website](https://www.shore.co.il/). Patches are welcome via [`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located at: <https://git.shore.co.il/expore/>.