Test docker: dont expose ports

This commit is contained in:
Olof hagsand 2023-12-06 13:46:27 +01:00
parent f64c9016a1
commit 9bd1b8994c
2 changed files with 5 additions and 5 deletions

View file

@ -150,8 +150,8 @@ RUN apk add --update nginx
# Test-specific (for test scripts)
RUN apk add --update sudo curl procps grep make bash expect openssh
# Expose nginx port for restconf
EXPOSE 80
# Dont need to expose restconf ports for internal tests
#EXPOSE 80/tcp
# Create clicon user and group
RUN adduser -D -H clicon

View file

@ -149,9 +149,9 @@ RUN echo "rwcommunity public localhost" >> /etc/snmp/snmpd.conf
RUN echo "agentxsocket unix:/var/run/snmp.sock" >> /etc/snmp/snmpd.conf
RUN echo "agentxperms 777 777" >> /etc/snmp/snmpd.conf
# Expose https port for restconf
EXPOSE 80/tcp
EXPOSE 443/tcp
# Dont need to expose restconf ports for internal tests
#EXPOSE 80/tcp
#EXPOSE 443/tcp
# Create clicon user and group
RUN adduser -D -H clicon