Skip to content

fig up should build on every invocation #12

Closed

Description

@bfirsh

Now Docker caches ADD in Dockerfiles, we can safely build on every fig up without builds taking ages.

There perhaps should also be an option in fig.yml to cache the build with a tag as it currently does. We should also document how to cache installation of code dependencies. E.g.:

ADD requirements.txt /code/
RUN pip install -r /code/requirements.txt
ADD . /code/

This means pip install will only be run when requirements.txt changes. If pip install were after the last line, it would be run anytime any file changed.

Activity

  1. mauvm commented on Feb 21, 2014

    @mauvm

    +1

  2. cameronmaske commented on Feb 21, 2014

    @cameronmaske

    One issue I'd worry about currently is if you rely on persisting data in containers that is generated outside of their build.
    Most of the time you can circumvent this by storing that data in a shared volume, but I've run into issues doing so over a VM hosted docker daemon (aka docker-osx) with certain services.
    For example, currently running a Postgres database, I can't run postgresql initdb (post build) into a shared volume, as the VM volume system doesn't allowed hardlinks (aka symlink for folders).

    This might be an edge case. Maybe having a extra key in the fig.yml to prevent default rebuilds would allow the best of both worlds? e.g.

    db:
       build: postgres
       rebuild: false
    
  3. j0hnsmith commented on Mar 6, 2014

    @j0hnsmith

    +1

  4. added a commit that references this issue on Feb 6, 2015
  5. develar commented on Mar 11, 2015

    @develar

    +1

  6. dnephin commented on Aug 24, 2015

    @dnephin

    I've proposed the opposite #693 and #1455

  7. added this to the 1.6.0 milestone on Dec 7, 2015
  8. modified the milestones: 1.7.0, 1.6.0 on Jan 13, 2016
  9. added a commit that references this issue on Jan 19, 2017
  10. added a commit that references this issue on Mar 6, 2026
    c80d6fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions