Tag: github

Jenkins的Dockerfile

我在Docker和Jenkins中是全新的,我想试着问你,也许你能帮助我。 我想创build一个所有必要的Jenkins部件的Dockerfile,以便能够创build一个自动化的任务来检出github。 所以首先我在github上find了公共dockerfile( https://github.com/jenkinsci/docker/blob/master/Dockerfile ),但是它包含了很多参数,我不确定是否必须使用整个Dockerfile。 首先,你可以给我一个build议,如何修改dockerfile? 或者build议使用原始的Dockerfile(URL是上面的)? 谢谢你的build议,伙计们,祝你有美好的一天。

群可以被configuration为自动检查具有相同标签的新图像吗?

我正在与github,travis ci(构build经理),数字海洋(云),docker中心,docker工人一起玩,以创build持续的部署 。 我成功地将github与travis ci和docker hub集成起来,所以在每次向我的某个分支(开发)提出请求之后,都会创build新的映像。 Docker云不支持与群集模式下的数字海洋整合。 这是否意味着数字海洋不支持群集,或者docker云的GUI不支持数字海洋整合? (我猜这个答案就是我可以用我的机器在数字海洋中做我想做的事情)。 docker云提供的任何特殊function,无法从远程机器上使用命令行访问? 是否可以configuration群集来检查更新,如果它使用的图像具有相同标签的新图像? 甚至更好: 有一个更新的图像具有相同的标签有任何服务可以通知群体?

使用Dockerfile构buildDocker镜像时出错

我正在尝试在Dockerfile使用configuration来构buildDockerfile : FROM ubuntu MAINTAINER axiom88guru(axiom88guru@gmail.com) Configuration for app below. Run upgrades RUN apt-get update Install basic packages RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs Install Ruby RUN apt-get -qq -y install ruby-full RUN gem install bundler –no-ri –no-rdoc RUN gem install foreman Install rails-new-docker WORKDIR /app RUN git clone https://github.com/axiom88-guru/rails-docker.git […]

Dockerfile自动从Github-标签找不到

我是Docker的新手,正在尝试设置自己的Github Repo: https://github.com/satishsa1107/perl_helloworld 我用下面的代码添加了一个Dockerfile: FROM satishsa1107/perl_helloworld:latest CMD perl hello.pl 我的DockerHub设置在这里: docker.io/satishsa1107/perl_helloworld 当我尝试构build它时,出现以下错误: Sending build context to Docker daemon 58.37 kB Sending build context to Docker daemon 58.37 kB Step 1 : FROM satishsa1107/perl_helloworld:latest Pulling repository docker.io/satishsa1107/perl_helloworld Tag latest not found in repository docker.io/satishsa1107/perl_helloworld ERROR: Build process returned exit code 1 ERROR: Build in 'master' (ef8abd92) […]

如何在Dockerfile中本地安装pip包?

我想从github克隆一个python包,然后用pip -e在本地安装它,如下所示: RUN git clone https://github.com/st4lk/django-rest-social-auth.git RUN pip install -e django-rest-social-auth 但我收到错误消息: Step 6 : RUN pip install -e django-rest-social-auth —> Running in 8943e688573f Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point return ep.load() […]

Dockerfile:跳过私钥的密码

我使用私人密钥从我的Docker文件中从Github下载我的存储库。 我有这样的东西: RUN mkdir -p /root/.ssh && echo "$MY_PRIVATE_KEY" >/root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa && ssh-keyscan github.com >> /root/.ssh/known_hosts && cat /root/.ssh/known_hosts && ssh -vvv git@github.com && pip install git+ssh://git@github.com/my_project.git@v1.0.0 && rm /root/.ssh/id_rsa MY_PRIVATE_KEY是一个参数。 我无法重新创build此密钥。 我的问题是,在连接过程中,我收到以下错误: key_load_private_type: incorrect passphrase supplied to decrypt private key 有没有可能跳过密码?

如何通过汇集来设置github,docker dev和prod环境的ci / cdpipe道?

我实际上是在GitHub,中心,docker之间build立CI / CDpipe道。 在这里我能够获得代码到汇合和build立docker图像,并推动这些图像docker私人registry。 build立成功后,我想通过汇合部署这些图像到dev和prod环境。 我怎么能做到这一点? 我希望一切都应该从大厅触发。 我们不应该连接到开发,prod和手动运行bash脚本更新运行容器与docker私人registry的最新iamges。 如果你正在维护dev,pro环境,请把链接寄给我。 提前致谢。

如何在OpenShift3中通知用于S2I构build的Maven / JVM选项

OpenShift3允许使用“S2I – 源到图像”的概念从Github存储库构build容器。 例如: oc new-app codecentric/springboot-maven3-centos~https://github.com/cbelleza/spring-boot-samples.git –context-dir=spring-boot-basewebapp 有什么方法可以告诉Maven在这个build筑中应该执行什么目标? 如何设置我的应用程序需要启动的JVM参数,如-DXbootclasspath :, -Dfile.encoding等?

在Dockerfile中的Git克隆回购

我试图从Dockerfile构build图像时克隆存储库。 我正在使用sequenceiq / docker-spark Dockerfile并将其扩展如下(在ENTRYPOINT行之前): RUN yum install -y git RUN git clone git@github.com:myorg/myrepo.git 几分钟后出现以下错误: Initialized empty Git repository in /myrepo/.git/ fatal: The remote end hung up unexpectedly INFO[0128] The command [/bin/sh -c git clone git@github.com:myorg/myrepo.git] returned a non-zero code: 128 我已将图像的id_rsa.pub添加到该存储库的部署密钥。 我试图在图像上运行bash ,并用同样的问题git clone -ing。 我很难过 我在这里发现这个相关的问题,但我的SSH密钥是无密码的,所以它没有帮助。

在Docker构build期间,Grunt需要github令牌

Grunt需要一个github身份validation令牌,而在图像的docker build期间执行。 我如何提供所需的令牌咕噜声? 互动式传球不起作用(因为我已经收录)。 咕噜的消息是: Running "volo:add:-nostamp:twbs/bootstrap/3.3.2:packages/bootstrap/" (volo) task GitHub auth required for api.github.com/repos/twbs/bootstrap/tags: {"message":"API rate limit exceeded for XXX.XXX.XXX.XXX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"} GitHub access token required to complete action. In a web browser, go to: https://github.com/settings/tokens and generate […]