Skip to content

Auto DevOps fails with Unable to select a buildpack

Todos

Original description

Auto DevOps fails with "Unable to select a buildpack"

This is a Bug report - however when I failed to configure something then I am welcome to know.

  • gitlab-ce on a DO Doclet (Ubuntu 16.04).

  • gitlab-runner on a DO Doclet (Ubuntu 16.04)

  • docker executor

  • PHP Project with composer.json

  • Testet with our without BUILDPACK_URL

  • Maybe related upstream issue: https://github.com/gliderlabs/herokuish/issues/205

  • /etc/gitlab-runner/config.toml

concurrent = 1
check_interval = 0

[[runners]]
  name = "gitlab-runner"
  url = "https://gitlab.priotas.eu/"
  token = "05bbaf38d1a79816893bcb7e0f3c0c"
  executor = "docker"
  [runners.docker]
    tls_verify = false
    image = "ubuntu:16.04"
    privileged = true
    disable_cache = true
    cache_dir = "cache"
    volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
    shm_size = 0
  [runners.cache]

The Build fails with:

Running with gitlab-ci-multi-runner 9.5.1 (96b34cc)
  on gitlab-runner (05bbaf38)
Using Docker executor with image docker:git ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image docker:dind ID=sha256:b12c0db765b447f4f912cffc2a372466b4af1c9c9b1c57aea364df5ee61afc0c for docker service...
Waiting for services to be up and running...
Using docker image sha256:90f541dced7813ef8051ed12e562a328a4c4d35a89f529b5b023eb655391f211 for predefined container...
Pulling docker image docker:git ...
Using docker image docker:git ID=sha256:4d76de70e898910d9fcb67a1153d9446a5e576fa9c36c6b5d0a8ccd82cb92142 for build container...
Running on runner-05bbaf38-project-5-concurrent-0 via gitlab-runner...
Cloning repository...
Cloning into '/builds/xxx'...
Checking out f4432fa2 as gitlab...
Skipping Git submodules setup
$ # Auto DevOps variables and functions # collapsed multi-line command
$ setup_docker
$ build
Building Heroku-based application using gliderlabs/herokuish docker image...
       -----> Unable to select a buildpack
ERROR: Job failed: exit code 1
Edited by Achilleas Pipinellis