Skip to content

Commit

Permalink
Revert to using Circleci's docker version, upgrade docker-compose, fixes
Browse files Browse the repository at this point in the history
 #471 (#473)

* Revert to using Circleci's docker version, upgrade docker-compose, fixes #471

* Stop getting the new mysql signing key

* See what go version they're using
  • Loading branch information
rfay committed Sep 22, 2017
1 parent 42c2ca5 commit fe1a8c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
17 changes: 4 additions & 13 deletions .circleci/circle_vm_setup.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
#!/usr/bin/env bash

set -o errexit
set -x

# Basic tools

# mysql - old key is expired, so get the new one
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5 >/dev/null 2>&1
sudo apt-get update -qq
sudo apt-get install -qq mysql-client realpath zip

go version

# golang of the version we want
sudo apt-get remove -qq golang &&
wget -q -O /tmp/golang.tgz https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz &&
cd /tmp && tar -xf golang.tgz &&
sudo rm -rf /usr/local/go && sudo mv go /usr/local

# Docker setup
sudo apt-get remove -qq docker docker-engine
sudo apt-get update -qq
sudo apt-get install -qq apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Per docker docs, you always need the stable repository, even if you want to install edge builds as well.
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update -qq
sudo apt-get install -qq docker-ce=17.06.0~ce-0~ubuntu

# docker-compose
sudo curl -s -L "https://github.com/docker/compose/releases/download/1.14.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo curl -s -L "https://github.com/docker/compose/releases/download/1.16.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: 2
jobs:
# 'build' is the default build, the only one triggered automatically by github or anything else.
normal_build_and_test:
machine: true
machine:
image: circleci/classic:201708-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
GOPATH: /home/circleci/go
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:

# nightly is triggered only with nightly_build_trigger.sh
nightly_build:
machine: true
machine:
image: circleci/classic:201708-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
DRUD_DEBUG: "true"
Expand Down Expand Up @@ -118,7 +120,8 @@ jobs:

# 'tag_build' is used to build a tag for release.
tag_build:
machine: true
machine:
image: circleci/classic:201708-01
working_directory: ~/go/src/github.com/drud/ddev
environment:
DRUD_DEBUG: "true"
Expand Down

0 comments on commit fe1a8c6

Please sign in to comment.