Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

How to install features using Dockerfile?

I am trying to create a Dockerfile that will automatically install opendaylight and configure it to work. I have all of the steps working except the last piece. I need install a list of features. I can do it if I log in but I try automate the process. What command can I run that will allow me to install the features?

Current Docker file:

FROM centos:6

MAINTAINER OpenDaylight Project info@opendaylight.org

ADD opendaylight-3-candidate.repo /etc/yum.repos.d/

RUN yum update -y && yum install -y opendaylight

EXPOSE 162 179 1088 1790 1830 2400 2550 2551 2552 4189 4342 5005 5666 6633 6640 6653 7800 8000 8080 8101 8181 8383 12001

WORKDIR /opt/opendaylight

RUN sed -i -e 's:<is-learning-only-mode>false</is-learning-only-mode>:<is-learning-only-mode>true</is-learning-only-mode>:g' /opt/opendaylight/system/org/opendaylight/l2switch/main/main-config/0.2.0-Lithium/main-config-0.2.0-Lithium-config.xml RUN sed -i -e 's:<is-install-dropall-flow>false</is-install-dropall-flow>:<is-install-dropall-flow>true</is-install-dropall-flow>:g' /opt/opendaylight/system/org/opendaylight/l2switch/main/main-config/0.2.0-Lithium/main-config-0.2.0-Lithium-config.xml RUN sed -i -e 's:<is-proactive-flood-mode>true</is-proactive-flood-mode>:<is-proactive-flood-mode>false</is-proactive-flood-mode>:g' /opt/opendaylight/system/org/opendaylight/l2switch/arphandler/arphandler-config/0.2.0-Lithium/arphandler-config-0.2.0-Lithium-config.xml

CMD ["./bin/karaf", "server"]

How to install features using Dockerfile?

I am trying to create a Dockerfile that will automatically install opendaylight and configure it to work. I have all of the steps working except the last piece. I need install a list of features. I can do it if I log in but I try automate the process. What command can I run that will allow me to install the features?

Current Docker file:

FROM centos:6

MAINTAINER OpenDaylight Project info@opendaylight.org

ADD opendaylight-3-candidate.repo /etc/yum.repos.d/

RUN yum update -y && yum install -y opendaylight

EXPOSE 162 179 1088 1790 1830 2400 2550 2551 2552 4189 4342 5005 5666 6633 6640 6653 7800 8000 8080 8101 8181 8383 12001

WORKDIR /opt/opendaylight

RUN sed -i -e 's:<is-learning-only-mode>false</is-learning-only-mode>:<is-learning-only-mode>true</is-learning-only-mode>:g' /opt/opendaylight/system/org/opendaylight/l2switch/main/main-config/0.2.0-Lithium/main-config-0.2.0-Lithium-config.xml RUN sed -i -e 's:<is-install-dropall-flow>false</is-install-dropall-flow>:<is-install-dropall-flow>true</is-install-dropall-flow>:g' /opt/opendaylight/system/org/opendaylight/l2switch/main/main-config/0.2.0-Lithium/main-config-0.2.0-Lithium-config.xml RUN sed -i -e 's:<is-proactive-flood-mode>true</is-proactive-flood-mode>:<is-proactive-flood-mode>false</is-proactive-flood-mode>:g' /opt/opendaylight/system/org/opendaylight/l2switch/arphandler/arphandler-config/0.2.0-Lithium/arphandler-config-0.2.0-Lithium-config.xml

CMD ["./bin/karaf", "server"]

How to install features using Dockerfile?

I am trying to create a Dockerfile that will automatically install opendaylight and configure it to work. I have all of the steps working except the last piece. I need install a list of features. I can do it if I log in but I try automate the process. What command can I run that will allow me to install the features?

Current Docker file:

FROM centos:6

MAINTAINER OpenDaylight Project info@opendaylight.org

<info@opendaylight.org>

ADD opendaylight-3-candidate.repo /etc/yum.repos.d/

/etc/yum.repos.d/

RUN yum update -y && yum install -y opendaylight

opendaylight

EXPOSE 162 179 1088 1790 1830 2400 2550 2551 2552 4189 4342 5005 5666 6633 6640 6653 7800 8000 8080 8101 8181 8383 12001

12001 WORKDIR /opt/opendaylight

WORKDIR /opt/opendaylight

RUN sed -i -e 's:<is-learning-only-mode>false</is-learning-only-mode>:<is-learning-only-mode>true</is-learning-only-mode>:g' /opt/opendaylight/system/org/opendaylight/l2switch/main/main-config/0.2.0-Lithium/main-config-0.2.0-Lithium-config.xml RUN sed -i -e 's:<is-install-dropall-flow>false</is-install-dropall-flow>:<is-install-dropall-flow>true</is-install-dropall-flow>:g' /opt/opendaylight/system/org/opendaylight/l2switch/main/main-config/0.2.0-Lithium/main-config-0.2.0-Lithium-config.xml RUN sed -i -e 's:<is-proactive-flood-mode>true</is-proactive-flood-mode>:<is-proactive-flood-mode>false</is-proactive-flood-mode>:g' /opt/opendaylight/system/org/opendaylight/l2switch/arphandler/arphandler-config/0.2.0-Lithium/arphandler-config-0.2.0-Lithium-config.xml

/opt/opendaylight/system/org/opendaylight/l2switch/arphandler/arphandler-config/0.2.0-Lithium/arphandler-config-0.2.0-Lithium-config.xml

CMD ["./bin/karaf", "server"]

"server"]