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

compose up --no-build Build Path Does Not Exist #3391

Closed
dsanders11 opened this issue Apr 28, 2016 · 2 comments
Closed

compose up --no-build Build Path Does Not Exist #3391

dsanders11 opened this issue Apr 28, 2016 · 2 comments

Comments

@dsanders11
Copy link

Currently if you do a docker-compose up --no-build for a docker-compose.yml file that looks like:

version: '2'

services:
  foo:
    build: "foo"
    image: foo:latest

And you're in an environment where the build folder doesn't exist, you'll get:

ERROR: build path /foo either does not exist, is not accessible, or is not a valid URL.

Creating an empty directory with that name allows things to continue as expected.

I'd like to have a single docker-compose.yml file that can be used for building on the developer side and deploying on the production side. As such I never want to build in production and only use the prebuilt images, hence the '--no-build' flag. The behavior of reading the build option in this case is unexpected and counter intuitive.

It looks like this is part of the validating the config logic, which is understandable, but it would be nice if no build was plumbed down so that a missing build path was not an error.

@metal3d
Copy link

metal3d commented Apr 29, 2016

You received 2 messages from me for some comments: sorry ! I didn't read your message as I should and I didn't understand what you meant. Now I understand :) and you're absolutely right !

@dnephin
Copy link

dnephin commented Apr 29, 2016

This is covered by #1973, closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants