Skip to content

Push to localstack/localstack-pro, and deprecate localstack/localstack-light and localstack/localstack-full#7249

Merged
alexrashed merged 21 commits intorelease/v1.3from
push-to-localstack-pro
Nov 30, 2022
Merged

Push to localstack/localstack-pro, and deprecate localstack/localstack-light and localstack/localstack-full#7249
alexrashed merged 21 commits intorelease/v1.3from
push-to-localstack-pro

Conversation

@silv-io
Copy link
Member

@silv-io silv-io commented Nov 28, 2022

  • Add a new push target to localstack/localstack-pro.
  • In the beginning, this should just be the localstack/localstack image.
  • With 2.0 this should be the pro image, and localstack/localstack should just contain the community code!
  • Add a deprecation warning when Pro is activated, but localstack/localstack is used.
  • Make sure to use the correct image in the CLI.
  • Add markers for localstack-full and localstack-light (if not present)
  • Show a deprecation warning whenever localstack-light or localstack-full are used (but not when localstack/localstack is used).

Comparison of pipeline duration:

In total - depending on the caching behaviour in the build - the pipeline could take around 5-15 minutes longer on master builds.

This can probably be circumvented by downloading the elasticsearch dependencies in its own builder step and just copying them into the step where the version gets marked. This way we can cache the Elasticsearch dependencies in a deeper layer (before our code) and avoid downloading them almost every time.

@silv-io silv-io marked this pull request as ready for review November 28, 2022 10:29
@silv-io silv-io requested a review from alexrashed as a code owner November 28, 2022 10:29
@localstack-bot localstack-bot force-pushed the push-to-localstack-pro branch 2 times, most recently from 77875b2 to fe8af07 Compare November 28, 2022 14:13
@silv-io silv-io requested a review from dfangl as a code owner November 29, 2022 09:31
@silv-io silv-io changed the title Push to localstack/localstack-pro Push to localstack/localstack-pro and deprecate localstack/localstack-light and localstack/localstack-full Nov 29, 2022
@silv-io silv-io changed the title Push to localstack/localstack-pro and deprecate localstack/localstack-light and localstack/localstack-full Push to localstack/localstack-pro, and deprecate localstack/localstack-light and localstack/localstack-full Nov 29, 2022
@silv-io silv-io force-pushed the push-to-localstack-pro branch from dbb356e to 630e0d2 Compare November 29, 2022 10:48
@alexrashed alexrashed force-pushed the push-to-localstack-pro branch from c57a8ba to 2ab28dc Compare November 30, 2022 09:50
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The makefile is currently quite messy, this is great work, thanks! 🚀


# base-full: Stage which adds additional dependencies to avoid installing them at runtime (f.e. elasticsearch)
# FIXME deprecated
FROM unmarked as unmarked-full
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this means that we elasticsearch download stages are executed on every build. But the full image is being deprecated with 1.3.0.
If we see a significant increase in the build time or an increasing instability of the build pipeline, we have two options:

  • Push the light version for the full version (it's deprecated and will be removed, elasticsearch versions are downloaded on demand). This could break the environment for users which cannot download elasticsearch on-demand or expect it to be present in the image.
  • We could further optimize this by creating a new builder stage from which we only copy the final result / downloaded ES version.

@alexrashed alexrashed merged commit f294d5f into release/v1.3 Nov 30, 2022
@alexrashed alexrashed deleted the push-to-localstack-pro branch November 30, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants