Tag: Travis ci

使用Travis CI和Docker进行连续部署

在CI环境中自动部署Docker镜像的最佳方式是什么? 在使用Travis CI构build一个简单的Web项目并使用Dockerfile构build相应的Docker镜像之后,是否有自动将该镜像部署到云提供者的方法? 现在,Dockerfile将基础镜像拖到Travis构build机器上,并根据Dockerfile中的指令构build镜像。 在这一点上,如果构build成功,我可以将其推送到Docker Hub,尽pipe我不需要将此映像保存到Docker中心,但是我认为将成功构build的Docker映像部署到云提供者(IE。DigitalOcean,Linode ,或AWS)并启动/运行映像。

特拉维斯多build筑Buiilds

我有一个项目,我正在尝试为ARM和x86_64构build。 x86_64构build通过,但构build失败: Status: Downloaded newer image for kutsudock/rpi-alpine-go:latest standard_init_linux.go:175: exec user process caused "exec format error" 这是我的yaml: env: global: – VERSION=1.${TRAVIS_BUILD_NUMBER} matrix: – ARCH=x86_64 GOIMG=golang:1.6 DOCKER_BUILD=mastermindg/docker-flow-proxy:${VERSION} DOCKERFILE=Dockerfile.amd64 – ARCH=rpi GOIMG=kutsudock/rpi-alpine-go DOCKER_BUILD=mastermindg/docker-flow-proxy:rpi-${VERSION} DOCKERFILE=Dockerfile.rpi sudo: required services: – docker script: – docker run –rm -v $PWD:/usr/src/myapp -w /usr/src/myapp -v go:/go ${GOIMG} bash -c "cd /usr/src/myapp && go […]

用sudo安装Travis-ci包:false

我如何安装Travis-ci上的软件包sudo:false in travis.yml? 我有我的travis.yml: sudo: false install: – wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.4_amd64.deb – sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb 我有一个错误: sudo:必须是setuid root 命令“sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb”失败,并在1期间退出。

在Linux上的Azure Web应用程序中运行dotnet核心docker映像时没有find可执行的匹配命令“dotnet – / .. /。dll”

1.背景 我目前正在处理下面的构build/部署pipe道: Github( https://github.com/devedse/DeveMazeGeneratorCore ) Travis Build( https://travis-ci.org/devedse/DeveMazeGeneratorCore/jobs/196910720 ) dotnet恢复 dotnet构build dotnet发布 docker工人创build图像 docker工人将镜像发布到集线器 Docker镜像集线器( https://hub.docker.com/r/devedse/devemazegeneratorcore/ ) 在Linux上使用Azure Web App执行部署( http://devemazegeneratorcoredocker.azurewebsites.net/api/mazes/MazePath/512/512 ) 。 2.问题 每当我把东西推到Github仓库时,一个构build就会被启动,步骤1-3正在被正确执行。 但是,Azure上的网站无法访问。 我使用SCM浏览到debugging控制台( https://devemazegeneratorcoredocker.scm.azurewebsites.net/DebugConsole/Default.cshtml (供将来参考)),并执行以下命令以查找由Docker生成的日志文件: 然后使用以下命令来读取它们: cat docker_128_err.log cat docker_128_out.log 出日志显示以下结果(似乎是正确的): Login Succeeded latest: Pulling from devedse/devemazegeneratorcore 5040bd298390: Already exists fce5728aad85: Already exists 76610ec20bf5: Already exists 51ee4768b31d: Already exists 4dc55ff439a1: Already […]

Travis Docker Image缺lessPython 3.5

当我尝试在本地安装Travis环境来追踪Travis中发生的testing失败时,我按照这里的说明操作。 我下载了travis-python docker镜像并运行它。 Travis日志显示它运行source ~/virtualenv/python3.5/bin/activate来激活python3.5。 但是,这并没有从提供的泊坞窗图像中find。 它有所有的python版本高达3.4.2。 但3.5失踪。 我无法从日志中find任何他们将在virtualenv文件夹下安装python3.5指令,并试图找出如何做到这一点。 有人知道这些是如何设置的,以便我可以在当地复制特拉维斯使用的环境?