-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHOWTORUN
39 lines (32 loc) · 1.43 KB
/
HOWTORUN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# PRELIMINARIES
#
# The mongodb (and ui) services need to be instantiated first. These are
# "immortal" in as much as their lifetime continues beyond the epochs of
# pfmongo.
#
# The pfmongo application itself is dockerized and can be run from a
# container.
#
# Build (for fish shell syntax!)
set UID (id -u)
docker build --build-arg UID=$UID -t local/pfmongo .
# Start up the mongodb (and ui)
docker-compose up
# Set some env vars
export MD_URI=mongodb://localhost:27017 && export MD_USERNAME=admin && export MD_PASSWORD=admin && export MD_SESSIONUSER=rudolph
# "Install"
pip install -e ./
# Check "internal" state
pfmongo state showall
# Run pfmongo (with support for source debugging)
docker run --rm -it --name pfmongo \
--network pfmongo_pfmongo \
-e ReadWriteKey=tanguro \
-e MD_DB=tanguro \
-e DBauthPath=/home/dicom/services/pfmongo.json \
-e MD_URI=mongodb://pfmongo-db:27017 \
-e MD_username=admin \
-e MD_password=admin \
-v $PWD/pfmongo:/usr/local/lib/python3.11/site-packages/pfmongo \
local/pfmongo pfmongo