#geodesic (2020-07)
Discussions related to https://github.com/cloudposse/geodesic
Archive: https://archive.sweetops.com/geodesic/
2020-07-02
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
How is Geodesic meant to be used in CI pipelines, eg: codefresh. I can’t seem to run the image locally without it trying to output the install template script or when I try to change the command to anything else it give me a “cannot execute binary file” error
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
You can run it locally by passing -l as first argument
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
how would commands be run in codefresh then? Is it an ENV flag?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Here’s the gist of it https://github.com/cloudposse/geodesic/blob/master/Dockerfile#L238
Geodesic is a cloud automation shell. It's the fastest way to get up and running with a rock solid, production grade cloud platform built on top of strictly Open Source tools. ★ this repo! h…
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Passing any args, overrides the default
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Geodesic is a cloud automation shell. It's the fastest way to get up and running with a rock solid, production grade cloud platform built on top of strictly Open Source tools. ★ this repo! h…
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
You can also add files to init.d
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
In your own geodesic
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
for codefresh then should the entrypoint be overriden
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Yes, I think that is what you want. Everything in profile.d is meant for interactive shells
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
I think what we did was use ATLANTIS_ENABLED which worked for us but might not work for you
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
I see rootfs/etc/codefresh/require_vars is that historical or for current
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
I am on my phone / jumping on call in 5
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
that just exports vars though
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
no prob
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
I can zoom 30 min before status call
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
we can sync later
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Example Terraform Reference Architecture that implements a Geodesic Module for an Automated Testing Organization in AWS - cloudposse/testing.cloudposse.co
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
This is not currently used by us, but you get get some ideas. Used this for a demo a while back.
2020-07-20
![joey avatar](https://secure.gravatar.com/avatar/9647cc34c02f9ce3bb4df4a6309335e8.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0005-72.png)
i was going back to add something like https://redandblack.io/blog/2020/bash-prompt-with-updating-time/ maybe with https://github.com/rcaloras/bash-preexec to my geodesic-like container and i thought maybe i could just copy pasta. feature request pls.
preexec and precmd functions for Bash just like Zsh. - rcaloras/bash-preexec
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
@Jeremy G (Cloud Posse) what do you think about this?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
@Robert Horrox can you share a screenshot of your prompt? I recall really liking it. it also used the righthand side of the screen for extra real estate.
![Robert Horrox avatar](https://avatars.slack-edge.com/2020-06-15/1182949442165_e37a3c7f7c7baa32cbcb_72.jpg)
Sure, fair warning my prompt is a hodgepodge of oh my zsh plugins that don’t always play nice
![joey avatar](https://secure.gravatar.com/avatar/9647cc34c02f9ce3bb4df4a6309335e8.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0005-72.png)
i stumbled upon thinking about these things today as my prompt doesn’t update and it’s been nagging me but i haven’t yet found great examples so if anyone has pointers that’d be awesome
![Jeremy G (Cloud Posse) avatar](https://avatars.slack-edge.com/2020-07-04/1229022582372_22757dbc9ef96d371614_72.jpg)
Seems kind of excessive to me. We already get into situations where the prompt takes on the order of a second to compute, which I find unacceptably slow. Not sure what the point is anyway. We already have (optionally) timestamped history:
⨠ history 5
602 2020-07-21 06:20:13: cd account-map/
603 2020-07-21 06:20:22: make gbl-root.plan
604 2020-07-21 06:20:47: make apply
605 2020-07-21 06:35:37: h
606 2020-07-21 06:35:52: history 5
Isn’t that enough?
![Jeremy G (Cloud Posse) avatar](https://avatars.slack-edge.com/2020-07-04/1229022582372_22757dbc9ef96d371614_72.jpg)
If your prompt doesn’t update at all, that is a separate issue to fix.
2020-07-21
![joey avatar](https://secure.gravatar.com/avatar/9647cc34c02f9ce3bb4df4a6309335e8.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0005-72.png)
i generally agree that it’s not absolutely critical - i haven’t had it to this point. i’ll let you know what i end up with.