Skip to content

Commit 25873ae

Browse files
committed
Merge pull request #2579 from carmstrong/coreos_beta_channel
chore(*): bump CoreOS to 509.1.0 for Docker vulnerability
2 parents f8bdcd1 + b5ba7c4 commit 25873ae

12 files changed

Lines changed: 40 additions & 19 deletions

File tree

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ else
3535
$vb_cpus = 1
3636
end
3737

38-
COREOS_VERSION = "494.0.0"
38+
COREOS_VERSION = "509.1.0"
3939

4040
if File.exist?(CONFIG)
4141
require CONFIG

builder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F9
2121
RUN apt-get update && apt-get install -yq \
2222
openssh-server git \
2323
aufs-tools iptables lxc \
24-
lxc-docker-1.3.0
24+
lxc-docker-1.3.2
2525

2626
# install jq for parsing json
2727
RUN curl http://stedolan.github.io/jq/download/linux64/jq > /usr/bin/jq && chmod 755 /usr/bin/jq

builder/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ CONFD_PID=$!
5151
test -e /var/run/docker.sock && rm -f /var/run/docker.sock
5252

5353
# spawn a docker daemon to run builds
54-
docker -d --storage-driver=$STORAGE_DRIVER --bip=172.19.42.1/16 &
54+
docker -d --storage-driver=$STORAGE_DRIVER --bip=172.19.42.1/16 --insecure-registry 10.0.0.0/8 --insecure-registry 172.16.0.0/12 --insecure-registry 192.168.0.0/16 &
5555
DOCKER_PID=$!
5656

5757
# wait for docker to start

builder/templates/builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if [ ! -f Dockerfile ]; then
118118
docker attach $JOB
119119

120120
# copy out the compiled slug
121-
docker cp $JOB:/tmp/slug.tgz .
121+
docker cp $JOB:/tmp/slug.tgz $TMP_DIR
122122
# copy over the Dockerfile shim to the build dir
123123
cp $DOCKERFILE_SHIM ./Dockerfile
124124
fi

contrib/coreos/user-data.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ write_files:
5353
function nse() {
5454
docker exec -it $1 bash
5555
}
56+
- path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf
57+
content: |
58+
[Service]
59+
Environment="DOCKER_OPTS=--insecure-registry 10.0.0.0/8 --insecure-registry 172.16.0.0/12 --insecure-registry 192.168.0.0/16"
5660
- path: /run/deis/bin/get_image
5761
permissions: '0755'
5862
content: |

contrib/ec2/deis.template.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@
8484

8585
"Mappings" : {
8686
"CoreOSAMIs" : {
87-
"eu-central-1" : { "PV" : "ami-0cae9811", "HVM" : "ami-12ae980f" },
88-
"ap-northeast-1" : { "PV" : "ami-9f60599e", "HVM" : "ami-9d60599c" },
89-
"sa-east-1" : { "PV" : "ami-21ca7c3c", "HVM" : "ami-23ca7c3e" },
90-
"ap-southeast-2" : { "PV" : "ami-adb9d697", "HVM" : "ami-afb9d695" },
91-
"ap-southeast-1" : { "PV" : "ami-0eebc85c", "HVM" : "ami-0cebc85e" },
92-
"us-east-1" : { "PV" : "ami-30058d58", "HVM" : "ami-3e058d56" },
93-
"us-west-2" : { "PV" : "ami-b34f0483", "HVM" : "ami-b14f0481" },
94-
"us-west-1" : { "PV" : "ami-ff7264ba", "HVM" : "ami-f97264bc" },
95-
"eu-west-1" : { "PV" : "ami-1e47f269", "HVM" : "ami-1c47f26b" }
87+
"eu-central-1" : { "PV" : "ami-9623128b", "HVM" : "ami-94231289" },
88+
"ap-northeast-1" : { "PV" : "ami-d6999dd7", "HVM" : "ami-d8999dd9" },
89+
"sa-east-1" : { "PV" : "ami-79a41564", "HVM" : "ami-7fa41562" },
90+
"ap-southeast-2" : { "PV" : "ami-e1dfb1db", "HVM" : "ami-e3dfb1d9" },
91+
"ap-southeast-1" : { "PV" : "ami-7598ba27", "HVM" : "ami-7b98ba29" },
92+
"us-east-1" : { "PV" : "ami-00158768", "HVM" : "ami-0215876a" },
93+
"us-west-2" : { "PV" : "ami-d92377e9", "HVM" : "ami-d72377e7" },
94+
"us-west-1" : { "PV" : "ami-a7adbce2", "HVM" : "ami-a5adbce0" },
95+
"eu-west-1" : { "PV" : "ami-c6e858b1", "HVM" : "ami-d8e858af" }
9696

9797
},
9898
"RootDevices" : {

contrib/rackspace/provision-rackspace-cluster.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ $CONTRIB_DIR/util/check-user-data.sh
4848

4949
i=1 ; while [[ $i -le $DEIS_NUM_INSTANCES ]] ; do \
5050
echo_yellow "Provisioning deis-$i..."
51-
# TODO: update to CoreOS 494.0.0 when it is available at Rackspace
52-
# This image is CoreOS 490.0.0
53-
supernova $ENV boot --image 3c7e97fa-a9f5-4b09-97aa-c94e66dbbfeb --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --no-service-net --nic net-id=$NETWORK_ID --config-drive true deis-$i ; \
51+
# TODO: update to CoreOS 509.1.0 when it is available at Rackspace
52+
# This image is CoreOS 494.0.0
53+
supernova $ENV boot --image 1c423602-ea76-4263-b56b-0a2fa3e8c663 --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --no-service-net --nic net-id=$NETWORK_ID --config-drive true deis-$i ; \
5454
((i = i + 1)) ; \
5555
done
5656

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Due to changes introduced in Docker 1.3.1 related to insecure Docker registries, the hosts running
2+
Deis must be able to communicate via a private network in one of the RFC1918 private address spaces:
3+
``10.0.0.0/8``, ``172.16.0.0/12``, or ``192.168.0.0/16``.

docs/contributing/hacking.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ Make sure it meets the following requirements:
103103
#. You can push Docker images from your workstation
104104
#. Hosts in the cluster can pull images with the same URL
105105

106+
.. note::
107+
108+
If the development registry is insecure and has an IP address in a range other than ``10.0.0.0/8``,
109+
``172.16.0.0/12``, or ``192.168.0.0/16``, you'll have to modify ``contrib/coreos/user-data.example``
110+
and whitelist your development registry so the daemons can pull your custom components.
111+
106112
Development Workflow
107113
--------------------
108114

docs/installing_deis/baremetal.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Update $private_ipv4
6060
the user-data with the (private) IP address of the node.
6161

6262

63+
.. include:: ../_includes/_private-network.rst
64+
6365
Add Environment
6466
^^^^^^^^^^^^^^^
6567

@@ -96,8 +98,9 @@ Start the installation
9698
coreos-install -C alpha -c /tmp/config -d /dev/sda
9799
98100
99-
This will install the latest `CoreOS`_ alpha release to disk. To specify a specific CoreOS version,
100-
append the ``-V`` parameter to the install command, e.g. ``-V 494.0.0``.
101+
This will install the latest `CoreOS`_ alpha release to disk. The Deis provision scripts for other
102+
platforms typically specify a CoreOS version - currently, ``509.1.0``. To specify a specific CoreOS
103+
version, append the ``-V`` parameter to the install command, e.g. ``-V 509.1.0``.
101104

102105
After the installation has finished, reboot your server. Once your machine is back up, you should
103106
be able to log in as the `core` user using the `deis` ssh key.

0 commit comments

Comments
 (0)