Marcin Juszkiewicz 42cf9c34ac sahara: install netcat-openbsd on Debian/Ubuntu
By default in both Debian:11 and Ubuntu:22.04 'netcat' means
'netcat-openbsd'.

Debian 'bookworm' 12 will not have such default. So let install proper
package.

Change-Id: I9795fca15aa3e9d59eb686ff749245bf618639cf
2023-01-20 19:09:08 +01:00

22 lines
649 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}sahara-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block sahara_engine_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_package_type == 'rpm' %}
{% set sahara_engine_packages = ['nc'] %}
{% elif base_package_type == 'deb' %}
{% set sahara_engine_packages = ['netcat-openbsd'] %}
{% endif %}
{{ macros.install_packages(sahara_engine_packages | customizable("packages")) }}
{% block sahara_engine_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER sahara