Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VLKB SEDModS
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
Show more breadcrumbs
ViaLactea
VLKB SEDModS
Commits
f3fc07fa
Commit
f3fc07fa
authored
1 month ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
README update
parent
f6ac918c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+9
-20
9 additions, 20 deletions
README.md
README_implementation.md
+11
-0
11 additions, 0 deletions
README_implementation.md
with
20 additions
and
20 deletions
README.md
+
9
−
20
View file @
f3fc07fa
...
...
@@ -23,34 +23,32 @@ To build the container image:
podman build --tag vlkb-sedmods -f ./Dockerfile
It is suggested to have a dedicated user to run
this
in production.
It is suggested to have a dedicated user to run in production.
Once the podman image is ready and the two directories are in place, run:
The service expects the SED models in /srv/sed-data/sim_total.dat
And to run:
podman run -dt \
--name sedmod-test \
--rm \
-v $PWD/sed-data:/sed-data:z \
-v $PWD/sed-data:/
srv/
sed-data:z \
-v $PWD/wsgi-scripts:/var/www/wsgi-scripts:z \
-p 8080:80 vlkb-sedmods
where the name is optional and of your choice and the left-hand side of
the _:_ in the _-v_ arguments must point to the actual location of the
two folders to be mounted in the container.
In the example the _-v_ arguments are considered such as the command is
In this example the _-v_ arguments are considered such as the command is
run from the local working copy and the HDF5 SED Models file is actually
within the
`sed-data`
folder.
Also, _-p_ maps the 80 port of the container onto the 8080 port on the
host server, this must be changed if the host's 8080 is already in use.
### Service endpoints
The service implementation is descripbed
[
here
](
README_implementation.md
)
.
Then the service presents the
_
/searchd
_
endpoint. Arguments are separated
by underscore and their meaning is
as
in this C++ code snipped:
Then the service presents the
**
/searchd
**
endpoint. Arguments are separated
by underscore and their meaning is
indicated
in this C++ code snipped:
```
cpp
QString
args
=
QString
(
"'%1_%2_%3_%4_%5_%6_%7_0_%8_%9'"
)
...
...
@@ -67,17 +65,8 @@ by underscore and their meaning is as in this C++ code snipped:
Access the service by:
curl localhost:8080/searchd/?arg
1
_arg
2
_...-_arg9 > output.json
curl localhost:8080/searchd/?arg
0
_arg
1
_...-_arg9 > output.json
Response is in JSON format.
### Network Proxy
The service can be made visible on a specific context path in the host
server's http using the httpd _ProxyPass_ directive, like
<Location
"/
sedmods
"
>
ProxyPass "http://localhost:8080"
</Location>
where _/sedmods_ is an example and the _8080_ port depends on the passed
parameters to the podman run command (see above).
This diff is collapsed.
Click to expand it.
README_implementation.md
+
11
−
0
View file @
f3fc07fa
...
...
@@ -49,6 +49,17 @@ with the same usage of the single query one.
## SED Models HDF5 file
This is preserved, currently, on the INAF ICT Owncloud instance.
### Network Proxy
The service can be made visible on a specific context path in the host
server's http using the httpd _ProxyPass_ directive, like
<Location "/sedmods">
ProxyPass "http://localhost:8080"
</Location>
where _/sedmods_ is an example and the _8080_ port depends on the passed
parameters to the podman run command (see above).
## Dependencies
On the host:
...
...
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