fdd8236864
Fixes #9376
Because /etc/passwd and /etc/group have been overwritten with symlinks
to /host_etc/passwd and /host_etc/group, the debug container build
fails. This is because the debug container is built without /etc being
mounted at /host_etc in the container (which does happen at runtime).
Because of that, /etc/passwd and /etc/group don't exist, which causes
some package installation errors when openssh-client tries to create a
group.
This is a partial revert of 1347f29178
.
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
40 lines
1.1 KiB
Django/Jinja
40 lines
1.1 KiB
Django/Jinja
FROM docker-config-engine-buster
|
|
|
|
ARG docker_container_name
|
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
|
|
|
## Make apt-get non-interactive
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y g++ python3-dev libxml2 libcurl3-gnutls libcjson-dev
|
|
|
|
RUN pip3 install connexion==2.7.0 \
|
|
setuptools==21.0.0 \
|
|
grpcio-tools==1.20.0 \
|
|
certifi==2017.4.17 \
|
|
python-dateutil==2.6.0 \
|
|
six==1.11.0 \
|
|
urllib3==1.21.1
|
|
|
|
COPY \
|
|
{% for deb in docker_sonic_mgmt_framework_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_sonic_mgmt_framework_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
COPY ["start.sh", "rest-server.sh", "/usr/bin/"]
|
|
COPY ["mgmt_vars.j2", "/usr/share/sonic/templates/"]
|
|
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
|
|
|
RUN apt-get remove -y g++ python3-dev
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /debs
|
|
|
|
ENTRYPOINT ["/usr/local/bin/supervisord"]
|