From d8c965624c5dc0403995474eeca9c977b82c4101 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Fri, 29 Jun 2018 02:34:19 -0700 Subject: [PATCH] [CI] Install docker explicitly before trying to use it --- .circleci/config.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c3af07a..d7e0ff4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,9 +35,30 @@ jobs: - setup_remote_docker - run: - name: build docker image + #FIXME: Bake this into the base image + name: install docker command: | - docker build -t tljh-systemd . + apt-get update + + apt-get install --yes \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg2 \ + software-properties-common + + curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - + add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/debian \ + $(lsb_release -cs) \ + stable" + + apt-get update + apt-get install docker-ce + - run: + name: build CI image + command: | + docker build -t tljh-systemd . - run: name: start docker image