Skip to content

Commit

Permalink
Update flowvisor related scripts in multi_tenant_sdn_slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelorenz committed Jan 31, 2022
1 parent 65ac62a commit 46fe361
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=https://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM centos:6

RUN curl -LO http://updates.onlab.us/GPG-KEY-ONLAB
RUN rpm --import GPG-KEY-ONLAB
ADD onlab.repo /etc/yum.repos.d/onlab.repo

COPY ./CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
RUN curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo
RUN curl https://www.getpagespeed.com/files/centos6-epel-eol.repo --output /etc/yum.repos.d/epel.repo

RUN yum -y --disableplugin=fastestmirror --disableplugin=ovl install flowvisor sudo
#RUN sudo -u flowvisor fvconfig generate /etc/flowvisor/config.json
#RUN sudo -u flowvisor fvconfig generate /etc/flowvisor/config.json flowvisor admin
#RUN sudo -u flowvisor sed -i 's/"run_topology_server": false/"run_topology_server": true/' /etc/flowvisor/config.json

#CMD sudo -u flowvisor flowvisor

RUN fvconfig generate /etc/flowvisor/config.json flowvisor flowvisor

RUN sed -i 's/"run_topology_server": false/"run_topology_server": true/' /etc/flowvisor/config.json

RUN echo "flowvisor" > /etc/flowvisor/flowvisor.passwd

RUN chown flowvisor:flowvisor /etc/flowvisor/flowvisor.passwd

RUN fvconfig load /etc/flowvisor/config.json

RUN sed -i -e "s/\/sbin\/flowvisor /\/sbin\/flowvisor -l /ig" /etc/init.d/flowvisor

ENV TERM=vt100

ENV HOME /root

ENV BUILD_NUMBER docker

RUN fvconfig load /etc/flowvisor/config.json && \
chown -R flowvisor:flowvisor /usr/share/db/flowvisor/

CMD ["bash"]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker build --rm -t flowvisor:latest -f ./Dockerfile.flowvisor .
docker build --rm -t flowvisor:latest -f ./Dockerfile.flowvisor.2 .
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[onlab]
name=ON.Lab Software Releases
baseurl=http://updates.onlab.us/rpm/stable
enabled=1
gpgcheck=1

0 comments on commit 46fe361

Please sign in to comment.