docker - How can I get Dockerhub to rebuild my images daily?
问题描述
We have our base images set up on Dockerhub, and they will rebuild whenever the upstream repositories change.
In our Dockerfiles we install several packages with apt-get.
We'd like to have the most recent versions of these packages at all times. Since these packages have nothing to do with the upstream repo's, we'd need to reinstall them into our base image regularly.
One seemingly simple solution would be to have a scheduled rebuild of our images, for example daily or hourly. Each run would pull in the latest versions and bake it into the base image.
However, I can't find any way to do this. There's no option for it in the Dockerhub UI, and I can't find any reference for an API call or webhook that I can trigger from a cron job.
Has anyone come across a way to set up scheduled builds, or a reason why something this (seemingly) straightforward is unsupported?
解决方案
有Build triggers (Trigger your Automated Build by sending a POST to a specific endpoint.
在Configure Automated Builds
. 不幸的是,此功能最近已更改,我无法找到当前文档。可以选择发布一些数据,例如'docker_tag=dev'
通过 docker tag/branch/... 触发特定构建
推荐阅读
- react-native - 从使用按钮以编程方式添加的 TextInputs 获取输入数据
- python - 如何在删除之前制作表的副本(django pre_delete)
- python - py4j.protocol.Py4JError: 调用 o66.createStream-Amazon kinesis,pyspark 时出错
- c# - .Net Core 2.2 启动中的 Services.Configuration.Replace
- react-native - 尝试播放声音时出现 RNSound.IsAndroid 错误
- javascript - v-on="..." 语法在 VueJS 中是什么意思?
- rspec - 如何在rspec中调用位于不同位置的ruby类
- python-3.x - 使用 Boto3 上传 Gzip 文件
- arrays - 如何在子切片中分割Go中的切片
- android - 寄存器的类型为 Long(High Half),但预期为 Long(Low Half)