Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
Dockerfiles
Commits
449c05f4
Commit
449c05f4
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Pre-commit updates and fixes.
- New, updated or migrated pre-commit hooks. - Fix found issues.
parent
ab57a8b1
No related branches found
No related tags found
No related merge requests found
Pipeline
#2203
passed
3 years ago
Stage: .pre
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pre-commit-config.yaml
+33
-14
33 additions, 14 deletions
.pre-commit-config.yaml
cgit/README.md
+1
-1
1 addition, 1 deletion
cgit/README.md
sshd/Dockerfile
+2
-0
2 additions, 0 deletions
sshd/Dockerfile
with
36 additions
and
15 deletions
.pre-commit-config.yaml
+
33
−
14
View file @
449c05f4
---
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks.git
rev
:
v
3.
4.0
rev
:
v4.0
.1
hooks
:
-
id
:
check-added-large-files
-
id
:
check-executables-have-shebangs
-
id
:
check-json
-
id
:
check-merge-conflict
-
id
:
check-shebang-scripts-are-executable
-
id
:
check-symlinks
-
id
:
check-toml
-
id
:
check-xml
-
id
:
check-yaml
-
id
:
detect-private-key
-
id
:
end-of-file-fixer
-
id
:
trailing-whitespace
exclude
:
.
\.diff$
exclude
:
\.diff$
-
repo
:
https://github.com/Yelp/detect-secrets
-
repo
:
https://github.com/codespell-project/codespell.git
rev
:
v2.1.0
hooks
:
-
id
:
codespell
-
repo
:
https://github.com/Yelp/detect-secrets.git
rev
:
v1.1.0
hooks
:
-
id
:
detect-secrets
-
repo
:
https://git
hu
b.com/
adrienverge/yamllin
t
rev
:
v1.
26.1
-
repo
:
https://git
la
b.com/
devopshq/gitlab-ci-linter.gi
t
rev
:
v1.
0.4
hooks
:
-
id
:
yamllint
-
id
:
gitlab-ci-linter
args
:
-
"
--server"
-
https://git.shore.co.il
-
repo
:
https://github.com/amperser/proselint
/
-
repo
:
https://github.com/amperser/proselint
.git
rev
:
0.10.2
hooks
:
-
id
:
proselint
types
:
[
plain-text
]
exclude
:
LICENSE
-
repo
:
https://github.com/adrienverge/yamllint.git
rev
:
v1.26.3
hooks
:
-
id
:
yamllint
-
repo
:
https://github.com/executablebooks/mdformat.git
rev
:
0.7.
4
rev
:
0.7.
9
hooks
:
-
id
:
mdformat
-
repo
:
https://git.shore.co.il/nimrod/
shell-
pre-commit.git
rev
:
v0.
6
.0
-
repo
:
https://git.shore.co.il/nimrod/pre-commit
-hooks
.git
rev
:
v0.
1
.0
hooks
:
-
id
:
shell-
lint
-
id
:
shell-
validate
-
repo
:
https://github.com/shellcheck-py/shellcheck-py.git
rev
:
v0.7.2.1
hooks
:
-
id
:
shellcheck
-
repo
:
https://git
.shore.co.il/nimrod/docker-pre-commit
.git
/
rev
:
v
0.3
.0
-
repo
:
https://git
hub.com/AleksaC/hadolint-py
.git
rev
:
v
2.1
.0
hooks
:
-
id
:
hadolint
-
id
:
docker-compose
This diff is collapsed.
Click to expand it.
cgit/README.md
+
1
−
1
View file @
449c05f4
...
...
@@ -7,7 +7,7 @@ cgit container image.
This container runs Apache that is configured with cgit at
`/cgit`
. It exposes
port 80 and serves the repositories under
`/srv/git`
. The container runs as
a limited user (
`www-data`
), so make sure to have the content of
`/srv/git`
readble by it. Also, if you wish to persist the cache, the location is
read
a
ble by it. Also, if you wish to persist the cache, the location is
`/var/cache/cgit`
.
## Example
...
...
This diff is collapsed.
Click to expand it.
sshd/Dockerfile
+
2
−
0
View file @
449c05f4
ARG
BASEIMAGE=debian:testing-slim
# hadolint ignore=DL3006
FROM
${BASEIMAGE}
# hadolint ignore=DL3008
RUN
apt-get update
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
netcat-openbsd
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment