Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skaffold dev examples/buildpacks fails on minikube #3588

Closed
balopat opened this issue Jan 26, 2020 · 2 comments · Fixed by #3602
Closed

skaffold dev examples/buildpacks fails on minikube #3588

balopat opened this issue Jan 26, 2020 · 2 comments · Fixed by #3602
Assignees
Labels

Comments

@balopat
Copy link
Contributor

balopat commented Jan 26, 2020

skaffold dev examples/buildpacks seems to work on GKE clusters but fails on minikube.

Expected behavior

Skaffold builds with buildpacks seemlessly to the local docker daemon of minikube.

Actual behavior

FATA[0025] exiting dev mode because first build failed: build failed: building [skaffold-buildpacks]: build artifact: tagging skaffold-buildpacks:latest->skaffold-buildpacks:v1.2.0-75-g4bd04bf5c-dirty: Error response from daemon: No such image: skaffold-buildpacks:latest 
Listing files to watch...
 - skaffold-buildpacks
Generating tags...
 - skaffold-buildpacks -> skaffold-buildpacks:v1.2.0-75-g4bd04bf5c-dirty
Checking cache...
 - skaffold-buildpacks: Not found. Building
Found [minikube] context, using local docker daemon.
Building [skaffold-buildpacks]...
latest: Pulling from heroku/buildpacks
Digest: sha256:2b19ebeef117238696b630c5bd3edc89dbaad661004a249708789c493019daa1
Status: Image is up to date for heroku/buildpacks:latest
18: Pulling from heroku/pack
Digest: sha256:2a25c77a3ee2ad3b52555e6ee99700f414e84add301bb0faf55bcd401acee281
Status: Image is up to date for heroku/pack:18
[detector] heroku/go       0.0.5.2
[detector] heroku/procfile 0.3
[restorer] Restoring cached layer 'heroku/go:shim'
[analyzer] Using cached layer 'heroku/go:shim'
[analyzer] Writing metadata for uncached layer 'heroku/go:profile'
[builder] -----> Fetching stdlib.sh.v8... done
[builder] -----> 
[builder]        Detected go modules via go.mod
[builder] -----> 
[builder]        Detected Module Name: github.com/GoogleContainerTools/skaffold/examples/buildpacks
[builder] -----> 
[builder]  !!    Using $GOVERSION override.
[builder]  !!         $GOVERSION = 1.13.1
[builder]  !!    
[builder]  !!    If this isn't what you want please run:'
[builder]  !!      heroku config:unset GOVERSION -a <app>
[builder]  !!    
[builder] -----> Using go1.13.1
[builder] -----> Determining packages to install
[builder]        
[builder]        Detected the following main packages to install:
[builder]                       github.com/GoogleContainerTools/skaffold/examples/buildpacks
[builder]        
[builder] -----> Running: go install -v -tags heroku github.com/GoogleContainerTools/skaffold/examples/buildpacks 
[builder] github.com/GoogleContainerTools/skaffold/examples/buildpacks
[builder]        
[builder]        Installed the following binaries:
[builder]                       ./bin/buildpacks
[builder]        
[builder]        Created a Procfile with the following entries:
[builder]                       web: bin/buildpacks
[builder]        
[builder]        If these entries look incomplete or incorrect please create a Procfile with the required entries.
[builder]        See https://devcenter.heroku.com/articles/procfile for more details about Procfiles
[builder]        
[builder] -----> Discovering process types
[builder]        Procfile declares types     -> web
[exporter] Adding layer 'app'
[exporter] Reusing layer 'config'
[exporter] Reusing layer 'launcher'
[exporter] Reusing layer 'heroku/go:profile'
[exporter] *** Images (9b3b8f104ef5):
[exporter]       index.docker.io/library/skaffold-buildpacks:latest
[cacher] Caching layer 'heroku/go:shim'
FATA[0025] exiting dev mode because first build failed: build failed: building [skaffold-buildpacks]: build artifact: tagging skaffold-buildpacks:latest->skaffold-buildpacks:v1.2.0-75-g4bd04bf5c-dirty: Error response from daemon: No such image: skaffold-buildpacks:latest 

Information

  • Skaffold version: latest master
  • Operating system: Mac OSX
  • Contents of skaffold.yaml: examples/buildpacks
@balopat
Copy link
Contributor Author

balopat commented Jan 26, 2020

cc @dgageot, @briandealwis

@dgageot dgageot self-assigned this Jan 27, 2020
@dgageot
Copy link
Contributor

dgageot commented Jan 27, 2020

We should pass the docker api (that we discovered from the k8s context) to the pack library.
That will be easier when buildpacks/pack#471 is merged

dgageot added a commit to dgageot/skaffold that referenced this issue Jan 28, 2020
Fixes GoogleContainerTools#3588

Signed-off-by: David Gageot <david@gageot.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants