Cheatsheet
Change the value in https://<hostname>:8800/hosts
| $ docker run --rm -it debian:stretch-slim /bin/bash | |
| root@800ddac7e72e:/# cat /etc/os-release | |
| PRETTY_NAME="Debian GNU/Linux 9 (stretch)" | |
| NAME="Debian GNU/Linux" | |
| VERSION_ID="9" | |
| VERSION="9 (stretch)" | |
| ID=debian | |
| HOME_URL="https://www.debian.org/" | |
| SUPPORT_URL="https://www.debian.org/support" | |
| BUG_REPORT_URL="https://bugs.debian.org/" |
| ➜ /tmp # containers fail to start when using Docker 1.3.0 with lxc backend and volume mounting | |
| ➜ /tmp git clone https://github.com/jpetazzo/dind.git 2>/dev/null | |
| ➜ /tmp cd dind; sed -i -e 's|docker -d|docker -d -e lxc|g' wrapdocker | |
| ➜ dind git:(master) ✗ docker build -t dind . 2>/dev/null 1>/dev/null | |
| ➜ dind git:(master) ✗ docker run --privileged -t -i dind | |
| root@aa10bdaa9115:/# 2014/10/16 21:54:05 docker daemon: 1.3.0 c78088f; execdriver: lxc; graphdriver: | |
| [935dd628] +job serveapi(unix:///var/run/docker.sock) | |
| [935dd628] +job init_networkdriver() | |
| [info] Listening for HTTP on unix (/var/run/docker.sock) | |
| [935dd628] -job init_networkdriver() = OK (0) |
| ubuntu@ip-10-63-130-120:~$ uname -a | |
| Linux ip-10-63-130-120 3.14.19-031419-generic #201409171336 SMP Wed Sep 17 17:37:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
| ubuntu@ip-10-63-130-120:~$ dpkg -l |grep lxc | |
| ii liblxc1 1.0.5-0ubuntu0.1 amd64 Linux Containers userspace tools (library) | |
| ii lxc 1.0.5-0ubuntu0.1 amd64 Linux Containers userspace tools | |
| ii lxc-templates 1.0.5-0ubuntu0.1 amd64 Linux Containers userspace tools (templates) | |
| ii python3-lxc 1.0.5-0ubuntu0.1 amd64 Linux Containers userspace tools (Python 3.x bindings) | |
| ubuntu@ip-10-63-130-120:~$ dpkg -l |grep cgroup | |
| ii cgmanager 0.24-0ubuntu7 amd64 Central cgroup manager daemon | |
| ii cgmanager-utils 0.24-0ubuntu7 amd64 Central cgroup manager da |
| dependencies: | |
| cache_directories: | |
| - "~/apache-maven-3.1.1" | |
| pre: | |
| - "[[ -d ~/apache-maven-3.1.1 ]] || (curl -L -o ~/maven.tar.gz 'http://mirrors.sonic.net/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz' && tar -xz -C ~ -f ~/maven.tar.gz)" | |
| - echo 'export PATH=~/apache-maven-3.1.1/bin:$PATH' >> ~/.circlerc |
| dependencies: | |
| cache_directories: | |
| - "~/phantomjs-1.9.2-linux-x86_64" | |
| pre: | |
| - "[[ -d ~/neo4j-community-1.9.6/bin/neo4j ]] || (curl -L -o ~/phantom.js.tar.bz2 https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 && tar -x -C ~ -f ~/phantom.js.tar.bz2)" | |
| - ln -sf ~/phantomjs-1.9.2-linux-x86_64/bin/phantomjs ~/bin/phantomjs |
| dependencies: | |
| cache_directories: | |
| - "~/neo4j-community-1.9.6/bin/neo4j" | |
| pre: | |
| - "[[ -d ~/neo4j-community-1.9.6/bin/neo4j ]] || (curl -L -o ~/neo4j.tar.gz http://dist.neo4j.org/neo4j-community-1.9.6-unix.tar.gz && tar -C ~ -xzf ~/neo4j.tar.gz)" | |
| - ~/neo4j-community-1.9.6/bin/neo4j start |
| test: | |
| post: | |
| - bundle exec rspec -I app/caredox --color --order rand --format progress: | |
| environment: | |
| SELENIUM_HOST: hub.browserstack.com | |
| SELENIUM_PORT: 80 | |
| BS_AUTOMATE_PROJECT: "Run on circleCI" | |
| BS_AUTOMATE_BUILD: "build No. $CIRCLE_BUILD_NUM for circleCI" | |
| SELENIUM_PLATFORM: WINDOWS | |
| SELENIUM_BROWSER: IE |
| dependencies: | |
| cache_directories: | |
| - "~/zookeeper-3.4.5" | |
| - "~/kafka_2.8.0-0.8.0" | |
| pre: | |
| - "[[ -d ~/zookeeper-3.4.5 ]] || ( curl -L -o ~/zookeeper.tar.gz 'http://mirror.cogentco.com/pub/apache/zookeeper/current/zookeeper-3.4.5.tar.gz' && tar -xz -C ~ -f ~/zookeeper.tar.gz )" | |
| - "[[ -d ~/kafka_2.8.0-0.8.0 ]] || ( curl -L -o ~/kafka.tar.gz 'http://mirror.metrocast.net/apache/kafka/0.8.0/kafka_2.8.0-0.8.0.tar.gz' && tar -xz -C ~ -f ~/kafka.tar.gz )" | |
| - cp ~/zookeeper-3.4.5/conf/zoo_sample.cfg ~/zookeeper-3.4.5/conf/zoo.cfg | |
| - ~/zookeeper-3.4.5/bin/zkServer.sh start |
| curl -L -o /tmp/grunt-cli.tar.gz http://circle-support-bucket.s3.amazonaws.com/grunt-cli.tar.gz | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.10.22/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.8.2/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.8.12/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.8.19/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.8.22/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.10.0/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.10.5/lib/node_modules/ | |
| tar -xzf /tmp/grunt-cli.tar.gz -C /home/ubuntu/nvm/v0.10.11/lib/node_modules/ |