E-Love
02/07/2024, 6:07 PMHans D
02/07/2024, 8:49 PMHans D
02/07/2024, 8:51 PMJeremy G (Cloud Posse)
02/07/2024, 8:55 PMbash and its specific features and we have no plans to make it work under the POSIX Bourne shell.Erik Osterman (Cloud Posse)
02/08/2024, 1:27 PMdev-contiainer release.Erik Osterman (Cloud Posse)
02/08/2024, 1:27 PME-Love
02/08/2024, 6:29 PME-Love
02/08/2024, 6:31 PMHans D
02/08/2024, 7:00 PMHans D
02/08/2024, 7:02 PMErik Osterman (Cloud Posse)
02/08/2024, 8:36 PMHans D
02/09/2024, 12:54 PME-Love
02/09/2024, 3:07 PMJeremy White (Cloud Posse)
02/09/2024, 4:10 PMErik Osterman (Cloud Posse)
02/09/2024, 9:41 PME-Love
02/14/2024, 3:38 PMHans D
02/14/2024, 6:21 PMJeremy G (Cloud Posse)
02/14/2024, 7:13 PMJeremy G (Cloud Posse)
02/19/2024, 12:10 AMdevcontainer.json)
{
"name": "Geodesic Dev Container",
"image": "cloudposse/geodesic:2.9.0-debian",
"mounts": [
"source=${localEnv:HOME},target=/localhost,type=bind",
],
"appPort": ["12345:12345"],
"containerEnv": {
"SHELL": "/bin/bash",
"GEODESIC_PORT": "12345",
"GEODESIC_HOST_CWD": "${localWorkspaceFolder}",
"GEODESIC_WORKDIR": "${containerWorkspaceFolder}",
"LOCAL_HOME": "${localEnv:HOME}",
},
"remoteEnv": {
"LOGIN_SHELL": "/bin/bash"
},
"settings": {
"terminal.integrated.defaultProfile.linux": "/bin/bash"
},
}
Please let me know how it goes, or if you have other feedback.
NOTE: the mount of "source=${localEnv:HOME},target=/localhost is overkill and may cause performance issues, but it is what we currently do in Geodesic for the convenience of mounting all the dotfiles and dotdirectories in $HOME, so we can share configuration. You could pare it down to just the ones you want to use, but my personal list is kind of long:
.aws .bashrc.d .config .emacs.d .geodesic .kube .ssh .terraform.d
This also does not solve the problem for files like .bashrc or .inputrcE-Love
02/21/2024, 2:15 PMJeremy G (Cloud Posse)
02/21/2024, 2:31 PMgo development, a container with go is not that helpful because it doesn't persist all the downloaded modules. None of this is to say that dev containers are not helpful to somebody for something, I am only saying that I don't really get it yet.
Because I don't get it yet, I cannot confidently evaluate whether or not Geodesic's support of dev containers is good or not. So, I'm asking you to try it out and let me know if it works well for you, and if not, why not. I'm not really asking you to make the case for dev containers.
For example, the configuration I posted does not forward the SSH agent on the host. Do you care, or is that adequately handled by your IDE, or do you just not need it? For another example, the configuration assume that ${localEnv:HOME}/ contains configuration directories like .aws and .config. Does that work with remote workspaces? If not, what is the right way to import such configuration?E-Love
02/21/2024, 3:19 PMexec command to execute chezmoi (my dotfiles manager of choice), but I've been thinking there could be a way to build a postCreateCommand lifecycle script to do something similar.E-Love
02/21/2024, 3:23 PMgh CLI's command.Jeremy G (Cloud Posse)
02/21/2024, 3:35 PMJeremy G (Cloud Posse)
02/21/2024, 3:45 PMchezmoi has a Debian package, but not published in the Debian package repo. Maybe you can lobby them for that, then you can easily install it in Geodesic using apt-get.E-Love
02/21/2024, 3:50 PM.deb would work in the meantimeE-Love
02/21/2024, 4:05 PMJeremy G (Cloud Posse)
02/21/2024, 4:08 PME-Love
02/21/2024, 4:10 PMJeremy G (Cloud Posse)
02/21/2024, 4:13 PME-Love
02/21/2024, 4:14 PMHans D
02/21/2024, 5:16 PMJeremy G (Cloud Posse)
02/21/2024, 5:31 PMatmos and terraform (and maybe kubectl if you're using Kubernetes) on your choice of Linux.Hans D
02/21/2024, 6:57 PM