Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Resource Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
Resource Manager
Commits
e5436ef8
Commit
e5436ef8
authored
1 year ago
by
JORGE SASIAIN
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
8804b6e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+22
-17
22 additions, 17 deletions
README.md
with
22 additions
and
17 deletions
README.md
+
22
−
17
View file @
e5436ef8
...
@@ -10,21 +10,9 @@ resource management tooling & experiments
...
@@ -10,21 +10,9 @@ resource management tooling & experiments
standalone on your local machine (will be
standalone on your local machine (will be
merged into the full docs later)
*
merged into the full docs later)
*
### database setup
*
install dependencies: run
``pip install -e .``
and
``pip install -r requirements.txt``
*
set the value of
`sqlalchemy.url`
in
`alembic.ini`
to point to a writeable file, e.g.
```
python
sqlalchemy
.
url
=
sqlite
:
////
absolute
/
path
/
to
/
foo
.
db
```
*
create the database by running the alembic
migration from the top-level directory
```
bash
alembic upgrade
head
```
### running the app
### configuration
*
create a settings filename
*
create a settings filename
(see
`config-example.json`
for an example) ... something like:
(see
`config-example.json`
for an example) ... something like:
...
@@ -37,8 +25,25 @@ merged into the full docs later)*
...
@@ -37,8 +25,25 @@ merged into the full docs later)*
}
}
}
}
```
```
*
In the config file, set the value of
`db`
to point to a writeable file, e.g.
``sqlite:////absolute/path/to/foo.db``
### database setup
*
export
`SETTINGS_FILENAME`
, e.g.
```
bash
SETTINGS_FILENAME
=
/absolute/path/to/config.json
```
*
create the database by running the alembic
migration from the top-level directory
```
bash
alembic upgrade
head
```
### running the app
*
run the app like this
*
run the app like this
(
`app.py`
starts the server on port 4444
4
):
(
`app.py`
starts the server on port 4444
5
):
```
bash
```
bash
SETTINGS_FILENAME
=
/absolute/path/to/config.json python
-m
resource_management.app
SETTINGS_FILENAME
=
/absolute/path/to/config.json python
-m
resource_management.app
```
```
...
@@ -47,11 +52,11 @@ merged into the full docs later)*
...
@@ -47,11 +52,11 @@ merged into the full docs later)*
*
get the version
*
get the version
```
bash
```
bash
curl http://localhost:4444
4
/api/version
curl http://localhost:4444
5
/api/version
```
```
*
load interfaces from a router
*
load interfaces from a router
```
bash
```
bash
curl
-X
POST http://localhost:4444
4
/api/initialize-router/router.host.name
curl
-X
POST http://localhost:4444
5
/api/initialize-router/router.host.name
```
```
*
view the docs by loading
`http://localhost:44444/docs`
*
view the docs by loading
`http://localhost:44444/docs`
in your browser (there are requests for reserving
in your browser (there are requests for reserving
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment