What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi, again me 😉 I have some workflows in github that fail (see screenshot) I don't understand w
Hi, again me 😉
I have some workflows in github that fail (see screenshot)
I don't understand why in the cli baked image the command is not found... Any idea?
Any help would be appreciate!
Comments
-
@ULYHPR789 maybe u can help me? 🙂
0 -
Hi @UL65CH0MC,
maybe these Commands are not enabled/registered in ConsoleDependencyProvider for docker.ci environment?
They might depend on\Pyz\Zed\Console\ConsoleConfig::isDevelopmentConsoleCommandsEnabled
0 -
0
-
@UKHR9UN00
the SPRYKER PIPELINE arg is missing...
Therefore is not replaced in the command and then the default pipeline would used and there is the configuration to false..I had the same problem with SPRYKER_COMPOSER_MODE and SPRYKER_COMPOSER_AUTOLOAD arg that are not passed to baked cli image...
I will send u all the piece of code that fix it after my tests
0 -
nö.. wrong alarm...
the argSPRYKER_PIPELINE
is not passed directly but seems to be there..
I am without ideas of what it could be0 -
but it seems that required-dev libs are not there... because locally I have 45128 classes in dump autoload (all installed), in workflow ci only 42247 (even if the previous command
composer install --no-interaction --dev -vvv
is correct and should install everything..do u use github action too?
0 -
just as info: i just put a debug command in the pipeline that make the output of all console commands and the development console commands are missing.. even if the configuration is set to true.. I have to search forward why it happened
0 -
Please, check the docker build output just above you provided where composer install runs. It should be without --no-dev as we are building CLI image.
The next checkpoint is for sure ENABLE_DEVELOPMENT_CONSOLE_COMMANDS
In the master it is just before the install command: https://github.com/spryker/docker-sdk/blob/master/images/baked/cli/Dockerfile#L23
I am not sure ENV steps are not in docker output, but please check if it is there0 -
Hi @ULYHPR789 thank u for your reply... Yesterday evening i just investigated in details and it was a dummy typo error in a config... It works everything as expected...
But... : in the case i configure the composer mode to
--no-dev
(as Suite for ci) the Cli backed image for Ci need the dev packages to run the tests and in this case you have luck that it works because the cli baked image run the command as socomposer install --no-interactive ${SPRYKER_COMPOSER_MODE}
because theSPRYKER_COMPOSER_MODE
is not passed as arg to cli baked image.I fixed it locally and i just provided another var named
SPRYKER_COMPOSER_MODE_CLI
with empty value or--dev
in deploy yml recipe otherwise in the case i have composer mode in yml to--no-dev
it will not work because the cli just not install the dev packages..Maybe there is another better solution, but it was for me the quickly and clean in the moment.
(The same happened for the var
SPRYKER_COMPOSER_AUTOLOAD
that is not passed to cli baked image).0 -
That was an idea that if SPRYKER_COMPOSER_MODE is not passed it is empty it does mean --dev mode by default.
So I do not understand really the root cause.0 -
Ah so this is intentional. I thought it was a small oversight or bug.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random