Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update contributor docs #633

Merged
merged 18 commits into from
Jun 14, 2024

Conversation

MiahaCybersec
Copy link
Contributor

  • Adds steps to set up a local dev environment
  • Fixes dead links/references

@MiahaCybersec
Copy link
Contributor Author

Should some of these changes be made to the Copa install docs as well?

Copy link
Contributor

@ashnamehrotra ashnamehrotra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@ashnamehrotra ashnamehrotra self-requested a review May 23, 2024 20:22
@ashnamehrotra
Copy link
Contributor

Should some of these changes be made to the Copa install docs as well?

I think its okay to leave it in one place! But could we also update https://project-copacetic.github.io/copacetic/website/contributing? it looks like the two weren't in sync with each other

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

Comment on lines 47 to 59
If running Copa gives you the following error:

```bash
Error: could not use docker driver: failed to solve: requested experimental feature mergeop has been disabled on the build server: only enabled with containerd image store backend
requested experimental feature diffop has been disabled on the build server: only enabled with containerd image store backend
missing required buildkit functionality
could not use buildx driver: listing workers for Build: failed to list workers: Unavailable: connection error: desc = "transport: Error while dialing: open /home/gitpod/.docker/buildx/current: no such file or directory"
could not use buildkitd driver: %!w(<nil>)
```

#### Personalizing user settings in a dev container
You will need to [enable containerd image store support](https://docs.docker.com/storage/containerd/) within Docker Engine.

VSCode supports applying your user settings, such as your `.gitconfig`, to a dev container through the use of [dotfiles repositories](https://code.visualstudio.com/docs/remote/containers#_personalizing-with-dotfile-repositories). This can be done through your own VSCode `settings.json` file without changing the dev container image or configuration.
> Note: Docker can eat up your disk space. If you find that your storage is rapidly being taken up after working with Copa, run `docker system prune`. This will prune all unused images, containers and caches. Running this command will not break anything. This is an issue with Docker, not with Copa.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add this to the FAQ section instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the error from lines 47-55, it looks like this is already mentioned in the quick start docs. I've removed the error from my PR so we don't repeat the same information.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also remove it from the CONTRIBUTING.md file to keep it consistent?

> ```bash
> sudo chown -R vscode:vscode /workspace/copacetic
> ```
Copacetic requires Docker for patching some images. To install Docker, follow the [Docker installation guide](https://docs.docker.com/engine/install/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Copacetic requires Docker for patching some images. To install Docker, follow the [Docker installation guide](https://docs.docker.com/engine/install/).
Copacetic requires Docker for patching images. To install Docker, follow the [Docker installation guide](https://docs.docker.com/engine/install/).

@@ -13,6 +13,10 @@ Copa is not capable of patching vulnerabilities for compiled languages, like Go,

To patch vulnerabilities for applications, you can package these applications and consume them from package repositories, like `http://archive.ubuntu.com/ubuntu/` for Ubuntu, and ensure Trivy can scan and report vulnerabilities for these packages. This way, Copa can patch the applications as a whole, though it cannot patch specific modules within the applications.

## My disk space is being filled up after using Copa. How can I fix this?

This is due to Copa's reliance on Docker, which can eat up your disk space. If you find that your storage is rapidly being taken up after working with Copa, run `docker system prune`. This will prune all unused images, containers and caches. Running this command will not break anything. This is an issue with Docker, not with Copa.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is due to Copa's reliance on Docker, which can eat up your disk space. If you find that your storage is rapidly being taken up after working with Copa, run `docker system prune`. This will prune all unused images, containers and caches. Running this command will not break anything. This is an issue with Docker, not with Copa.
If you find that your storage is rapidly being taken up after working with Copa, run `docker system prune`. This will prune all unused images, containers and caches.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this last night. The requested change has been pushed.

@MiahaCybersec
Copy link
Contributor Author

Sorry about that! I tried to get the PR done right before work. Everything should be good to go now.

Signed-off-by: Miaha <[email protected]>
This project has adopted the [CNCF Code of Conduct](../../CODE_OF_CONDUCT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this link should be fine? I think only the links in CONTRIBUTING.md were broken

Copy link
Contributor Author

@MiahaCybersec MiahaCybersec Jun 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like I missed this while I was making the requested changes. Good catch!

Taking a look at the contributor docs on the website, they haven't been updated in over a year and do not appear to match the CNCF code of conduct. What approach would be best to update the code of conduct on the website? Should we be linking directly to the CNCF code of conduct, or copying and pasting the CNCF code of conduct into the markdown file shown on the website?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the website, it looks like we had copy pasted it, so we can do that to update it to the latest

@ashnamehrotra
Copy link
Contributor

LGTM, waiting on DCO fix

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@sozercan sozercan merged commit 394526a into project-copacetic:main Jun 14, 2024
11 checks passed
@MiahaCybersec MiahaCybersec deleted the contributor-docs branch June 15, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants