Add Dockerfile template for swift
Change-Id: Ie500f9b8640129e464075e4bebd628cf4a4d7f86 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
9bd3ea7207
commit
0a1c94c33f
17
docker_templates/swift/swift-account-server/Dockerfile.j2
Normal file
17
docker_templates/swift/swift-account-server/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
openstack-swift-account \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-account-server/config-external.sh
Symbolic link
1
docker_templates/swift/swift-account-server/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-account-server/config-external.sh
|
1
docker_templates/swift/swift-account-server/start.sh
Symbolic link
1
docker_templates/swift/swift-account-server/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-account-server/start.sh
|
32
docker_templates/swift/swift-base/Dockerfile.j2
Normal file
32
docker_templates/swift/swift-base/Dockerfile.j2
Normal file
@ -0,0 +1,32 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install openstack-swift && yum clean all
|
||||
|
||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||
|
||||
RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD ./swift.tar /
|
||||
RUN ln -s /swift-* /swift
|
||||
|
||||
RUN cd /swift \
|
||||
&& useradd --user-group swift \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install /swift \
|
||||
&& mkdir /etc/swift /var/log/swift \
|
||||
&& cp -r /swift/etc/* /etc/swift/ \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY config-swift.sh build-swift-ring.py /opt/kolla/
|
||||
RUN mkdir /opt/swift
|
1
docker_templates/swift/swift-base/build-swift-ring.py
Symbolic link
1
docker_templates/swift/swift-base/build-swift-ring.py
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-base/build-swift-ring.py
|
1
docker_templates/swift/swift-base/config-swift.sh
Symbolic link
1
docker_templates/swift/swift-base/config-swift.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-base/config-swift.sh
|
17
docker_templates/swift/swift-container-server/Dockerfile.j2
Normal file
17
docker_templates/swift/swift-container-server/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
openstack-swift-container \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-container-server/config-external.sh
Symbolic link
1
docker_templates/swift/swift-container-server/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-container-server/config-external.sh
|
1
docker_templates/swift/swift-container-server/start.sh
Symbolic link
1
docker_templates/swift/swift-container-server/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-container-server/start.sh
|
13
docker_templates/swift/swift-data/Dockerfile.j2
Normal file
13
docker_templates/swift/swift-data/Dockerfile.j2
Normal file
@ -0,0 +1,13 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
# NOTE(pbourke): This is emulating the Swift "all-in-one" setups where there are 3 disks/partitions
|
||||
# on which to mirror data. This is extremely inefficient and is really only to prove everything
|
||||
# works in an AIO setup. For production deploys the Ansible provisioned setup should be used.
|
||||
VOLUME [ "/srv/node/sdb1" ]
|
||||
VOLUME [ "/srv/node/sdb2" ]
|
||||
VOLUME [ "/srv/node/sdb3" ]
|
||||
|
||||
# Command needed to start the data container.
|
||||
# Note: data containers do not need to be persistent.
|
||||
CMD ["/bin/true"]
|
@ -0,0 +1,7 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-object-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-object-auditor/config-external.sh
Symbolic link
1
docker_templates/swift/swift-object-auditor/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-auditor/config-external.sh
|
1
docker_templates/swift/swift-object-auditor/start.sh
Symbolic link
1
docker_templates/swift/swift-object-auditor/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-auditor/start.sh
|
14
docker_templates/swift/swift-object-base/Dockerfile.j2
Normal file
14
docker_templates/swift/swift-object-base/Dockerfile.j2
Normal file
@ -0,0 +1,14 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
openstack-swift-object \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY config-swift-object.sh /opt/kolla/
|
1
docker_templates/swift/swift-object-base/config-swift-object.sh
Symbolic link
1
docker_templates/swift/swift-object-base/config-swift-object.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-base/config-swift-object.sh
|
18
docker_templates/swift/swift-object-expirer/Dockerfile.j2
Normal file
18
docker_templates/swift/swift-object-expirer/Dockerfile.j2
Normal file
@ -0,0 +1,18 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-object-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
openstack-swift-proxy \
|
||||
openstack-swift-container \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-object-expirer/config-external.sh
Symbolic link
1
docker_templates/swift/swift-object-expirer/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-expirer/config-external.sh
|
1
docker_templates/swift/swift-object-expirer/start.sh
Symbolic link
1
docker_templates/swift/swift-object-expirer/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-expirer/start.sh
|
@ -0,0 +1,7 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-object-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-replicator/config-external.sh
|
1
docker_templates/swift/swift-object-replicator/start.sh
Symbolic link
1
docker_templates/swift/swift-object-replicator/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-replicator/start.sh
|
7
docker_templates/swift/swift-object-server/Dockerfile.j2
Normal file
7
docker_templates/swift/swift-object-server/Dockerfile.j2
Normal file
@ -0,0 +1,7 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-object-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-object-server/config-external.sh
Symbolic link
1
docker_templates/swift/swift-object-server/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-server/config-external.sh
|
1
docker_templates/swift/swift-object-server/start.sh
Symbolic link
1
docker_templates/swift/swift-object-server/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-server/start.sh
|
@ -0,0 +1,7 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-object-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
COPY start.sh /
|
||||
COPY config-external.sh /opt/kolla/
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-object-updater/config-external.sh
Symbolic link
1
docker_templates/swift/swift-object-updater/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-updater/config-external.sh
|
1
docker_templates/swift/swift-object-updater/start.sh
Symbolic link
1
docker_templates/swift/swift-object-updater/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-object-updater/start.sh
|
14
docker_templates/swift/swift-proxy-server/Dockerfile.j2
Normal file
14
docker_templates/swift/swift-proxy-server/Dockerfile.j2
Normal file
@ -0,0 +1,14 @@
|
||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-swift-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
||||
|
||||
RUN yum -y install openstack-swift-proxy && yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
COPY config-external.sh /opt/kolla/
|
||||
CMD ["/start.sh"]
|
1
docker_templates/swift/swift-proxy-server/config-external.sh
Symbolic link
1
docker_templates/swift/swift-proxy-server/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-proxy-server/config-external.sh
|
1
docker_templates/swift/swift-proxy-server/start.sh
Symbolic link
1
docker_templates/swift/swift-proxy-server/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/swift/swift-proxy-server/start.sh
|
Loading…
Reference in New Issue
Block a user