Test docker: dont expose ports
This commit is contained in:
parent
f64c9016a1
commit
9bd1b8994c
2 changed files with 5 additions and 5 deletions
|
|
@ -150,8 +150,8 @@ RUN apk add --update nginx
|
||||||
# Test-specific (for test scripts)
|
# Test-specific (for test scripts)
|
||||||
RUN apk add --update sudo curl procps grep make bash expect openssh
|
RUN apk add --update sudo curl procps grep make bash expect openssh
|
||||||
|
|
||||||
# Expose nginx port for restconf
|
# Dont need to expose restconf ports for internal tests
|
||||||
EXPOSE 80
|
#EXPOSE 80/tcp
|
||||||
|
|
||||||
# Create clicon user and group
|
# Create clicon user and group
|
||||||
RUN adduser -D -H clicon
|
RUN adduser -D -H clicon
|
||||||
|
|
|
||||||
|
|
@ -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 "agentxsocket unix:/var/run/snmp.sock" >> /etc/snmp/snmpd.conf
|
||||||
RUN echo "agentxperms 777 777" >> /etc/snmp/snmpd.conf
|
RUN echo "agentxperms 777 777" >> /etc/snmp/snmpd.conf
|
||||||
|
|
||||||
# Expose https port for restconf
|
# Dont need to expose restconf ports for internal tests
|
||||||
EXPOSE 80/tcp
|
#EXPOSE 80/tcp
|
||||||
EXPOSE 443/tcp
|
#EXPOSE 443/tcp
|
||||||
|
|
||||||
# Create clicon user and group
|
# Create clicon user and group
|
||||||
RUN adduser -D -H clicon
|
RUN adduser -D -H clicon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue