Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/base/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARGS=""
sudo kolla_copy_cacerts

# Install projects that are in /dev-mode
kolla_install_projects
sudo kolla_install_projects

if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then
# Run additional commands if present
Expand Down
3 changes: 3 additions & 0 deletions docker/base/sudoers
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ root ALL=(ALL) ALL
# Copy custom CA certificates to containers
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_copy_cacerts

# Install projects in dev-mode
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_install_projects

#includedir /etc/sudoers.d
15 changes: 1 addition & 14 deletions docker/opensearch/opensearch-dashboards/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.configure_user(name='opensearch-dashboards', shell='/bin/bash', homedir='/usr/share/opensearch-dashboards') }}
{{ macros.enable_extra_repos(['opensearch-dashboards']) }}

# NOTE(mgoddard): Pinning to 2.15 due to https://bugs.launchpad.net/kolla/+bug/2077319
{% if base_package_type == 'deb' %}
COPY apt_preferences_opensearch_dashboards /etc/apt/preferences.d/opensearch_dashboards
{% endif %}

{% if base_package_type == 'rpm' %}
{% set opensearch_dashboards_packages = [
'opensearch-dashboards-2.15.*'
] %}
{% elif base_package_type == 'deb' %}
{% set opensearch_dashboards_packages = [
'opensearch-dashboards'
] %}
{% endif %}
{% set opensearch_dashboards_packages = ['opensearch-dashboards'] %}

{{ macros.install_packages(opensearch_dashboards_packages | customizable("packages")) }}

Expand Down

This file was deleted.

51 changes: 51 additions & 0 deletions docker/openvswitch/openvswitch-ipsec/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM {{ namespace }}/{{ image_prefix }}openvswitch-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}

{% block openvswitch_ipsec_header %}{% endblock %}

{% import "macros.j2" as macros with context %}

{{ macros.enable_extra_repos(['openvswitch']) }}

{% block ovs_ipsec_install %}

{% if base_package_type == 'rpm' %}
{% set openvswitch_ipsec_packages = [
'xz',
'libreswan',
'openvswitch3.3-ipsec',
] %}
{% elif base_package_type == 'deb' %}
{% set openvswitch_ipsec_packages = [
'libreswan',
'openvswitch-ipsec',
] %}

{% endif %}
{{ macros.install_packages(openvswitch_ipsec_packages | customizable("packages")) }}

{% endblock %}

{% block install_supervision %}
{% set s6_overlay_version = 'v3.2.0.0' %}
{% set s6_overlay_url = 'https://github.com/just-containers/s6-overlay/releases/download/' %}
{% set s6_overlay_noarch_checksum = 'sha256:4b0c0907e6762814c31850e0e6c6762c385571d4656eb8725852b0b1586713b6' %}
ADD --checksum={{ s6_overlay_noarch_checksum }} \
{{ s6_overlay_url }}/{{ s6_overlay_version }}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz \
&& rm /tmp/s6-overlay-noarch.tar.xz
ADD {{ s6_overlay_url }}/{{ s6_overlay_version }}/s6-overlay-{{ base_arch }}.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-{{ base_arch }}.tar.xz \
&& rm /tmp/s6-overlay-{{ base_arch }}.tar.xz
{% endblock %}

COPY s6-rc.d/ /etc/s6-overlay/s6-rc.d/
RUN chmod -R 755 /etc/s6-overlay

{% block openvswitch_ipsec_footer %}{% endblock %}
{% block footer %}
ENTRYPOINT [ "/init" ]
CMD []
{% endblock %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exit 111
8 changes: 8 additions & 0 deletions docker/openvswitch/openvswitch-ipsec/s6-rc.d/ike_daemon/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/command/execlineb -P
/usr/libexec/ipsec/pluto \
--leak-detective \
--config /etc/ipsec.conf \
--rundir /run/openvswitch \
--nssdir /etc/ipsec.d \
--nofork \
--logfile /var/log/kolla/openvswitch/pluto.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/command/execlineb -P
/usr/libexec/ipsec/addconn \
--config /etc/ipsec.conf \
--checkconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/command/execlineb -P
/usr/libexec/ipsec/_stackmanager start
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/command/execlineb -P
/usr/sbin/ipsec --checknflog
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exit 111
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/command/execlineb -P
/usr/share/openvswitch/scripts/ovs-monitor-ipsec \
--no-restart-ike-daemon \
--ike-daemon=libreswan \
--pidfile=/run/openvswitch/ovs-monitor-ipsec.pid \
--ipsec-ctl=/run/openvswitch/pluto.ctl \
--log-file=/var/log/kolla/openvswitch/ovs-monitor-ipsec.log
unix:/run/openvswitch/db.sock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
2 changes: 2 additions & 0 deletions docker/openvswitch/openvswitch-ipsec/s6-rc.d/ipsec_nss/up
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/command/execlineb -P
/usr/sbin/ipsec --checknss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
2 changes: 2 additions & 0 deletions docker/openvswitch/openvswitch-ipsec/s6-rc.d/kolla_start/up
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/command/execlineb -S0
/command/with-contenv kolla_start
1 change: 1 addition & 0 deletions docker/openvswitch/openvswitch-ipsec/s6-rc.d/user/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bundle
9 changes: 0 additions & 9 deletions releasenotes/notes/bug-2077319-a47a06175a589a1a.yaml

This file was deleted.