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
RUN apt-get update && apt-get install -y python3.9 python3.9-dev python3.9-venv
50
-
RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.9 /usr/bin/python3
51
-
RUN su rt && cd /mnt/data/orangeboard/production/RTX && python3.9 -m pip install click==8.1.3 && python3.9 -m pip install -r requirements.txt && python3.9 -m pip install connexion[swagger-ui]
49
+
RUN apt-get update && apt-get install -y python3.12 python3.12-dev python3.12-venv
50
+
51
+
# make python3 be python 3.12 (used by RTX_OpenAPI.start and various scripts)
52
+
RUN rm -f /usr/bin/python3 && ln -s /usr/bin/python3.12 /usr/bin/python3
53
+
54
+
# install python deps using python 3.12
55
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX && python3.12 -m pip install --upgrade pip"
56
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX && python3.12 -m pip install click==8.1.3"
57
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX && python3.12 -m pip install -r requirements.txt"
58
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX && python3.12 -m pip install 'connexion[swagger-ui]'"
52
59
53
60
# setup services
54
61
RUN export DEVAREA=production
55
62
RUN cat /mnt/data/orangeboard/production/RTX/code/UI/OpenAPI/python-flask-server/RTX_OpenAPI | sed 's/template/production/g' > /etc/init.d/RTX_OpenAPI_production
56
63
RUN chmod 700 /etc/init.d/RTX_OpenAPI_production
57
-
RUN su rt && cd /mnt/data/orangeboard/production/RTX/code/UI/OpenAPI/python-flask-server && cp -p RTX_OpenAPI RTX_OpenAPI_production && sed -i 's/template/production/g' RTX_OpenAPI_production
58
-
RUN su rt && cd /mnt/data/orangeboard/production/RTX/code/UI/OpenAPI/python-flask-server && cp -p RTX_OpenAPI.start RTX_OpenAPI_production.start && sed -i 's/template/production/g' RTX_OpenAPI_production.start
64
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX/code/UI/OpenAPI/python-flask-server && cp -p RTX_OpenAPI RTX_OpenAPI_production && sed -i 's/template/production/g' RTX_OpenAPI_production"
65
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX/code/UI/OpenAPI/python-flask-server && cp -p RTX_OpenAPI.start RTX_OpenAPI_production.start && sed -i 's/template/production/g' RTX_OpenAPI_production.start"
59
66
RUN update-rc.d RTX_OpenAPI_production defaults
60
67
61
68
# autocomplete
@@ -65,4 +72,4 @@ RUN cd /mnt/data/orangeboard/production/RTX/code/autocomplete && sed -i 's/devED
65
72
RUN update-rc.d RTX_Complete defaults
66
73
67
74
# setup config.domain
68
-
RUN su rt && cd /mnt/data/orangeboard/production/RTX/code/ && echo "Github actions ARAX test suite" > config.domain
75
+
RUN su - rt -c "cd /mnt/data/orangeboard/production/RTX/code/ && echo 'Github actions ARAX test suite' > config.domain"
0 commit comments