Skip to content

Commit

Permalink
Update API version to 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: Aanand Prasad <[email protected]>
  • Loading branch information
aanand committed Jul 29, 2015
1 parent 2759ab5 commit 118a389
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,14 @@ RUN set -ex; \
rm -rf pip-7.0.1; \
rm pip-7.0.1.tar.gz

ENV ALL_DOCKER_VERSIONS 1.6.2 1.7.1
ENV ALL_DOCKER_VERSIONS 1.7.1

RUN set -ex; \
curl https://get.docker.com/builds/Linux/x86_64/docker-1.6.2 -o /usr/local/bin/docker-1.6.2; \
chmod +x /usr/local/bin/docker-1.6.2; \
curl https://get.docker.com/builds/Linux/x86_64/docker-1.7.1 -o /usr/local/bin/docker-1.7.1; \
chmod +x /usr/local/bin/docker-1.7.1

# Set the default Docker to be run
RUN ln -s /usr/local/bin/docker-1.6.2 /usr/local/bin/docker
RUN ln -s /usr/local/bin/docker-1.7.1 /usr/local/bin/docker

RUN useradd -d /home/user -m -s /bin/bash user
WORKDIR /code/
Expand Down
2 changes: 1 addition & 1 deletion compose/cli/docker_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def docker_client():
cert_path = os.path.join(os.environ.get('HOME', ''), '.docker')

base_url = os.environ.get('DOCKER_HOST')
api_version = os.environ.get('COMPOSE_API_VERSION', '1.18')
api_version = os.environ.get('COMPOSE_API_VERSION', '1.19')

tls_config = None

Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Compose with a `curl` command.

## Install Docker

First, install Docker version 1.6 or greater:
First, install Docker version 1.7.1 or greater:

- [Instructions for Mac OS X](http://docs.docker.com/installation/mac/)
- [Instructions for Ubuntu](http://docs.docker.com/installation/ubuntulinux/)
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_create_container_with_cpu_shares(self):
service = self.create_service('db', cpu_shares=73)
container = service.create_container()
service.start_container(container)
self.assertEqual(container.inspect()['Config']['CpuShares'], 73)
self.assertEqual(container.get('HostConfig.CpuShares'), 73)

def test_build_extra_hosts(self):
# string
Expand Down Expand Up @@ -183,7 +183,7 @@ def test_create_container_with_cpu_set(self):
service = self.create_service('db', cpuset='0')
container = service.create_container()
service.start_container(container)
self.assertEqual(container.inspect()['Config']['Cpuset'], '0')
self.assertEqual(container.get('HostConfig.CpusetCpus'), '0')

def test_create_container_with_read_only_root_fs(self):
read_only = True
Expand Down

0 comments on commit 118a389

Please sign in to comment.