Code Monkey home page Code Monkey logo

Comments (8)

schnie avatar schnie commented on May 31, 2024 1

@rbradk So for now, without any further CLI modifications, they can follow the steps I listed above (edited to show <release_name>).

Would you agree @cwurtz?

from astronomer.

schnie avatar schnie commented on May 31, 2024 1

If @cwurtz gives a thumbs up, then I think we just point them to their own CI/CD tools docs. There really shouldn't be anything Astro specific here, just standard docker stuff.

from astronomer.

schnie avatar schnie commented on May 31, 2024

@rbradk the details will differ between CI/CD products, but at a high level, the process is basically the same.

  1. Install the astronomer platform, using EE docs. One component of the installation is a private docker registry. The registry is exposed at registry.baseDomain, where baseDomain is the domain the user launched the platform at. When new images are pushed to this registry, they get deployed to the cluster (this is how the CLI works under the hood).
  2. Set up a CI/CD pipeline using whatever tool you'd like. Most tools will have some sort of documentation on how to trigger the pipeline from an event from github, like a new tag/release, or push to a branch. In this pipeline, after any tests have been executed, you just need to run a few docker commands. A couple examples:

Images should be tagged with this format registry.baseDomain/<release_name>/airflow:<version>, and the user/password will be generated when the platform is initially installed.

@andscoop @tedmiston @cwurtz feel free to add anything to this.

from astronomer.

cwurtz avatar cwurtz commented on May 31, 2024

Probably be best to have them download the CLI in their CI build as the registry is currently password protected, and will eventually have checks if the user has permission to deploy. They can do:

astro auth login -d {their domain}
astro airflow deploy {release_name}

Where {their domain} is their base domain, and {release_name} is their kubernetes release name. The CLI will handle the rest.

edit:
Actually thinking about it, we'll need to modify the CLI so the username/pass can be passed to the CLI via a flag, as now it prompts for that info

from astronomer.

tedmiston avatar tedmiston commented on May 31, 2024

We have a customer in Slack who has started down the path of running it on CircleCI already. I spoke with him about a few weeks ago. (Omitting the name here since this repo is public.)

Edit: I just sent him a follow up message to see how it went and if there any pain points.

from astronomer.

tedmiston avatar tedmiston commented on May 31, 2024

I just started a branch for CI deploy docs with some basic information.

https://github.com/astronomerio/astronomer-ee/compare/ci-deploy

Here's what I wrote so far:

Deploy via CI/CD

You can deploy DAGs with continuous integration / continuous deployment via the Astronomer CLI.

While this guide focuses on CircleCI, a similar setup can be accomplished using Travis CI, Jenkins, Codeship, TeamCity, GitLab CI/CD, or any other CI/CD system.

For background information and best practices on CI/CD, we recommend reading the article An Introduction to CI/CD Best Practices from DigitalOcean.

TODO: copy discussion from #75

...

If we all agree, I'm thinking of pasting in what @cwurtz and @schnie wrote above as well.

To @cwurtz point, we could consider wiring up the current CLI with something like expect or pass creds in with a pipe/redirect like this pulled from environment variables today with potentially no change to the CLI.

from astronomer.

rbradk avatar rbradk commented on May 31, 2024

@schnie what needs to be true to close this issue out?

from astronomer.

cwurtz avatar cwurtz commented on May 31, 2024

Greg's recommendation is the way to go right now

from astronomer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.