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

876
Visualizações
AWS CodeBuild error while build project => YAML_FILE_ERROR Message: Runtime version selection is not supported by this build image

I trying to build Docker image using AWS CodeBuild

I follow AWS codebuild sample below https://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html

below is what i did.

I write buildspec.yml like this.(exactly same as what I saw as previous link) buildspec.yml

and I start build project using aws CodeBuild, but I got this Codebuild Log error message :

Codebuild Log

YAML_FILE_ERROR Message: Runtime version selection is not supported by this build image. <== this message means what? Is any other docker runtime version except 18? what should I do?

please help...

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I was getting the following error after fixing.

2019/10/06 00:21:59 Phase context status code: YAML_FILE_ERROR Message: 
Runtime version selection is not supported in version 0.1, see documentation

Solution:

After putting a lot of effort in this issue I realized it was the version on the top which needs correction. I was changing the ubuntu image version but The version at the top of the buildspec.yml needs to be changed.

  • below version needs to be changed in buildspec YAML file
     version: 0.2
      phases:
        install:
         runtime-versions:
         docker: 18 
over 4 years ago · Santiago Trujillo Relatório

0

For aws/codebuild/standard:2.0 images you must specify a runtime-versions in your buildspec. Sample here: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runtime-versions.html

Also note that since your build needs docker access inside the build container, you will need to enable the privileged mode for your CodeBuild project.

over 4 years ago · Santiago Trujillo Relatório

0

While trying with Gradle for Spring Boot project,

buildspec.yml

version: 0.2

phases:
  install:
    runtime-versions:
      java: corretto11
  build:
    commands:
      - bash ./gradlew clean build
artifacts:
  files:
    - build/libs/codecommitdemo-0.0.1-SNAPSHOT.jar
    - appspec.yml
    - scripts/*
  discard-paths: yes
over 4 years ago · Santiago Trujillo Relatório
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