-
Notifications
You must be signed in to change notification settings - Fork 5
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
Make execution more debugable / understandable #41
Comments
shopware-cli and deployment helper has nothing together. shopware-cli will build the project, and the deployment helper runs the required commands during deployment. They don't require also each other. Deployment Helper is already very verbose. It prints everything that it executes; I see no problem there. shopware-cli could be improved. I am there with you. The docker-compose example in the README is just an example, and if you get errors like:
you can just do I believe you didn't understand how the projects can work together and like to blame :) |
At first I wanted to react to your take on my docker knowledge. I do not see myself as an expert but longtime user and I had my struggles, that I was able to overcome with docker and especially in combination with Bitbucket docker-in-docker limitations, and AWS fargate. Glad I had support there by experts :D Tools like k8s still feel utterly complex for "something one just tries out" and are out of my knowledge. I had a look at the docker logs and only saw a successful output of a plugin installation:
So I assumed there is a script running, that I cannot properly follow as I do not know where it is started, why and what would come next. By occam's razor I assumed, that something, that I do not know yet is likely the source of an error. So I am now here as I assumed the deployment helper to be an issue as it likely was the last command orchestrating commands and one new thing in my project I fiddle with. Eventually you were right about me not knowing enough about the docker commands I tried out but at a completely different part. So here are some more insights: The issue seems indeed to be some missing information on how I used I run this in CD
as I expected to have to name the service I have to wait for but also have a detached start-up. (The This is the command I run to see the logs
But this seems to be different execution style. Although docker output says it starts mysql:
I seem to get an issue with the database connection and stops there with a 255. So docker was behaving unexpected to me. Eventually I likely solved it with no further argument after the
I once heard, that deployment helper installs shopware-cli but looking at the source code I see no reference to shopware-cli. You are right. But this feels weird to have documentation on shopware-cli, that says is can be configured in
Apparently this is an issue. I did not understand why I see |
It's intended to configure everything in one file. So, we don't have a clustering of multiple config files. I think we can add more docs, and maybe prefix the output of deployment helper, with |
I have a bitbucket pipeline, that wants to host Shopware in the docker-in-docker from a docker-compose, in there the shopware/docker-base is used. In there is an entrypoint script (that one needs to lookup). This script runs the deployment-helper. The deployment-helper downloads shopware-cli, shopware-cli runs PHP commands like
composer install
andbin/console plugin:install
. Now the binaries starting other binaries look like this:Now I am just looking at this:
I have to extrapolate/guesstimate the execution hierarchy/stacktrace from own research or assumptions. This is not easy to grasp.
I am unsure about the last two as I am not sure which command output belongs to which command. Or I do not even know which command is tried to be executed. Is it from an entrypoint? Is it from shopware-cli? Is it the deployment-helper? Which process is now trying a command, that maybe did not yet have any identifying output?
Docker at least said it is the init service. But after that? I have no idea. We need something to do about this script nesting. Make can be more verbose. composer scripts can be more verbose. bash, make and composer can say what command they would execute next. How can I achieve the same here?
Why did we have to write these tools, that also just delete directories and execute other commands, in yet another "management tool"? With a debatable configuration language, that just has autocompletion because on some server in the internet is a definition file. Nothing else is guiding. I could run all these tools with more verbosity and can better understand the script. What can this tool do?
I am sore about the yaml rant. I am not sorry about the "why not use make, bash or composer scripts rant"
The text was updated successfully, but these errors were encountered: