im a geodesic noob. how does one run it ? ```dock...
# geodesic
r
im a geodesic noob. how does one run it ?
Copy code
docker run -it cloudposse/geodesic
docker run -it cloudposse/geodesic bash
both fail
e
Oh, so when you run it with no arguments it outputs a bash script installer
Run it like docker | bash
(On my phone
The result is a script is installed that helps you start it since running long Docker commands is no fun
If you just want to kick the tires and skip installation, then add -l
r
ah ok now it works. ya i just wanted to try it out
👍 1
e
Copy code
docker run -it cloudposse/geodesic -l
The way we use it is as a base Docker image for our customers
We also have Debian and CentOS images
We like to mount $HOME to /localhost so we can access files during development (e.g. tf)
r
you dont mount it to /conf the root
$HOME
?
e
No...
r
oh i see i see. got it working
Copy code
docker run -v "$HOME:/localhost" -it cloudposse/geodesic -l
e
Conf is where we copy the configurations for distribution in the Docker file that is FROM geodesic
All of these tools are easily installed. We update every night automatically
r
hmmm
Copy code
⨠ aws-vault exec sso_sre --server
Enter passphrase to unlock /conf/.awsvault/keys/:
Enter passphrase to unlock /conf/.awsvault/keys/:
Enter passphrase to unlock /conf/.awsvault/keys/:
aws-vault: error: exec: fork/exec : no such file or directory
thanks for the help. i'll keep playing with it
e
I think we do some symlinking for that
r
ya i was trying to use the same profiles i have setup locally
e
Check out /etc/profile.d
That should work
r
i can see my profiles when doing
aws-vault list
e
Aha are you on a Mac?
r
lol. yessir
e
So I think you need to use the vault backend of file for it to work across OS barriers
Docker cannot access keychain
🤔 1
r
Used
Copy code
docker run --env AWS_VAULT_BACKEND=file -v "$HOME:/localhost" -it cloudposse/geodesic -l
then
Copy code
⨠ env | grep AWS_VAULT
AWS_VAULT_SERVER_ENABLED=false
AWS_VAULT_BACKEND=file
AWS_VAULT_ENABLED=false
 ⧉  geodesic
 √ . [default] ~ ⨠ aws-vault exec sso_sre --server
Enter passphrase to unlock /conf/.awsvault/keys/:
aws-vault: error: exec: fork/exec : no such file or directory
this seems to work tho
Copy code
aws-vault exec sso_sre -- aws sts get-caller-identity
Enter passphrase to unlock /conf/.awsvault/keys/:

{
    "UserId": "snip",
    "Account": "snip",
    "Arn": "snip"
}
e
@Jeremy G (Cloud Posse) may know
j
Copy code
aws-vault exec --server sso_sre -- /bin/bash -l