-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update flowvisor related scripts in multi_tenant_sdn_slicing
- Loading branch information
1 parent
65ac62a
commit 46fe361
Showing
4 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
app/realizing_network_slicing/multi_tenant_sdn_slicing/flowvisor/CentOS-Base.repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
39 changes: 39 additions & 0 deletions
39
app/realizing_network_slicing/multi_tenant_sdn_slicing/flowvisor/Dockerfile.flowvisor.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
2 changes: 1 addition & 1 deletion
2
app/realizing_network_slicing/multi_tenant_sdn_slicing/flowvisor/build_flowvisor_image.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
6 changes: 6 additions & 0 deletions
6
app/realizing_network_slicing/multi_tenant_sdn_slicing/flowvisor/onlab.repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|