Merge "toolbox: Add sleep script handling signals"
This commit is contained in:
commit
3d703b60e6
@ -95,10 +95,12 @@ COPY find_disks.py /usr/share/ansible/
|
||||
COPY ansible.cfg /etc/ansible/ansible.cfg
|
||||
COPY ansible_sudoers /etc/sudoers.d/kolla_ansible_sudoers
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
COPY kolla_toolbox.sh /usr/local/bin/kolla_toolbox
|
||||
|
||||
RUN chmod 644 /usr/share/ansible/find_disks.py \
|
||||
/etc/ansible/ansible.cfg \
|
||||
/usr/local/bin/kolla_extend_start \
|
||||
&& chmod 755 /usr/local/bin/kolla_toolbox \
|
||||
&& chmod 440 /etc/sudoers.d/kolla_ansible_sudoers
|
||||
|
||||
{% block kolla_toolbox_footer %}{% endblock %}
|
||||
|
16
docker/kolla-toolbox/kolla_toolbox.sh
Normal file
16
docker/kolla-toolbox/kolla_toolbox.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
catch_term() {
|
||||
exit 0
|
||||
}
|
||||
|
||||
catch_quit() {
|
||||
exit 0
|
||||
}
|
||||
|
||||
trap catch_term SIGTERM
|
||||
trap catch_quit SIGQUIT
|
||||
|
||||
while :; do
|
||||
sleep 1
|
||||
done
|
Loading…
Reference in New Issue
Block a user