Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

261
Visualizações
Makefile hangs when docker-compose -d is used and fails with code 129 without -d

for reference, my rule looks like this:

aRule:
    docker-compose exec -d service /bin/bash -c "/path/to/drush -y drush-commmand"

On Ubuntu 16.04 and 14.04, if I run a command such as docker-compose exec -d service /bin/bash -c "/path/to/drush -y drush-commmand in a Makefile rule, Makefile hangs and then fails due to MemoryError from the docker container. This command, however, works in both centos and docker-machine.

I try to substitute the command with docker-compose exec service /bin/bash -c "path/to/drush -y drush-command (without the -d flag) and this time the drush command succeeds, however the Makefile fails with error code 129.

I then try to rectify the issue with the modified command, docker-compose exec service /bin/bash -c "path/to/drush -y drush-command 1>/dev/null", this works... but seems a bit hack-ish

What is the correct way of doing this and why am I getting the aforementioned errors?

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda