制作jenkins-inbound-agent 镜像 版本号为 4.3-4
https://github.com/jenkinsci/docker-inbound-agent 这个链接中可直接查看Dockerfile,稍作调整即可利用。因为选择了版本,所以点击master,选择Tgas,下拉选择需要的版本。
在4.3-4版本中,有11和8两个目录,我们jdk是8版本,所以我进8目录去找对应的文件。
在这个目录内,我选择基于基础镜像alpine去创建docker-inbound-agent镜像,所以我选择了alpine的目录。
原始的Dockerfile内容:(# 为注释内容,不用理会)
# The MIT License
#
# Copyright (c) 2015-2017, CloudBees, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# o