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

[Enhancement]: Add "Using Rancher Desktop" to the docs #1722

Closed
udf2457 opened this issue Oct 4, 2023 · 4 comments
Closed

[Enhancement]: Add "Using Rancher Desktop" to the docs #1722

udf2457 opened this issue Oct 4, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@udf2457
Copy link
Contributor

udf2457 commented Oct 4, 2023

Proposal

It is possible to use testcontainers with Rancher Desktop, with VZ and without administrative credentials, and the docs should reflect this.

HT to @pdrosos rancher-sandbox/rancher-desktop#2609 (comment)

Requirements are:

  1. An up-to-date version of Rancher Desktop (there were some key fixes to make this work somewhere around v1.6)
  2. Set VZ mode networking in Rancher Desktop (hence avoiding the need for giving Rancher sudo access)
  3. Change the default Rancher Desktop engine from containerd to dockerd (moby)
  4. Set the following env-vars:
export DOCKER_HOST=unix://$HOME/.rd/docker.sock
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
export TESTCONTAINERS_HOST_OVERRIDE=$(rdctl shell ip a show vznat | awk '/inet / {sub("/.*",""); print $2}')
@udf2457 udf2457 added the enhancement New feature or request label Oct 4, 2023
@eddumelendez
Copy link
Member

Hi @udf2457, In Testcontainers for Java we got this PR. Do you mind submitting the one for Testcontainers for Go?

@udf2457
Copy link
Contributor Author

udf2457 commented Oct 5, 2023

Since you ask so nicely @eddumelendez 😉 #1724

Although I would pass comment that perhaps some of the documentation (such as this) could be centralised in order to avoid duplication of common topics (such as this ... since setting up Rancher Desktop on Mac for Java is no different than for Go 😉).

@mdelapenya
Copy link
Collaborator

Closing because #1724 was already merged, thanks for your contributions!

@mdelapenya
Copy link
Collaborator

Although I would pass comment that perhaps some of the documentation (such as this) could be centralised in order to avoid duplication of common topics (such as this ... since setting up Rancher Desktop on Mac for Java is no different than for Go 😉).

You are totally right, and we have an internal project to converge all docs to a central place. Unfortunately, we are not there yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants