Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetObsAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Show more breadcrumbs
MetObs
MetObsAPI
Commits
384562d6
Verified
Commit
384562d6
authored
2 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add environment.yaml for operational environment
parent
9e764bae
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+48
-0
48 additions, 0 deletions
README.md
environment.yaml
+12
-0
12 additions, 0 deletions
environment.yaml
with
60 additions
and
0 deletions
README.md
+
48
−
0
View file @
384562d6
...
...
@@ -4,6 +4,54 @@ This is a flask application that is served at `metobs.ssec.wisc.edu/api`.
See https://metobs.ssec.wisc.edu/api for documentation.
## Operational conda environment
These instructions assume the operational "standard practice" that is current
at the time of writing. This practice is to create a conda environment using
the "root" user under
`/opt/metobs/metobs_api`
.
1.
Get and install the conda environment:
```
bash
cd
/tmp
curl
-O
"https://gitlab.ssec.wisc.edu/metobs/MetObsAPI/-/raw/master/environment.yaml"
sudo
/opt/miniconda3/condabin/conda
env
create
--file
environment.yaml
--prefix
/opt/metobs/metobs_api
```
2.
Clone the git repository into the environment and other setup:
```
bash
cd
/opt/metobs/metobs_api
sudo mkdir
-p
repos/git log lock
sudo chown
metobs:metobsgrp log lock
sudo
git clone
"https://gitlab.ssec.wisc.edu/metobs/MetObsAPI.git"
repos/git/MetObsAPI
```
3.
Install the metobsapi python package:
```
bash
sudo
/opt/metobs/metobs_api/bin/pip
install
-e
repos/git/MetObsAPI/
```
4.
Copy systemd files if necessary:
```
bash
sudo cp
repos/git/MetObsAPI/etc/systemd/system/metobs_api
*
/etc/systemd/system/
```
5.
Enable service:
```
bash
sudo
systemctl
enable
metobs_api
sudo
systemctl start metobs_api
```
6.
Start service:
```
bash
sudo
systemctl start metobs_api
```
## Developer Installation
Install the package in "development" mode:
...
...
This diff is collapsed.
Click to expand it.
environment.yaml
0 → 100644
+
12
−
0
View file @
384562d6
name
:
metobs_api
channels
:
-
conda-forge
dependencies
:
-
numpy
-
pandas
-
influxdb-client
-
flask
-
flask_json
-
flask_cors
-
gunicorn
-
python=3.11
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