This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from jbatalle/master
v0.8.0
- Loading branch information
Showing
131 changed files
with
3,256 additions
and
3,510 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,4 +5,6 @@ Gemfile.lock | |
tmp | ||
.vagrant | ||
**/puma.pid | ||
**/puma.state | ||
**/puma.state | ||
fluentd | ||
|
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,65 @@ | ||
language: ruby | ||
rvm: | ||
- 2.3.1 | ||
#cache: bundler | ||
services: mongodb | ||
install: | ||
# - ./dependencies/install_dependencies.sh n y n n | ||
- ./tenor_install.sh 2 localhost | ||
# - cd ns-manager && bundle install --gemfile=Gemfile && cd ../ | ||
|
||
#env: | ||
# - TEST_DIR=ns-manager | ||
# - TEST_DIR=ns-catalogue | ||
# - TEST_DIR=vnf-catalogue | ||
# - TEST_DIR=. | ||
script: | ||
# - gem uninstall json -v 2.0.2 | ||
- cd ns-manager && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/ns-manager/Gemfile && bundle update --quiet | ||
- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd ns-catalogue && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/ns-catalogue/Gemfile && bundle update --quiet | ||
- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd nsd-validator && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/nsd-validator/Gemfile && bundle update --quiet | ||
- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd ns-provisioning && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/ns-provisioning/Gemfile && bundle update --quiet | ||
#- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd vnf-manager && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/vnf-manager/Gemfile && bundle update --quiet | ||
#- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd vnf-catalogue && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/vnf-catalogue/Gemfile && bundle update --quiet | ||
- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd vnfd-validator && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/vnfd-validator/Gemfile && bundle update --quiet | ||
- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd vnf-provisioning && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/vnf-provisioning/Gemfile && bundle update --quiet | ||
#- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- cd hot-generator && BUNDLE_GEMFILE=$TRAVIS_BUILD_DIR/hot-generator/Gemfile && bundle update --quiet | ||
- rspec | ||
- rake start & | ||
- cd $TRAVIS_BUILD_DIR | ||
- sleep 10 | ||
- sleep 20 | ||
- curl localhost:4000/ | ||
- curl localhost:4000/network-services | ||
- curl localhost:4569/vnfs | ||
- ./tenor_install.sh 6 | ||
- curl localhost:4000/network-services | ||
- curl localhost:4000/vnfs | ||
- curl localhost:4000/ns-instances | ||
- cd $TRAVIS_BUILD_DIR | ||
- ruby end_to_end.rb | ||
#execute end-to-end test |
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
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 |
---|---|---|
|
@@ -2,13 +2,12 @@ FROM ruby:2.2.5 | |
|
||
MAINTAINER Josep Batallé "[email protected]" | ||
#docker build -t tnova/tenor . | ||
#docker run -itd -p 4000:4000 -p 8000:8000 -p 9000:9000 -v /opt/mongo:/var/lib/mongodb -v /opt/gatekeeper:/root/gatekeeper tnova/tenor bash | ||
#docker run -itd -p 4000:4000 -p 9000:9000 -v /opt/mongo:/var/lib/mongod tnova/tenor bash | ||
#docker run -it tnova/tenor bash | ||
#docker exec -i -t f9ff694e0872 /bin/bash | ||
|
||
ENV TENOR_PORT 4000 | ||
ENV TENOR_UI_PORT 9000 | ||
ENV GK_PORT 8000 | ||
ENV MONGODB_PORT 27017 | ||
|
||
RUN apt-get update | ||
|
@@ -28,28 +27,16 @@ RUN apt-get -q -y install \ | |
git nano \ | ||
mongodb-org sqlite3 libsqlite3-dev \ | ||
byobu \ | ||
gcc sudo uuid-runtime | ||
sudo uuid-runtime | ||
|
||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
WORKDIR /root | ||
RUN apt-get -q -y install curl | ||
RUN mkdir -p /usr/local/go && curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar xvzf - -C /usr/local/go --strip-components=1 | ||
|
||
RUN mkdir /opt/go | ||
ENV GOPATH=/opt/go | ||
ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin | ||
RUN mkdir -p /opt/go/src/github.com/piyush82 | ||
RUN cd /opt/go/src/github.com/piyush82 && git clone https://github.com/piyush82/auth-utils.git | ||
RUN cd /opt/go/src/github.com/piyush82/auth-utils && go get && go install | ||
|
||
# Clone the conf files into the docker container | ||
RUN git clone https://github.com/jbatalle/TeNOR /root/TeNOR | ||
|
||
RUN mkdir /root/gatekeeper | ||
RUN cp /opt/go/src/github.com/piyush82/auth-utils/gatekeeper.cfg /root/gatekeeper/gatekeeper.cfg | ||
RUN cp /opt/go/src/github.com/piyush82/auth-utils/gatekeeper.cfg /root/TeNOR/gatekeeper.cfg | ||
|
||
ENV RAILS_ENV development | ||
WORKDIR /root/TeNOR | ||
RUN bundle --version | ||
|
@@ -62,15 +49,9 @@ RUN chown -R mongodb:mongodb /var/lib/mongodb | |
|
||
EXPOSE $TENOR_PORT | ||
EXPOSE $TENOR_UI_PORT | ||
EXPOSE $GK_PORT | ||
EXPOSE $MONGODB_PORT | ||
|
||
#update rake start to bundle exec rake start | ||
RUN sed -i 's/rake start/bundle exec rake start/g' /root/TeNOR/invoker.ini | ||
|
||
RUN echo -e '#!/bin/bash \n/opt/go/bin/auth-utils &' > gatekeeperd | ||
RUN mv gatekeeperd /etc/init.d/gatekeeperd | ||
RUN chmod +x /etc/init.d/gatekeeperd | ||
RUN chown root:root /etc/init.d/gatekeeperd | ||
|
||
ENTRYPOINT /etc/init.d/gatekeeperd start && /etc/init.d/mongod start && invoker start invoker.ini && /bin/bash | ||
ENTRYPOINT /etc/init.d/mongod start && invoker start invoker.ini && /bin/bash |
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
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
Oops, something went wrong.