#geodesic (2020-07)

geodesic https://github.com/cloudposse/geodesic

Discussions related to https://github.com/cloudposse/geodesic

Archive: https://archive.sweetops.com/geodesic/

2020-07-02

Robert Horrox avatar
Robert Horrox

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
Erik Osterman (Cloud Posse)

You can run it locally by passing -l as first argument

Robert Horrox avatar
Robert Horrox

how would commands be run in codefresh then? Is it an ENV flag?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
cloudposse/geodesic

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
Erik Osterman (Cloud Posse)

Passing any args, overrides the default

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
cloudposse/geodesic

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
Erik Osterman (Cloud Posse)

You can also add files to init.d

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

In your own geodesic

Robert Horrox avatar
Robert Horrox

for codefresh then should the entrypoint be overriden

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Yes, I think that is what you want. Everything in profile.d is meant for interactive shells

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

I think what we did was use ATLANTIS_ENABLED which worked for us but might not work for you

Robert Horrox avatar
Robert Horrox

I see rootfs/etc/codefresh/require_vars is that historical or for current

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

I am on my phone / jumping on call in 5

Robert Horrox avatar
Robert Horrox

that just exports vars though

Robert Horrox avatar
Robert Horrox

no prob

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

I can zoom 30 min before status call

Robert Horrox avatar
Robert Horrox

we can sync later

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
cloudposse/testing.cloudposse.co

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
Erik Osterman (Cloud Posse)

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

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.

When did I run that command?attachment image

Update your Bash prompt with the command start time.

rcaloras/bash-preexec

preexec and precmd functions for Bash just like Zsh. - rcaloras/bash-preexec

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@Jeremy G (Cloud Posse) what do you think about this?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@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
Robert Horrox
12:22:54 PM

Sure, fair warning my prompt is a hodgepodge of oh my zsh plugins that don’t always play nice

joey avatar

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
Jeremy G (Cloud Posse)

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
Jeremy G (Cloud Posse)

If your prompt doesn’t update at all, that is a separate issue to fix.

2020-07-21

joey avatar

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.

    keyboard_arrow_up