Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: update Lima example #5588

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

Merged
merged 4 commits into from
Jan 5, 2023
Merged

chore: update Lima example #5588

merged 4 commits into from
Jan 5, 2023

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Jan 5, 2023

  • Updates Ubuntu base image used by Lima example
  • Makes Docker socket usable by Lima user without sudo inside VM
  • Updates access URL of Coder deployment to host.lima.internal

@johnstcn johnstcn requested review from mafredri and mtojek January 5, 2023 10:55
@johnstcn johnstcn self-assigned this Jan 5, 2023
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

It's unfortunate we have to open up the docker socket globally, but I couldn't figure out a much better way either.

I guess we could do chown lima on it and have the chmod be chmod og+rwx. It would be slightly more restricted and docker group would work as previously.

@@ -81,6 +87,8 @@ provision:
usermod -aG docker coder
# Ensure coder listens on all interfaces
sed -i 's/CODER_ADDRESS=.*/CODER_ADDRESS=0.0.0.0:3000/' /etc/coder.d/coder.env
# Also set the access URL to host.lima.internal for fast deployments
sed -i 's#CODER_ACCESS_URL=.*#CODER_ACCESS_URL=http://host.lima.internal:3000#' /etc/coder.d/coder.env
Copy link
Member

Choose a reason for hiding this comment

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

Does this make the other change unnecessary? The one where we do:

sed -i 's/host.lima.internal.*/host.lima.internal host.docker.internal/' /etc/hosts

Copy link
Member Author

Choose a reason for hiding this comment

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

Does this make the other change unnecessary? The one where we do:

sed -i 's/host.lima.internal.*/host.lima.internal host.docker.internal/' /etc/hosts

I'm not sure, but I'd prefer to keep the alias for host.docker.internal around regardless.

@johnstcn johnstcn merged commit e6b17b6 into main Jan 5, 2023
@johnstcn johnstcn deleted the cj/update-lima-example branch January 5, 2023 11:47
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants