Skip to content

Commit 69c97bf

Browse files
authored
docs: improve principal README.md with doc (#16)
1 parent 347c092 commit 69c97bf

File tree

7 files changed

+330
-45
lines changed

7 files changed

+330
-45
lines changed

CONTRIBUTING.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents**
4+
5+
- [Contributing](#contributing)
6+
- [Pull Request Process](#pull-request-process)
7+
- [pre-commit](#pre-commit)
8+
- [Code of Conduct](#code-of-conduct)
9+
- [Our Pledge](#our-pledge)
10+
- [Our Standards](#our-standards)
11+
- [Our Responsibilities](#our-responsibilities)
12+
- [Scope](#scope)
13+
- [Enforcement](#enforcement)
14+
- [Attribution](#attribution)
15+
16+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
17+
18+
# Contributing
19+
20+
When contributing to this repository, please first discuss the change you wish to make via issue,
21+
email, or any other method with the owners of this repository before making a change.
22+
23+
Please note we have a code of conduct, please follow it in all your interactions with the project.
24+
25+
## Pull Request Process
26+
27+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
28+
build.
29+
2. Update the README.md with details of changes to the interface, this includes new environment
30+
variables, exposed ports, useful file locations and container parameters.
31+
3. Increase the version numbers in any examples files and the README.md to the new version that this
32+
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
33+
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
34+
do not have permission to do that, you may request the second reviewer to merge it for you.
35+
36+
## pre-commit
37+
38+
This repo leverage [pre-commit](https://pre-commit.com) to lint, secure, document the codebase. The [pre-commit](https://pre-commit.com) configuration require the following dependencies installed locally:
39+
- [pre-commit](https://pre-commit.com/#install)
40+
- [golangci-lint](https://golangci-lint.run/usage/install/#local-installation)
41+
42+
**One first repo download, to install the pre-commit hooks it's necessary execute the following command**:
43+
```
44+
pre-commit install
45+
```
46+
47+
**To run the hooks at will it's necessary execute the following command**:
48+
```
49+
pre-commit run -a
50+
```
51+
52+
## Code of Conduct
53+
54+
### Our Pledge
55+
56+
In the interest of fostering an open and welcoming environment, we as
57+
contributors and maintainers pledge to making participation in our project and
58+
our community a harassment-free experience for everyone, regardless of age, body
59+
size, disability, ethnicity, gender identity and expression, level of experience,
60+
nationality, personal appearance, race, religion, or sexual identity and
61+
orientation.
62+
63+
### Our Standards
64+
65+
Examples of behavior that contributes to creating a positive environment
66+
include:
67+
68+
* Using welcoming and inclusive language
69+
* Being respectful of differing viewpoints and experiences
70+
* Gracefully accepting constructive criticism
71+
* Focusing on what is best for the community
72+
* Showing empathy towards other community members
73+
74+
Examples of unacceptable behavior by participants include:
75+
76+
* The use of sexualized language or imagery and unwelcome sexual attention or
77+
advances
78+
* Trolling, insulting/derogatory comments, and personal or political attacks
79+
* Public or private harassment
80+
* Publishing others' private information, such as a physical or electronic
81+
address, without explicit permission
82+
* Other conduct which could reasonably be considered inappropriate in a
83+
professional setting
84+
85+
### Our Responsibilities
86+
87+
Project maintainers are responsible for clarifying the standards of acceptable
88+
behavior and are expected to take appropriate and fair corrective action in
89+
response to any instances of unacceptable behavior.
90+
91+
Project maintainers have the right and responsibility to remove, edit, or
92+
reject comments, commits, code, wiki edits, issues, and other contributions
93+
that are not aligned to this Code of Conduct, or to ban temporarily or
94+
permanently any contributor for other behaviors that they deem inappropriate,
95+
threatening, offensive, or harmful.
96+
97+
### Scope
98+
99+
This Code of Conduct applies both within project spaces and in public spaces
100+
when an individual is representing the project or its community. Examples of
101+
representing a project or community include using an official project e-mail
102+
address, posting via an official social media account, or acting as an appointed
103+
representative at an online or offline event. Representation of a project may be
104+
further defined and clarified by project maintainers.
105+
106+
### Enforcement
107+
108+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
109+
reported by contacting the project team at [email protected]. All
110+
complaints will be reviewed and investigated and will result in a response that
111+
is deemed necessary and appropriate to the circumstances. The project team is
112+
obligated to maintain confidentiality with regard to the reporter of an incident.
113+
Further details of specific enforcement policies may be posted separately.
114+
115+
Project maintainers who do not follow or enforce the Code of Conduct in good
116+
faith may face temporary or permanent repercussions as determined by other
117+
members of the project's leadership.
118+
119+
### Attribution
120+
121+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
122+
available at [http://contributor-covenant.org/version/1/4][version]
123+
124+
[homepage]: http://contributor-covenant.org
125+
[version]: http://contributor-covenant.org/version/1/4/

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ RUN export CGO_ENABLED=0 \
88
&& go build -o dist/helm-repo-updater .
99

1010
FROM alpine:3.14
11-
RUN wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.14.1/yq_linux_amd64 \
12-
&& chmod +x /usr/local/bin/yq
11+
ENV SSH_KNOWN_HOSTS="~/.ssh/known_hosts"
12+
RUN apk update && apk add openssh
13+
RUN mkdir -p ~/.ssh/
14+
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts
1315
COPY hack/ /usr/local/bin/
1416
COPY --from=builder /go/src/build/dist/ .
1517

0 commit comments

Comments
 (0)