You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ruamel.yaml is very ornery and has to be force-reinstalled alone
16
+
# ruamel.yaml is very ornery and has to be force-reinstalled alone until the pip deps are updated
17
17
ENV PATH /home/freetak/.local/bin:$PATH
18
18
RUN pip install --upgrade pip ; pip install --force-reinstall "ruamel.yaml<0.18"
19
19
RUN pip install FreeTAKServer
20
20
21
21
# Provide a way to edit the configuration from outside the container
22
22
# May need to be updated if the base image changes
23
23
RUN cp $(python -m site --user-site)/FreeTAKServer/core/configuration/MainConfig.py $(python -m site --user-site)/FreeTAKServer/core/configuration/MainConfig.bak
24
-
RUN mv $(python -m site --user-site)/FreeTAKServer/core/configuration/MainConfig.py /opt/fts/MainConfig.py
25
-
RUN ln -s /opt/fts/MainConfig.py $(python -m site --user-site)/FreeTAKServer/core/configuration/MainConfig.py
26
-
27
-
# Open ports
28
-
# note: docker compose documentation suggests that communication between
29
-
# core and ui doesn't need a port explicitly exposed
Copy file name to clipboardExpand all lines: containers/core-run.sh
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,23 @@
1
1
#!/bin/bash
2
2
3
+
PYTHON_USER_SITE=$(python -m site --user-site)
4
+
# Detect and navigate to the python user site packages
5
+
# Some systems use `python3` instead of `python` so this is not entirely portable
6
+
cd"${PYTHON_USER_SITE}/FreeTAKServer/"|| raise error "Could not navigate to the user-sites path. Are you using a distro that requires python3 instead of python?"
0 commit comments