ipunkt/rancherize

Resource-Limits failed to start services

rokde opened this issue · 2 comments

rokde commented

executing command rancherize start local -vvv prints the following:

  RUN  'docker-compose' '-p' 'Partner-XML-Service' '-f' './.rancherize/docker-compose.yml' 'up' '-d'
  ERR  The Compose file '././.rancherize/docker-compose.yml' is invalid because:
  ERR  Unsupported config option for services.PHP-FPM-Partner-XML-Service: 'cpu_period'
  ERR  Unsupported config option for services.Partner-XML-Service: 'cpu_period'
  ERR  
  RES  1 Command did not run successfully

In DockerService.php line 127:
                                                                 
  [Rancherize\Docker\Exceptions\StartFailedException (51)]       
  Failed to start docker infrastructure for Partner-XML-Service  
                                                                 

Exception trace:
 Rancherize\Services\DockerService->start() at /opt/rancherize/vendor/ipunkt/rancherize/app/Commands/StartCommand.php:102
 Rancherize\Commands\StartCommand->execute() at /opt/rancherize/vendor/symfony/console/Command/Command.php:251
 Symfony\Component\Console\Command\Command->run() at /opt/rancherize/vendor/symfony/console/Application.php:964
 Symfony\Component\Console\Application->doRunCommand() at /opt/rancherize/vendor/symfony/console/Application.php:248
 Symfony\Component\Console\Application->doRun() at /opt/rancherize/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /opt/rancherize/vendor/ipunkt/rancherize/app/Application/Rancherize.php:127
 Rancherize\Application\Rancherize->run() at /opt/rancherize/vendor/ipunkt/rancherize/rancherize:10

start [-r|--rebuild] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] <command> <environment>

Using latest 2-stable branch of rancherize docker image version.

Should no longer happen as of 2.28.6
Details: The created docker-compose.yml now lists "2.1" as its version, allowing docker-compose to accept cpu_{quota,reservation} etc
Please test this and then close the issue

rokde commented

Works fine locally.