acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.14k stars 100 forks source link

"Pull and redeploy" not redeploying (in certain cases) #2322

Open randall-coding opened 10 months ago

randall-coding commented 10 months ago

I'm building an image like this with my acorn-cli pointing to my acorn.io account.

acorn build -t my_app

Then I deployed my app with this:

acorn run -s my-secrets:my-secrets -n my-app-pro --memory=2Gi

After that I can't seem to pull and redeploy. I will build again, but if I click "Pull and ReDeploy" on the acorn.io UI nothing happens. Same too for the acorn update --pull my-app-pro command.

It seems that on the run command there is an implicit push to an unspecified repo which is perhaps not happening when I use only build or update.

If I've deployed my app this way, is there a way to update the image without deleting and calling run again?

sangee2004 commented 10 months ago

@randall-coding In your case , if you had deployed the app from the image my_app (that you had built) , then building the image my_app again and using acorn update --pull my-app-pro would result in the app being deployed with the new version of the image.

  1. acorn build -t my_app
  2. acorn run -s my-secrets:my-secrets -n my-app-pro my_app --memory=2Gi -> Deploy app withe image my_app
  3. Make changes and build acorn build -t my_app
  4. acorn update --pull my-app-pro

If the app was deployed using the current directory then you can use acorn run --update to update the app.

  1. acorn run -s my-secrets:my-secrets -n my-app-pro --memory=2Gi
  2. Make changes in the current directory
  3. acorn run --update -s my-secrets:my-secrets -n my-app-pro --memory=2Gi --> This will result in app being deployed with the latest changes made in step 2.