mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-17 10:46:14 +02:00
Configure ONOS in docker image to log to stdout
Change-Id: Ia7f900663298750de7c1d67b9bf0f181b5f6f452
This commit is contained in:
parent
d896d45495
commit
078c3fb2c6
@ -37,6 +37,9 @@ WORKDIR /root/onos
|
||||
# Install ONOS
|
||||
COPY --from=builder /src/tar/ .
|
||||
|
||||
# Configure ONOS to log to stdout
|
||||
RUN sed -ibak '/log4j.rootLogger=/s/$/, stdout/' $(ls -d apache-karaf-*)/etc/org.ops4j.pax.logging.cfg
|
||||
|
||||
LABEL org.label-schema.name="ONOS" \
|
||||
org.label-schema.description="SDN Controller" \
|
||||
org.label-schema.usage="http://wiki.onosproject.org" \
|
||||
@ -53,5 +56,5 @@ LABEL org.label-schema.name="ONOS" \
|
||||
EXPOSE 6653 6640 8181 8101 9876
|
||||
|
||||
# Get ready to run command
|
||||
WORKDIR /root/onos
|
||||
ENTRYPOINT ["./bin/onos-service"]
|
||||
CMD ["server"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user