Tag: 无人机

在无人机上运行Docker时,无法findhex的Phoenix应用程序

所以我现在有一个设置,我部署我的dockerized的凤凰应用程序来运行自我托pipeDrone服务器上的testing。 目前问题出现了,无论我使用的是什么Dockerfile(目前是alpine-elixir-phoenix或者下面的base elixir图片),安装如下所示的hex / rebar: # Install Hex+Rebar RUN mix local.hex –force && \ mix local.rebar –force 我在无人机启动时收到错误, Could not find Hex, which is needed to build dependency :phoenix 我已经发现,通过使用一个老版本的阿尔卑斯 – 仙丹凤:2.0这个问题没有出现,这导致我相信这可能是与hex/仙丹自那时以来更新? 另外,如果我运行这个命令来安装Drone的容器中的hex和螺纹,一旦它被实例化,就没有问题了。 我在实例化的Drone容器上运行了一个whoami ,如果这有所作为,用户就是root。 此外,如果我在本地运行容器并运行mix hex.info ,它正确地指出已安装hex,但问题是在Drone实例化的容器上失败。 例如.drone.yml: pipeline: backend_test: image: bitwalker/alpine-elixir-phoenix commands: – cd api – apk update – apk add postgresql-client – […]

从私人回购获取文件到dockerfile

我目前将我的前端和后端分成两个独立的git回购站。 每个回购有一个docker文件,创build一个图像,并将其发布在私人registry中。 现在,后端回购,我想从前端图像获得编译的生产JS / CSS资产,并将其放置在我的后端回购文件夹中的服务。 什么是完成这个最好的方法?

与postgres服务build立拖延

我没有在一个月左右的时间里运行这个特定的版本,最近我从无人机版本0.5更新到0.7.3 。 我遇到了一个问题,用postgres服务构build一个永远不会完成。 根据日志,它应该是接受连接,但它永远不会超越启动服务的步骤。 例如,将失速 .drone.yml pipeline: Run Something: image: busybox commands: – echo 'hello' services: postgres: image: postgres environment: – POSTGRES_USER=postgres – POSTGRES_PASSWORD=pgpass ports: – '15432:5432' 日志输出 The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized […]

无人机CI推动ECR失败

当我尝试推动图像使用无人机插件亚马逊ECR我收到以下消息: “没有基本的身份validation凭据” 我的.drone.yml文件pipe道: publish-to-ecr: image: plugins/ecr repo: foo registry: xxx.dkr.ecr.us-west-1.amazonaws.com dockerfile: ./Dockerfile tags: – latest access_key: xxx secret_key: xxx region: xxx 我正在使用推广我的本地env和它的工作

无人机CI无法克隆的步骤

我在docker上的一台机器上运行,组成如下: gitlab 无人机(服务器) 无人机(代理) 当我触发一个构build(或由git push触发)时,无人机在这个问题上不断失败: git init Initialized empty Git repository in /drone/src/.git/ git remote add origin http://my-git/amaziagur/location-service.git git fetch –no-tags origin +refs/heads/master: fatal: unable to access 'http://my-git/amaziagur/location-service.git/': Couldn't resolve host 'my-git' exit status 128 这里是docker-compose.yml: version: '2' services: #PROXY gitlab: image: 'gitlab/gitlab-ce:9.1.0-ce.0' restart: always hostname: 'my-git' links: – postgresql:postgresql – redis:redis environment: GITLAB_OMNIBUS_CONFIG: […]

Drone.io图像无效或缺失

我试图使用无人机运行一个MySQL服务 这是我的.drone.yml文件 pipeline: clone: skip_verify: true services: database: image: mysql:latest 我试图与library/mysql和mysql的图像,但无人机不断说图像无效或丢失。 任何想法的人? 我试图看看无人机日志,但一切看起来都很好。

在Drone CI中testingAnsibleangular色,systemd服务不起作用

在testingAnsibleangular色时,我的systemd服务无法启动。 这是我得到的错误, TASK [memcached : Packages Present] ******************************************** changed: [localhost] => (item=[u'memcached', u'libmemcached']) TASK [memcached : Service Enabled] ********************************************* fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find the requested service memcached: host"} 我的.drone.yml pipeline: build: image: samdoran/centos7-ansible privileged: true commands: – echo 'sslverify=0' >> /etc/yum.conf – yum install -y redhat-lsb-core python-devel openldap-devel git […]

DRONE_ADMIN用户的默认pipe理员密码是什么?

在首次使用docker-compose文件进行安装时 ,按照安装说明 , closures注册 DRONE_ADMIN用户的默认密码是什么? Web前端将不允许您在没有login的情况下访问它,也不可能在没有login的情况下使用CLI创build新用户。

如何使用Drone Docker插件中的自定义DNS设置

我在公司代理人后面使用Drone。 当我在那里构buildDocker容器时,Docker将正确的search服务器以及DNS地址插入到容器的/etc/resolv.conf 。 但是,在使用Docker插件时 ,只有search服务器被修补,而名称服务器被设置为默认的Google名称服务器( 8.8.8.8或8.8.4.4 )。 这显然打破了我的构build,因为我的企业代理DNS地址无法parsing到其关联的IP地址。 这是行为意图和/或是否有解决方法,让我通过我的代理连接到互联网?

如何设置持续集成 – 部署:bitbucket,drone.io,docker hub,swarm?

我正在考虑如何使用bitbucket,drone.io,hub.docker.com和swarm(aws ec2)集群来设置持续集成和部署? 我将代码提交给bitbucket bitbucket的web钩子触发drone.io,它构build并运行testing 在每个“绿色”提交中,docker映像被推送到hub.docker.com,并使用“latest”标签部署到集成环境(swarm集群)。 我不知道如何设置步骤3 …