2016-05-06 17:30:47 +08:00
|
|
|
|
FROM {{ base_image }}:{{ base_distro_tag }}
|
2015-11-23 12:38:58 +05:30
|
|
|
|
MAINTAINER {{ maintainer }}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2015-12-16 10:49:46 -06:00
|
|
|
|
LABEL kolla_version="{{ kolla_version }}"
|
|
|
|
|
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{% import "macros.j2" as macros with context %}
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% block base_header %}{% endblock %}
|
2015-08-20 21:59:16 +02:00
|
|
|
|
{{ include_header }}
|
|
|
|
|
|
2015-08-23 03:45:03 +00:00
|
|
|
|
ENV KOLLA_BASE_DISTRO {{ base_distro }}
|
|
|
|
|
ENV KOLLA_INSTALL_TYPE {{ install_type }}
|
2015-09-17 09:35:33 -07:00
|
|
|
|
ENV KOLLA_INSTALL_METATYPE {{ install_metatype }}
|
2015-08-23 03:45:03 +00:00
|
|
|
|
|
2016-03-26 16:41:46 -03:00
|
|
|
|
#### Customize PS1 to be used with bash shell
|
|
|
|
|
COPY kolla_bashrc /tmp/
|
2016-06-25 16:59:01 +02:00
|
|
|
|
RUN cat /tmp/kolla_bashrc >> /etc/skel/.bashrc \
|
|
|
|
|
&& cat /tmp/kolla_bashrc >> /root/.bashrc
|
2016-03-26 16:41:46 -03:00
|
|
|
|
|
|
|
|
|
# PS1 var when used /bin/sh shell
|
|
|
|
|
ENV PS1="$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(hostname -s) $(pwd)]$ "
|
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
# For RPM Variants, enable the correct repositories - this should all be done
|
|
|
|
|
# in the base image so repos are consistent throughout the system. This also
|
|
|
|
|
# enables to provide repo overrides at a later date in a simple fashion if we
|
|
|
|
|
# desire such functionality. I think we will :)
|
|
|
|
|
|
2015-09-04 03:17:00 -07:00
|
|
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
|
2015-08-27 20:37:59 -07:00
|
|
|
|
|
2016-05-23 10:15:38 +08:00
|
|
|
|
RUN if [ $(awk '{match($0, /[0-9]+/,version)}END{print version[0]}' /etc/system-release) != "{{ supported_distro_release }}" ]; then \
|
2016-06-25 16:59:01 +02:00
|
|
|
|
echo "Only supported {{ supported_distro_release }} release on {{ base_distro }}"; false; \
|
|
|
|
|
fi \
|
|
|
|
|
&& cat /tmp/kolla_bashrc >> /etc/bashrc
|
2016-03-26 16:41:46 -03:00
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
#### BEGIN REPO ENABLEMENT
|
2016-01-14 11:06:29 +01:00
|
|
|
|
# Turns on Elasticsearch repos
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{% set base_yum_repo_files = [
|
|
|
|
|
'elasticsearch.repo',
|
|
|
|
|
'kibana.yum.repo',
|
|
|
|
|
'MariaDB.repo',
|
2016-07-25 08:51:58 +00:00
|
|
|
|
'influxdb.repo',
|
|
|
|
|
'grafana.repo'
|
2016-08-19 18:37:41 +00:00
|
|
|
|
] %}
|
|
|
|
|
{% for repo_file in base_yum_repo_files | customizable('yum_repo_files') %}
|
|
|
|
|
COPY {{ repo_file }} /etc/yum.repos.d/{{ repo_file }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% set base_yum_url_packages = [
|
|
|
|
|
'http://repo.percona.com/release/7/RPMS/x86_64/percona-release-0.1-3.noarch.rpm'
|
|
|
|
|
] %}
|
|
|
|
|
{{ macros.install_packages(base_yum_url_packages | customizable("yum_url_packages")) }}
|
|
|
|
|
{% set base_yum_repo_keys = [
|
|
|
|
|
'http://yum.mariadb.org/RPM-GPG-KEY-MariaDB',
|
|
|
|
|
'/etc/pki/rpm-gpg/RPM-GPG-KEY-Percona ',
|
|
|
|
|
'https://packages.elastic.co/GPG-KEY-elasticsearch',
|
2016-07-25 08:51:58 +00:00
|
|
|
|
'https://repos.influxdata.com/influxdb.key',
|
|
|
|
|
'https://packagecloud.io/gpg.key',
|
|
|
|
|
'https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana'
|
2016-08-19 18:37:41 +00:00
|
|
|
|
] %}
|
|
|
|
|
|
|
|
|
|
RUN true {% for key in base_yum_repo_keys | customizable('yum_repo_keys') %}&& rpm --import {{ key }} {% endfor %}
|
2015-10-21 04:53:36 -04:00
|
|
|
|
{% if install_metatype in ['rdo', 'mixed'] %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2015-12-15 12:05:39 -05:00
|
|
|
|
{% for cmd in rpm_setup %}
|
|
|
|
|
{{ cmd }}
|
|
|
|
|
{% endfor %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# endif for repo setup for all RHEL except RHEL OSP #}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% if install_metatype == 'rhos' %}
|
|
|
|
|
|
|
|
|
|
# Turn on the RHOS 7.0 repo for RHOS
|
2015-11-03 23:30:35 -05:00
|
|
|
|
RUN yum-config-manager --enable rhel-7-server-rpms \
|
|
|
|
|
&& yum-config-manager --enable rhel-7-server-openstack-7.0-rpms
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if base_distro == 'centos' %}
|
|
|
|
|
|
2016-08-19 18:37:41 +00:00
|
|
|
|
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
|
|
|
|
|
|
|
|
|
|
{% set base_centos_yup_repo_keys = [
|
|
|
|
|
'/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7',
|
|
|
|
|
'/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage',
|
|
|
|
|
'/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization'
|
|
|
|
|
] %}
|
|
|
|
|
|
|
|
|
|
{% set base_centos_yum_repo_packages = [
|
|
|
|
|
'epel-release ',
|
|
|
|
|
'yum-plugin-priorities',
|
2016-09-06 15:52:24 +00:00
|
|
|
|
'centos-release-ceph-jewel',
|
2016-08-19 18:37:41 +00:00
|
|
|
|
'centos-release-qemu-ev'
|
|
|
|
|
] %}
|
|
|
|
|
|
|
|
|
|
{{ macros.install_packages(base_centos_yum_repo_packages | customizable("yum_centos_repo_packages")) }}
|
|
|
|
|
RUN true \
|
|
|
|
|
{% for key in base_centos_yum_repo_keys | customizable('yum_centos_repo_keys') %} && rpm --import {{ key }}{% endfor %} && yum clean all
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# Endif for base_distro centos #}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% if base_distro == 'rhel' %}
|
|
|
|
|
|
|
|
|
|
# Enable couple required repositories for all RHEL builds
|
|
|
|
|
# Turn on EPEL throughout the build
|
2016-04-12 22:18:04 +05:30
|
|
|
|
RUN yum -y install \
|
2016-04-06 01:55:31 -04:00
|
|
|
|
https://mirror.centos.org/centos-7/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm \
|
2015-12-11 10:56:51 +08:00
|
|
|
|
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
|
2016-04-12 22:18:04 +05:30
|
|
|
|
&& yum -y install \
|
|
|
|
|
yum-plugin-priorities \
|
2015-09-12 18:34:55 -07:00
|
|
|
|
&& yum clean all \
|
2015-11-03 23:30:35 -05:00
|
|
|
|
&& yum-config-manager --enable rhel-7-server-optional-rpms \
|
|
|
|
|
&& yum-config-manager --enable rhel-7-server-extras-rpms
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# Endif for base_distro RHEL #}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% if base_distro == 'oraclelinux' %}
|
|
|
|
|
|
2016-08-31 14:32:15 +01:00
|
|
|
|
{% block base_oraclelinux_package_installation %}
|
2016-03-09 15:31:58 +00:00
|
|
|
|
COPY oraclelinux-extras.repo /etc/yum.repos.d/oraclelinux-extras.repo
|
2016-04-12 22:18:04 +05:30
|
|
|
|
RUN yum -y install \
|
2016-03-15 16:16:53 +00:00
|
|
|
|
tar \
|
2015-08-19 16:58:12 +00:00
|
|
|
|
yum-utils \
|
2016-04-06 01:55:31 -04:00
|
|
|
|
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm \
|
|
|
|
|
&& rpm -Uvh --nodeps \
|
2016-04-28 14:38:18 +01:00
|
|
|
|
http://buildlogs.centos.org/centos/7/cloud/x86_64/openstack-mitaka/centos-release-openstack-mitaka-1-3.el7.noarch.rpm \
|
2016-09-06 15:52:24 +00:00
|
|
|
|
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-ceph-jewel-1.0-1.el7.centos.noarch.rpm \
|
2016-04-06 01:55:31 -04:00
|
|
|
|
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-qemu-ev-1.0-1.el7.noarch.rpm \
|
|
|
|
|
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-virt-common-1-1.el7.centos.noarch.rpm \
|
|
|
|
|
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/centos-release-storage-common-1-2.el7.centos.noarch.rpm \
|
|
|
|
|
&& sed -i 's/\$releasever/7/g' /etc/yum.repos.d/CentOS-*.repo \
|
2015-12-11 10:56:51 +08:00
|
|
|
|
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
|
2016-04-06 01:55:31 -04:00
|
|
|
|
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage \
|
2016-06-25 16:59:01 +02:00
|
|
|
|
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization \
|
|
|
|
|
&& yum-config-manager --enable ol7_optional_latest ol7_addons \
|
|
|
|
|
&& yum -y install \
|
|
|
|
|
yum-plugin-priorities \
|
2016-03-10 10:24:19 +00:00
|
|
|
|
&& yum clean all
|
2016-08-31 14:32:15 +01:00
|
|
|
|
{% endblock %}
|
2015-08-19 16:58:12 +00:00
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# Endif for base_distro oraclelinux #}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% if base_distro == 'fedora' %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
|
|
|
|
# Set up repositories
|
2016-04-12 22:18:04 +05:30
|
|
|
|
RUN yum -y install \
|
|
|
|
|
https://rdo.fedorapeople.org/rdo-release.rpm \
|
|
|
|
|
dnf \
|
|
|
|
|
dnf-plugins-core \
|
|
|
|
|
yum-plugin-priorities \
|
2015-08-30 07:47:09 +00:00
|
|
|
|
&& yum clean all
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# Endif for base_distro fedora #}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
#### END REPO ENABLEMENT
|
|
|
|
|
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# We are back to the basic if conditional here which is:
|
|
|
|
|
if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] #}
|
2016-09-06 15:52:24 +00:00
|
|
|
|
{% block base_redhat_binary_versionlock %}{% endblock %}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% if install_type == 'binary' %}
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{% set base_centos_binary_packages = [
|
|
|
|
|
'sudo',
|
|
|
|
|
'which',
|
|
|
|
|
'python',
|
|
|
|
|
'lvm2',
|
|
|
|
|
'scsi-target-utils',
|
2016-09-01 06:37:43 -07:00
|
|
|
|
'iproute',
|
2016-08-19 18:37:41 +00:00
|
|
|
|
'iscsi-initiator-utils'
|
|
|
|
|
] %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
# Install base packages
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{{ macros.install_packages( base_centos_binary_packages | customizable("centos_binary_packages")) }}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# Endif for install_type binary #}
|
2015-09-12 18:34:55 -07:00
|
|
|
|
|
|
|
|
|
{% if install_type == 'source' %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{% set base_centos_source_packages = [
|
|
|
|
|
'curl',
|
|
|
|
|
'sudo',
|
|
|
|
|
'tar',
|
|
|
|
|
'which',
|
|
|
|
|
'lvm2',
|
|
|
|
|
'scsi-target-utils',
|
2016-09-01 06:37:43 -07:00
|
|
|
|
'iproute',
|
2016-08-19 18:37:41 +00:00
|
|
|
|
'iscsi-initiator-utils'
|
|
|
|
|
] %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
# Update packages
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{{ macros.install_packages( base_centos_source_packages | customizable("centos_source_packages")) }}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2015-09-12 18:34:55 -07:00
|
|
|
|
{% endif %}
|
2015-12-02 17:53:52 +08:00
|
|
|
|
{# endif for install type is source for RPM based distros #}
|
|
|
|
|
{# endif for base_distro centos,fedora,oraclelinux,rhel #}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
|
|
2016-05-23 10:15:38 +08:00
|
|
|
|
RUN if [ $(awk -F '=' '/DISTRIB_RELEASE/{print $2}' /etc/lsb-release) != "{{ supported_distro_release }}" ]; then \
|
|
|
|
|
echo "Only supported {{ supported_distro_release }} release on {{ base_distro }}"; false; fi
|
|
|
|
|
|
2016-03-26 16:41:46 -03:00
|
|
|
|
# Customize PS1 bash shell
|
|
|
|
|
RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc
|
|
|
|
|
|
2015-08-20 14:31:22 +00:00
|
|
|
|
# This will prevent questions from being asked during the install
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
2016-08-05 15:42:52 +02:00
|
|
|
|
# Reducing disk footprint
|
|
|
|
|
COPY dpkg_reducing_disk_footprint /etc/dpkg/dpkg.cfg.d/dpkg_reducing_disk_footprint
|
|
|
|
|
|
2016-07-22 11:39:55 -07:00
|
|
|
|
# Need apt-transport-https BEFORE we replace sources.list or apt-get update wont work!
|
|
|
|
|
RUN apt-get update && apt-get -y install --no-install-recommends apt-transport-https ca-certificates
|
|
|
|
|
|
2016-03-05 21:24:27 +01:00
|
|
|
|
COPY sources.list.{{ base_distro }} /etc/apt/sources.list
|
|
|
|
|
COPY apt_preferences.{{ base_distro }} /etc/apt/preferences
|
|
|
|
|
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% set base_apt_packages = [
|
|
|
|
|
'curl',
|
2016-06-18 11:44:36 +08:00
|
|
|
|
'gawk',
|
2016-09-01 06:37:43 -07:00
|
|
|
|
'iproute2',
|
2016-06-14 21:50:04 +08:00
|
|
|
|
'kmod',
|
2016-06-07 18:23:42 +00:00
|
|
|
|
'lvm2',
|
|
|
|
|
'open-iscsi',
|
|
|
|
|
'python',
|
2016-06-14 21:50:04 +08:00
|
|
|
|
'sudo',
|
2016-06-07 18:23:42 +00:00
|
|
|
|
'tgt']
|
2016-03-05 21:24:27 +01:00
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
{% if base_distro == 'ubuntu' %}
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% set base_apt_keys = [
|
2016-06-14 21:50:04 +08:00
|
|
|
|
'0xF1656F24C74CD1D8',
|
2016-03-05 21:24:27 +01:00
|
|
|
|
'391A9AA2147192839E9DB0315EDB1B62EC4926EA',
|
|
|
|
|
'430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A',
|
|
|
|
|
'08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
|
|
|
|
'46095ACC8548582C1A2699A9D27D666CD88E42B4',
|
2016-03-24 23:45:58 +01:00
|
|
|
|
'58118E89F3A912897C070ADBF76221572C52609D',
|
2016-07-23 17:29:27 +00:00
|
|
|
|
'05CE15085FC09D18E99EFB22684A14CF2582E0C5',
|
2016-07-25 08:51:58 +00:00
|
|
|
|
'418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB',
|
2016-03-05 21:24:27 +01:00
|
|
|
|
] %}
|
|
|
|
|
{% elif base_distro == 'debian' %}
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% set base_apt_keys = [
|
2016-03-05 21:24:27 +01:00
|
|
|
|
'08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
|
|
|
|
'58118E89F3A912897C070ADBF76221572C52609D',
|
|
|
|
|
'0xcbcb082a1bb943db',
|
|
|
|
|
'D27D666CD88E42B4',
|
2016-07-23 17:29:27 +00:00
|
|
|
|
'05CE15085FC09D18E99EFB22684A14CF2582E0C5',
|
2016-07-25 08:51:58 +00:00
|
|
|
|
'418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB',
|
2016-03-05 21:24:27 +01:00
|
|
|
|
] %}
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% set base_apt_packages = base_apt_packages +
|
|
|
|
|
['sudo',]
|
2016-03-05 21:24:27 +01:00
|
|
|
|
%}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% block base_ubuntu_package_installation %}
|
2016-03-05 21:24:27 +01:00
|
|
|
|
RUN true \
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{% for key in base_apt_keys | customizable('apt_keys') %}
|
2016-03-05 21:24:27 +01:00
|
|
|
|
&& apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 {{ key }} \
|
|
|
|
|
{% endfor %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
&& apt-get update \
|
2016-03-05 21:24:27 +01:00
|
|
|
|
&& apt-get -y upgrade \
|
|
|
|
|
&& apt-get -y dist-upgrade \
|
2016-08-19 18:37:41 +00:00
|
|
|
|
&& apt-get -y install --no-install-recommends {% for package in base_apt_packages | customizable('apt_packages') %}{{ package }} {% endfor %} \
|
2016-03-05 21:24:27 +01:00
|
|
|
|
&& apt-get clean
|
2016-06-07 18:23:42 +00:00
|
|
|
|
{% endblock %}
|
2016-03-05 21:24:27 +01:00
|
|
|
|
|
|
|
|
|
{% if base_distro == 'ubuntu' %}
|
|
|
|
|
RUN sed -i "s|'purelib': '\$base/local/lib/python\$py_version_short/dist-packages',|'purelib': '\$base/lib/python\$py_version_short/dist-packages',|;s|'platlib': '\$platbase/local/lib/python\$py_version_short/dist-packages',|'platlib': '\$platbase/lib/python\$py_version_short/dist-packages',|;s|'headers': '\$base/local/include/python\$py_version_short/\$dist_name',|'headers': '\$base/include/python\$py_version_short/\$dist_name',|;s|'scripts': '\$base/local/bin',|'scripts': '\$base/bin',|;s|'data' : '\$base/local',|'data' : '\$base',|" /usr/lib/python2.7/distutils/command/install.py \
|
2015-08-24 15:17:42 +00:00
|
|
|
|
&& rm -rf /usr/lib/python2.7/site-packages \
|
|
|
|
|
&& ln -s dist-packages /usr/lib/python2.7/site-packages
|
2016-03-05 21:24:27 +01:00
|
|
|
|
{% endif %}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
|
2016-03-05 21:24:27 +01:00
|
|
|
|
{# endif for base_distro ubuntu, debian #}
|
2015-08-07 04:36:20 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
2015-10-01 07:43:18 +00:00
|
|
|
|
COPY set_configs.py /usr/local/bin/kolla_set_configs
|
2015-09-30 11:23:39 +00:00
|
|
|
|
COPY start.sh /usr/local/bin/kolla_start
|
2015-11-08 16:34:32 -05:00
|
|
|
|
COPY sudoers /etc/sudoers
|
2016-04-05 22:48:45 +02:00
|
|
|
|
COPY curlrc /root/.curlrc
|
2015-09-30 11:23:39 +00:00
|
|
|
|
RUN touch /usr/local/bin/kolla_extend_start \
|
2015-11-08 16:34:32 -05:00
|
|
|
|
&& chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \
|
|
|
|
|
&& chmod 440 /etc/sudoers \
|
2016-06-25 16:59:01 +02:00
|
|
|
|
&& groupadd kolla \
|
2016-08-18 16:42:02 +08:00
|
|
|
|
&& rm -f /tmp/kolla_bashrc \
|
|
|
|
|
&& curl -sSL https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 -o /usr/local/bin/dumb-init \
|
|
|
|
|
&& chmod +x /usr/local/bin/dumb-init
|
2016-03-26 16:41:46 -03:00
|
|
|
|
|
2016-08-19 18:37:41 +00:00
|
|
|
|
{% block base_footer %}{% endblock %}
|
2015-09-30 11:23:39 +00:00
|
|
|
|
CMD ["kolla_start"]
|