Skip to content

Commit 239a811

Browse files
committed
Init
0 parents  commit 239a811

File tree

1,211 files changed

+166293
-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.

1,211 files changed

+166293
-0
lines changed

.gitignore

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
### JetBrains template
2+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4+
5+
# User-specific stuff
6+
.idea/**/workspace.xml
7+
.idea/**/tasks.xml
8+
.idea/**/usage.statistics.xml
9+
.idea/**/dictionaries
10+
.idea/**/shelf
11+
12+
# AWS User-specific
13+
.idea/**/aws.xml
14+
15+
# Generated files
16+
.idea/**/contentModel.xml
17+
18+
# Sensitive or high-churn files
19+
.idea/**/dataSources/
20+
.idea/**/dataSources.ids
21+
.idea/**/dataSources.local.xml
22+
.idea/**/sqlDataSources.xml
23+
.idea/**/dynamic.xml
24+
.idea/**/uiDesigner.xml
25+
.idea/**/dbnavigator.xml
26+
27+
# Gradle
28+
.idea/**/gradle.xml
29+
.idea/**/libraries
30+
31+
# Gradle and Maven with auto-import
32+
# When using Gradle or Maven with auto-import, you should exclude module files,
33+
# since they will be recreated, and may cause churn. Uncomment if using
34+
# auto-import.
35+
# .idea/artifacts
36+
# .idea/compiler.xml
37+
# .idea/jarRepositories.xml
38+
# .idea/modules.xml
39+
# .idea/*.iml
40+
# .idea/modules
41+
# *.iml
42+
# *.ipr
43+
44+
# CMake
45+
cmake-build-*/
46+
47+
# Mongo Explorer plugin
48+
.idea/**/mongoSettings.xml
49+
50+
# File-based project format
51+
*.iws
52+
53+
# IntelliJ
54+
out/
55+
56+
# mpeltonen/sbt-idea plugin
57+
.idea_modules/
58+
59+
# JIRA plugin
60+
atlassian-ide-plugin.xml
61+
62+
# Cursive Clojure plugin
63+
.idea/replstate.xml
64+
65+
# SonarLint plugin
66+
.idea/sonarlint/
67+
68+
# Crashlytics plugin (for Android Studio and IntelliJ)
69+
com_crashlytics_export_strings.xml
70+
crashlytics.properties
71+
crashlytics-build.properties
72+
fabric.properties
73+
74+
# Editor-based Rest Client
75+
.idea/httpRequests
76+
77+
# Android studio 3.1+ serialized cache file
78+
.idea/caches/build_file_checksums.ser
79+
80+
### Python template
81+
# Byte-compiled / optimized / DLL files
82+
__pycache__/
83+
*.py[cod]
84+
*$py.class
85+
86+
# C extensions
87+
*.so
88+
89+
# Distribution / packaging
90+
.Python
91+
build/
92+
develop-eggs/
93+
dist/
94+
downloads/
95+
eggs/
96+
.eggs/
97+
lib/
98+
lib64/
99+
parts/
100+
sdist/
101+
var/
102+
wheels/
103+
share/python-wheels/
104+
*.egg-info/
105+
.installed.cfg
106+
*.egg
107+
MANIFEST
108+
109+
# PyInstaller
110+
# Usually these files are written by a python script from a template
111+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
112+
*.manifest
113+
*.spec
114+
115+
# Installer logs
116+
pip-log.txt
117+
pip-delete-this-directory.txt
118+
119+
# Unit test / coverage reports
120+
htmlcov/
121+
.tox/
122+
.nox/
123+
.coverage
124+
.coverage.*
125+
.cache
126+
nosetests.xml
127+
coverage.xml
128+
*.cover
129+
*.py,cover
130+
.hypothesis/
131+
.pytest_cache/
132+
cover/
133+
134+
# Translations
135+
*.mo
136+
*.pot
137+
138+
# Django stuff:
139+
*.log
140+
local_settings.py
141+
db.sqlite3
142+
db.sqlite3-journal
143+
144+
# Flask stuff:
145+
instance/
146+
.webassets-cache
147+
148+
# Scrapy stuff:
149+
.scrapy
150+
151+
# Sphinx documentation
152+
docs/_build/
153+
154+
# PyBuilder
155+
.pybuilder/
156+
target/
157+
158+
# Jupyter Notebook
159+
.ipynb_checkpoints
160+
161+
# IPython
162+
profile_default/
163+
ipython_config.py
164+
165+
# pyenv
166+
# For a library or package, you might want to ignore these files since the code is
167+
# intended to run in multiple environments; otherwise, check them in:
168+
# .python-version
169+
170+
# pipenv
171+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
172+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
173+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
174+
# install all needed dependencies.
175+
#Pipfile.lock
176+
177+
# poetry
178+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
179+
# This is especially recommended for binary packages to ensure reproducibility, and is more
180+
# commonly ignored for libraries.
181+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
182+
#poetry.lock
183+
184+
# pdm
185+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
186+
#pdm.lock
187+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
188+
# in version control.
189+
# https://pdm.fming.dev/#use-with-ide
190+
.pdm.toml
191+
192+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
193+
__pypackages__/
194+
195+
# Celery stuff
196+
celerybeat-schedule
197+
celerybeat.pid
198+
199+
# SageMath parsed files
200+
*.sage.py
201+
202+
# Environments
203+
.env
204+
.venv
205+
env/
206+
venv/
207+
ENV/
208+
env.bak/
209+
venv.bak/
210+
211+
# Spyder project settings
212+
.spyderproject
213+
.spyproject
214+
215+
# Rope project settings
216+
.ropeproject
217+
218+
# mkdocs documentation
219+
/site
220+
221+
# mypy
222+
.mypy_cache/
223+
.dmypy.json
224+
dmypy.json
225+
226+
# Pyre type checker
227+
.pyre/
228+
229+
# pytype static type analyzer
230+
.pytype/
231+
232+
# Cython debug symbols
233+
cython_debug/
234+
235+
# PyCharm
236+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
237+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
238+
# and can be added to the global gitignore or merged into this file. For a more nuclear
239+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
240+
#.idea/
241+

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# RE Env0 Toolbox
2+
3+
CLI tool for creating RE clusters with env0.
4+
5+
6+
## Usage
7+
8+
Define the following environment variables:
9+
```bash
10+
export ENV0_API_KEY = "..."
11+
export ENV0_API_KEY_SECRET = "..."
12+
export ENV0_PROJECT_ID = "..."
13+
```
14+
15+
### Creating a new environment using the template/blueprint
16+
17+
1. Define all required template parameters in the `params.json` file.
18+
2. Run the following command:
19+
```bash
20+
re-env0 create-env NAME_HERE ENV0_TEMPLATE_ID params.json
21+
```
22+
3. The command will same the env0 output file as `env_output.json`
23+
24+
25+
### Creating BDBs in RE
26+
Once the environment is created, you can create BDBs.
27+
28+
1. Define all required BDBs parameters in the `bdbs.json` file.
29+
2. Run the following command:
30+
```bash
31+
re-env create-bdbs env_output.json bdbs.json
32+
```
33+
3. The command will save the created endpoints to `endpoints.json`

deps/env0_client/.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints

deps/env0_client/.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=env0_client
16+
17+
pytest-3.7:
18+
extends: .pytest
19+
image: python:3.7-alpine
20+
pytest-3.8:
21+
extends: .pytest
22+
image: python:3.8-alpine
23+
pytest-3.9:
24+
extends: .pytest
25+
image: python:3.9-alpine
26+
pytest-3.10:
27+
extends: .pytest
28+
image: python:3.10-alpine
29+
pytest-3.11:
30+
extends: .pytest
31+
image: python:3.11-alpine
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

0 commit comments

Comments
 (0)