-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Section demodata is hard-coded, impossible to use meaningful name instead #373
Comments
Hey @localheinz, Yes, I think it's possible to add some aliases for demodata, like |
That would be great, would also be great to provide some documentation generally for the installation recipes, or add a linkl to where that can be found. We currently have a sections:
# snip
data:
# snip and I have no idea whether the When I rename the It's rather difficult to understand what is going on! |
Hey @localheinz, sorry, I am trying to find the best solution for your request and figured out that me mixed some installation recipes and environment (local or stag etc.) Local development: Stag\Prod environments: Example of usage, hooks definition:
As far as I know you can easily rename Note: Section description. |
Hey @localheinz, can we close this issue as nothing should be done and continue working with the documentation adjustments from the previous issue? |
Which release, branch or hash of Docker SDK are you using?
364e266
Which operating system (platform/version/architecture) are you using?
MacOS
What is the issue that you're experiencing?
The concept of "demo data" is hard-coded into scripts, making it impossible to rename the corresponding
demodata
sections in installation recipes to something that makes more sense, for example,data
.What are the steps to reproduce the issue?
Here are examples from installation recipes for production environments for the https://github.com/spryker-shop/b2b-demo-shop:
config/install/EU/destructive.yml
config/install/US/destructive.yml
❗ If you rename the sections
demodata
, because in a production environment I clearly do not want to import demo data, but actual data, data is not imported anymore, because the sections are hard-coded into scripts:generator/src/templates/deploy.bash.twig
The template contains two references to scripts that are included.
docker-sdk/generator/src/templates/deploy.bash.twig
Line 45 in 364e266
docker-sdk/generator/src/templates/deploy.bash.twig
Line 88 in 364e266
bin/command/runtime/demo.sh
https://github.com/spryker/docker-sdk/blob/364e266cbf90f53a2008cfa9cd7183cd63139a33/bin/command/runtime/demo.sh
data/demo.sh
The name of the script itself indicates that it is used for demo data only, but why would anyone want to import demo data in a production system? We want to import production data - or just data. Let me decide what kind of data I import, rather than pushing the concept of demo data on me.
https://github.com/spryker/docker-sdk/blob/364e266cbf90f53a2008cfa9cd7183cd63139a33/bin/sdk/data/demo.sh
docker-sdk/bin/sdk/data/demo.sh
Lines 57 to 58 in 364e266
The text was updated successfully, but these errors were encountered: