Wonder, what's the way around to mount .ssh from EFS into the gocd base container (from the image gocd/gocd-server:v22.3.0).
We have saved all our content into EFS under /godata and maps that into the container as /godata.
We are using gocd/gocd-server:v22.3.0.
It all runs good, mapping was fine too but just one thing that’s not happening is “.ssh” folder.
I have .ssh with all required keys in EFS under /godata and /godata within the container also has .ssh but not /go-working-dir.
Is that supported, am I mis-configuring it, or do we need to handle that outside of the base image ?
Many thanks in advance !
Many thanks in advance !
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CADKEDRrQOX11i951ZPiUYeOdMqThbCoZG7_WAqgBJFg1BxqxfQ%40mail.gmail.com.
"mountPoints": [
{
"sourceVolume": "
efs_id:/godata",
"containerPath": "/godata"
},
{
"sourceVolume": "
efs_id:/godata/.ssh",
"containerPath": "/home/go/.ssh"
}
],
```To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CANiY96aM47Ck0vc%3D1BnjnMd%2BT9eu4BKokLqLXMG0mNAezT2V_A%40mail.gmail.com.
Thank you Sriram.So, ".ssh" folder mounting will be separate from the rest of the data (/godata, for plugins, pipelines, db etc)...so there would be two separate mount points into the container ?I'm using ECS at the moment and not kubernetes, so my task definition will have two mount points like below:
```"mountPoints": [ { "sourceVolume": "
efs_id:/godata","containerPath": "/godata" }, { "sourceVolume": "
efs_id:/godata/.ssh",```"containerPath": "/home/go/.ssh" } ],
So mounting /godata and efs_id:/godata/.ssh from EFS into the container at /godata and /home/go/.ssh locations respectively (per above code) seems to work.In this case entry_point.sh from the base image is able to map/consider and execute them properly, hence the server is up and running and functioning properly.Is that the way it has to be, I think the github repo for gocd server says that I guess, but perhaps I feel that extra mount point just for .ssh is overkill and if .ssh can also be entertained by entry_point.sh from one single mount point /godata in my case, that would be great ?If I do not mount .ssh into /home/go/.ssh separately into the container - things seem to fail complaining that "key verification failed", I'm not sure whether I'm still missing something here.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CADKEDRoj%2BrFqeT%2B3%2BF_TYnOn6C03kTJyzDzdtChoDOEc_BWxzg%40mail.gmail.com.
Hi Satya,A possible workaround to the limitation is updating the server image and adding a symlink that points ~/.ssh/ to wherever you want to actually mount the data.I have never experimented with using a symlink for the .ssh directory, though, so this may not work.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/196247a2-32f4-473c-9fc5-9e709bc204a9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CANiY96bRFcLXgWRBf4G39DainuLM94b5JnN7bFPN3_YP10ToNg%40mail.gmail.com.