Feature request: link this repository to dockerhub
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker
- 领域
- devops, infrastructure
调研方向
检查 Dockerfile 和 Dockerfile.alpine,然后查看针对版本标签提出的 Docker Hub 构建规则。确认该仓库可以链接到所请求的 Docker Hub 组织,并且两个 Dockerfile 都会从新的 v 前缀标签自动构建;当这些标签对应的官方镜像可用时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Until today, I have been using any of the many github-pages images out there. Today however, I encountered a bug in the latest versions, and I was trying to find where it came from. The bug is still there (something with an {% else %} not being recognised), and already reported, but while looking I also stumbled on this pages-gem repository, and saw the Dockerfile in there. This means there is an official docker image I can use. But it seems this repository is not yet linked to a dockerhub organisation. Would it be possible to link a dockerhub "github" organisation to this repository, so we could always have an up-to-date docker image on dockerhub?
Right now, I have forked this repository, to try and see if it was possible to use the repository as is in dockerhub. And yes, it takes only a few minutes to set up, but once it's there, it's free, needs no maintenance, and will automatically build a new image based on the latest tag, starting with the next tag you'll add to this repository. The setup I use:
Source repository: phpqa/pages-gem
Build rule 1:
Source type: tag
Source: /^(v[0-9.]+)$/
Docker Tag: {\1}
Dockerfile location: Dockerfile
Build Context (only available on edit): /
Autobuild: true
Build caching: true
Build rule 2:
Source type: tag
Source: /^(v[0-9.]+)$/
Docker Tag: {\1}-alpine
Dockerfile location: Dockerfile.alpine
Build Context (only available on edit): /
Autobuild: true
Build caching: true
This will build a docker image every time a new tag is added to the github repository. You can see the example at https://hub.docker.com/r/phpqa/github-pages-gem based on https://github.com/phpqa/pages-gem/releases/tag/v199
I use it with the following docker-compose.yml file, that will serve your site with a docker-compose up -d to 0.0.0.0:4000 (on a Mac, as there is a $PWD in there):
version: '3.7'
volumes:
website:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/
services:
jekyll:
image: phpqa/github-pages-gem:v199
command: jekyll serve -H 0.0.0.0 -P 4000 --watch --force_polling --verbose
ports:
- target: 4000
published: 4000
protocol: tcp
mode: host
volumes:
- type: volume
source: website
target: /src/site
volume:
nocopy: true
You could also add some build hooks to also add a latest tag, but that would only be an improvement.
- 主要语言
- Ruby
- 星标
- 1.9k
- 派生
- 361
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/pages-gem 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 5/100
-
index.html未关闭
难度 5/5 一周以上 新手友好度 5/100
相似的 Issue
-
security
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
solana-foundation/pay-kit#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
julienXX/terminal-notifier#333 ·
-
难度 1/5 1 小时以内 新手友好度 82/100
serhii-londar/open-source-mac-os-apps#1419 ·
维护者通常 5 天内回复