Commit Graph

13 Commits

Author SHA1 Message Date
Michał Dulko
86bf2c6d9d Skip linux-image-extra-$(uname -r) on 18.04
Seems like aforementioned package is not available on Ubuntu 18.04
(Bionic). This commit excludes that version from installation of Docker.

Change-Id: Ib1864497dd19caadf9077386ce278712e4f5de8f
(cherry picked from commit 17a865e064)
2019-03-24 23:41:12 +00:00
Daniel Mellado
83acf1400e Disable clear containers by default
ENABLE_CLEAR_CONTAINER should be set to false by default as they're
relying on third party repos which could break devstack installation at
some point.

Change-Id: I99b26650f6c68e8563dcde589bda7ccdc6a19a46
2018-01-25 12:44:48 +00:00
Madhuri Kumari
f4b1a02959 Add support for Clear Container Runtime
This patch installs Clear Container[1] as one of the runtime
for docker.

[1] https://clearlinux.org/features/intel%C2%AE-clear-containers

Change-Id: Ibacebf84ce1ff68a779589c7c9e17916503cafab
2018-01-09 10:16:22 +05:30
Antoni Segura Puimedon
f3c2d301fb Add configurable docker cgroupdriver
Some distros docker packaging use systemd instead of cgroupfs as the
cgroupdriver. This patch allows users to choose their cgroupdriver.

Change-Id: I95b51591d0aa5495ec583c3c87c77942109b4067
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2017-10-27 10:54:28 +02:00
Hongbin Lu
718e499466 Set debug mode according to ENABLE_DEBUG_LOG_LEVEL
Docker turn off debug mode by default, but the non-debug mode
doesn't provide enough information for development. It is handy
to have a way to turn on the debug mode.

Change-Id: I403ea7cc43b0b0808bfac3ec6f9ac7586f4723f6
2017-09-27 23:04:40 +00:00
Hongbin Lu
b8f4f066ba Make docker group configurable
In devstack gate, jobs might be run with users other than $STACK_USER,
so the docker group should be configurable.

Change-Id: I64665b9883094d5603f3e737a1c08d924a058960
2017-09-21 20:01:17 +00:00
Hongbin Lu
3a078f9768 Remove duplicated session in systemd unit file
The session 'Service' is duplicated in the docker systemd drop-in.

Change-Id: Ia391052c4376be207ff5e43fb18ddcb5251a0784
2017-07-04 22:28:57 +00:00
Hongbin Lu
1f79d17844 Prevent devstack exit on printing warning msg
It looks the function 'warn' might return unsucessfully which
abort the devstack script. Let's use echo instead.

Change-Id: I931f3c649fb3637fd7be667644731329fa12cd07
2017-06-14 14:45:47 +00:00
Hongbin Lu
e39a806b9f Handle missing of package linux-image-extra-virtual
This package doesn't present at ec2 Ubuntu instance. Docker
installation may or may not work in this case. This commit
detect the presence of these packages and print a warning.

Change-Id: I2c5b4ed1446d63949be4d181da696933df4c64f8
2017-05-27 22:57:21 +00:00
Hongbin Lu
d9cbc6c325 Removing the confusing SWARM_MODE variable
The SWARM_MODE variable is for determining whether to set the
cluster_store options of docker daemon. Therefore, change it to
DOCKER_CLUSTER_STORE to make it clear.

Change-Id: I79f00c7cc158d825627ce6a9d28b053b0cf3c076
2017-04-29 13:52:43 -04:00
Hongbin Lu
a6365b0570 Add gate_hook and post_test_hook
We are setting up a devstack job for this plugin. These hooks will
be leveraged by the job.

Change-Id: I751c46bcc1768894f588c0f6689555a4392082b0
2017-04-28 01:33:25 +00:00
cooldharma06
7d1bd53785 Update docker with proxy configuration
Change-Id: I7089acb561d13726511bd10ca9d60738e7f4719a
Closes-Bug: #1684057
2017-04-26 10:35:50 -04:00
Hongbin Lu
69716eb42f Add docker installation script
There are several projects that tried to install docker in different
ways. This potentially lead to failure of more than one such services
were enabled. This commit consolidate docker installation into
a devstack plugin so that other services could depend on it.

The initial script was mainly from Kuryr-libnetwork. Kuryr, Fuxi,
and Zun might leverage this script to install Docker in the future.

Change-Id: I97dbff2f361acc98b12ec6f40ab115c8548477a3
2017-04-17 17:13:45 -04:00