Skip to content
Snippets Groups Projects
Commit f739ea4a authored by nimrod's avatar nimrod
Browse files

Quite a few updates.

- pre-commit.
- Address a few issued from pre-commit.
- GitLab CI.
- License.
- Stricter .dockerignore.
- Add contact info to README.
- Personal registry.
parent abb0608e
No related branches found
No related tags found
No related merge requests found
Pipeline #626 passed
.git/ *
README* !entrypoint
*.swp
---
include:
- project: shore/ci-templates
file: templates/pre-commit.yml
- project: shore/ci-templates
file: templates/docker.yml
stages:
- test
- build
- deploy
variables:
IMAGE: resolver
build:
extends: .docker-build-shore
tags: [ns4.shore.co.il]
push:
extends: .docker-push-shore
tags: [ns4.shore.co.il]
---
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
FROM alpine:latest FROM alpine:3.13
# hadolint ignore=DL3018
RUN echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \ RUN echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
echo '@community http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \ echo '@community http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
apk add --update --no-cache \ apk add --update --no-cache \
......
MIT License
Copyright (c) 2021 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.
# Resolver # Resolver
[![pipeline status](https://git.shore.co.il/nimrod/resolver/badges/master/pipeline.svg)](https://git.shore.co.il/nimrod/resolver/-/commits/master)
Testing DNS with a clean cache resolver. More info at Testing DNS with a clean cache resolver. More info at
https://www.shore.co.il/blog/resolver/. https://www.shore.co.il/blog/resolver/.
## Usage ## Usage
docker run --rm -it adarnimrod/resolver ```
docker run --rm -it registry.shore.co.il/resolver
```
## License
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/>.
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
set -eux set -eux
kresd --addr '127.0.0.1' --noninteractive & kresd --addr '127.0.0.1' --noninteractive &
echo 'nameserver 127.0.0.1' > /etc/resolv.conf echo 'nameserver 127.0.0.1' > /etc/resolv.conf
eval "exec gosu nobody:nobody $@" eval exec gosu nobody:nobody "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment