Skip to content

Commit a67604a

Browse files
author
GVE Devnet Admin
committed
Baselined from internal Repository
last_commit:09e18d834251e41c29b45385db173c80dcb18056
0 parents  commit a67604a

File tree

104 files changed

+61523
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+61523
-0
lines changed

CODE_OF_CONDUCT.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as maintainers of this Cisco Sample Code pledge to making participation with our project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Showing empathy towards other people
15+
16+
Examples of unacceptable behavior include:
17+
18+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
19+
* Trolling, insulting/derogatory comments, and personal or political attacks
20+
* Public or private harassment
21+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
22+
* Other conduct which could reasonably be considered inappropriate in a professional setting
23+
24+
## Our Responsibilities
25+
26+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
27+
28+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other interactions with this project that are not aligned to this Code of Conduct, or to ban temporarily or permanently any person for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
29+
30+
## Scope
31+
32+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project. Examples of representing a project include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
33+
34+
## Enforcement
35+
36+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Cisco SE GitHub team at [email protected]. The team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
38+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project or Cisco SE Leadership.
39+
40+
## Attribution
41+
42+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
43+
44+
[homepage]: http://contributor-covenant.org
45+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Cisco Sample Code
2+
3+
This project, and the code contained herein, is provided for example and/or demonstration purposes by Cisco for use by our partners and customers in working with Cisco's products and services. While Cisco's customers and partners are free to use this code pursuant to the terms set forth in the [LICENSE][LICENSE], this is not an Open Source project as we are not seeking to build a community around this project and its capabilities.
4+
5+
6+
We do desire to provide functional and high-quality examples and demonstrations. If you should discover some bug, issue, or opportunity for enhancement with the code contained in this project, please do notify us by:
7+
8+
1. **Reviewing Open Issues** to verify that the issue hasn't already been reported.
9+
2. **Opening a New Issue** to report the bug, issue, or enhancement opportunity.
10+
11+
[LICENSE]: ../LICENSE

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.9-slim-buster
2+
3+
4+
USER 0
5+
RUN umask 002
6+
7+
RUN apt-get update && apt-get -y install procps libnss-wrapper
8+
RUN mkdir -p /app/logs
9+
10+
WORKDIR app
11+
12+
ADD requirements.txt .
13+
RUN pip install -r requirements.txt --no-cache-dir
14+
15+
ADD . .
16+
17+
ENV FLASK_ENV development
18+
ENV FLASK_APP app.py
19+
ENV FLASK_DEBUG falseoc
20+
21+
EXPOSE 5000
22+
23+
CMD ["python","app.py"]

IMAGES/0image.png

48.8 KB
Loading

LICENSE.md

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
CISCO SAMPLE CODE LICENSE
2+
Version 1.1
3+
Copyright (c) 2020 Cisco and/or its affiliates
4+
5+
These terms govern this Cisco Systems, Inc. ("Cisco"), example or demo
6+
source code and its associated documentation (together, the "Sample
7+
Code"). By downloading, copying, modifying, compiling, or redistributing
8+
the Sample Code, you accept and agree to be bound by the following terms
9+
and conditions (the "License"). If you are accepting the License on
10+
behalf of an entity, you represent that you have the authority to do so
11+
(either you or the entity, "you"). Sample Code is not supported by Cisco
12+
TAC and is not tested for quality or performance. This is your only
13+
license to the Sample Code and all rights not expressly granted are
14+
reserved.
15+
16+
1. LICENSE GRANT: Subject to the terms and conditions of this License,
17+
Cisco hereby grants to you a perpetual, worldwide, non-exclusive, non-
18+
transferable, non-sublicensable, royalty-free license to copy and
19+
modify the Sample Code in source code form, and compile and
20+
redistribute the Sample Code in binary/object code or other executable
21+
forms, in whole or in part, solely for use with Cisco products and
22+
services. For interpreted languages like Java and Python, the
23+
executable form of the software may include source code and
24+
compilation is not required.
25+
26+
2. CONDITIONS: You shall not use the Sample Code independent of, or to
27+
replicate or compete with, a Cisco product or service. Cisco products
28+
and services are licensed under their own separate terms and you shall
29+
not use the Sample Code in any way that violates or is inconsistent
30+
with those terms (for more information, please visit:
31+
www.cisco.com/go/terms).
32+
33+
3. OWNERSHIP: Cisco retains sole and exclusive ownership of the Sample
34+
Code, including all intellectual property rights therein, except with
35+
respect to any third-party material that may be used in or by the
36+
Sample Code. Any such third-party material is licensed under its own
37+
separate terms (such as an open source license) and all use must be in
38+
full accordance with the applicable license. This License does not
39+
grant you permission to use any trade names, trademarks, service
40+
marks, or product names of Cisco. If you provide any feedback to Cisco
41+
regarding the Sample Code, you agree that Cisco, its partners, and its
42+
customers shall be free to use and incorporate such feedback into the
43+
Sample Code, and Cisco products and services, for any purpose, and
44+
without restriction, payment, or additional consideration of any kind.
45+
If you initiate or participate in any litigation against Cisco, its
46+
partners, or its customers (including cross-claims and counter-claims)
47+
alleging that the Sample Code and/or its use infringe any patent,
48+
copyright, or other intellectual property right, then all rights
49+
granted to you under this License shall terminate immediately without
50+
notice.
51+
52+
4. LIMITATION OF LIABILITY: CISCO SHALL HAVE NO LIABILITY IN CONNECTION
53+
WITH OR RELATING TO THIS LICENSE OR USE OF THE SAMPLE CODE, FOR
54+
DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO DIRECT, INCIDENTAL,
55+
AND CONSEQUENTIAL DAMAGES, OR FOR ANY LOSS OF USE, DATA, INFORMATION,
56+
PROFITS, BUSINESS, OR GOODWILL, HOWEVER CAUSED, EVEN IF ADVISED OF THE
57+
POSSIBILITY OF SUCH DAMAGES.
58+
59+
5. DISCLAIMER OF WARRANTY: SAMPLE CODE IS INTENDED FOR EXAMPLE PURPOSES
60+
ONLY AND IS PROVIDED BY CISCO "AS IS" WITH ALL FAULTS AND WITHOUT
61+
WARRANTY OR SUPPORT OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY
62+
LAW, ALL EXPRESS AND IMPLIED CONDITIONS, REPRESENTATIONS, AND
63+
WARRANTIES INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTY OR
64+
CONDITION OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-
65+
INFRINGEMENT, SATISFACTORY QUALITY, NON-INTERFERENCE, AND ACCURACY,
66+
ARE HEREBY EXCLUDED AND EXPRESSLY DISCLAIMED BY CISCO. CISCO DOES NOT
67+
WARRANT THAT THE SAMPLE CODE IS SUITABLE FOR PRODUCTION OR COMMERCIAL
68+
USE, WILL OPERATE PROPERLY, IS ACCURATE OR COMPLETE, OR IS WITHOUT
69+
ERROR OR DEFECT.
70+
71+
6. GENERAL: This License shall be governed by and interpreted in
72+
accordance with the laws of the State of California, excluding its
73+
conflict of laws provisions. You agree to comply with all applicable
74+
United States export laws, rules, and regulations. If any provision of
75+
this License is judged illegal, invalid, or otherwise unenforceable,
76+
that provision shall be severed and the rest of the License shall
77+
remain in full force and effect. No failure by Cisco to enforce any of
78+
its rights related to the Sample Code or to a breach of this License
79+
in a particular situation will act as a waiver of such rights. In the
80+
event of any inconsistencies with any other terms, this License shall
81+
take precedence.

README.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# GVE_DevNet_Repo_Creation_Process_Test
2+
A clean test of the process to create and containerize a POV
3+
4+
5+
## Contacts
6+
* Gerardo Chaves
7+
8+
## Solution Components
9+
* Webex
10+
11+
## Installation/Configuration
12+
13+
This is as a template, project owner to update
14+
15+
Add any steps needed to install the project so that someone can reproduce the project
16+
17+
18+
to create the docker container:
19+
```docker build --tag gchaves/repo-creation-process-test . ```
20+
21+
to run it:
22+
```docker run --name repo-creation-process-test -p 5000:5000 gchaves/repo-creation-process-test```
23+
24+
25+
```
26+
27+
28+
## Usage
29+
30+
This is a template, project owner to update
31+
32+
Add any steps needed for someone to run your project.
33+
34+
To launch an optical service create:
35+
36+
37+
$ python create_service.py
38+
39+
40+
41+
# Screenshots
42+
43+
![/IMAGES/0image.png](/IMAGES/0image.png)
44+
45+
### LICENSE
46+
47+
Provided under Cisco Sample Code License, for details see [LICENSE](LICENSE.md)
48+
49+
### CODE_OF_CONDUCT
50+
51+
Our code of conduct is available [here](CODE_OF_CONDUCT.md)
52+
53+
### CONTRIBUTING
54+
55+
See our contributing guidelines [here](CONTRIBUTING.md)
56+
57+
#### DISCLAIMER:
58+
<b>Please note:</b> This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use.
59+
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

app.param

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
APP_NAME=
2+
APP_PORT=
3+
APP_IMAGE=containers.cisco.com/gvedevnet/<image:tag>

0 commit comments

Comments
 (0)