Drone needs a way to force refresh of an image (e.g plugin or build) #1340

Closed
tooda02 opened this Issue Nov 21, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@tooda02

tooda02 commented Nov 21, 2015

Drone appears to keep a Docker image cache. This is beneficial for performance, but is a problem when a plugin or a build box image has been updated and Drone continues to use the old version. There needs to be some way to ask Drone to remove an image from its cache, either through the UI or REST API.

@bradrydzewski

This comment has been minimized.

Show comment
Hide comment
@bradrydzewski

bradrydzewski Nov 21, 2015

Member

@tooda02 plugins always auto-upgrade. Build or compose images can force upgrade by adding the pull option in the yaml:

build:
  image: foo
  pull: true

In terms of image buildup on the machine, we do plan to add some sort of PRE_BUILD and POST_BUILD plugin that executes a generic job on the host machine when the build completes. We won't provide a solution for cleanup specifically, but will will provide the capability to launch the job. You can see more about the discussion here:
#1193 (comment)

If you don't mind let's use Gitter for these sort of questions. thanks!!

Contributions, questions, and comments are welcomed and encouraged. Drone developers hang out in the drone/drone room on gitter. We ask that you please post your questions to gitter before creating an issue.

Member

bradrydzewski commented Nov 21, 2015

@tooda02 plugins always auto-upgrade. Build or compose images can force upgrade by adding the pull option in the yaml:

build:
  image: foo
  pull: true

In terms of image buildup on the machine, we do plan to add some sort of PRE_BUILD and POST_BUILD plugin that executes a generic job on the host machine when the build completes. We won't provide a solution for cleanup specifically, but will will provide the capability to launch the job. You can see more about the discussion here:
#1193 (comment)

If you don't mind let's use Gitter for these sort of questions. thanks!!

Contributions, questions, and comments are welcomed and encouraged. Drone developers hang out in the drone/drone room on gitter. We ask that you please post your questions to gitter before creating an issue.

thefab added a commit to metwork-framework/mfext that referenced this issue Jul 13, 2018

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