Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Dcc XMLJSONConvGUI
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
DigitalDynamicMeasurement
Dcc XMLJSONConvGUI
Commits
5a95ebd7
Commit
5a95ebd7
authored
1 year ago
by
Benedikt
Browse files
Options
Downloads
Patches
Plain Diff
fixed
#3
adding node js to docker file
parent
8ba21ab2
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
Dockerfile
+24
-17
24 additions, 17 deletions
Dockerfile
start_servers.sh
+1
-1
1 addition, 1 deletion
start_servers.sh
with
25 additions
and
18 deletions
Dockerfile
+
24
−
17
View file @
5a95ebd7
FROM
python:3.10
ENV
GIT_SSL_NO_VERIFY=1
# Set the environment variable for the HTTP proxy
#ENV http_proxy="http://webproxy.bs.ptb.de:8080"
#ENV https_proxy="http://webproxy.bs.ptb.de:8080"
# Set the environment variable for the NO_PROXY
# This ensures that the proxy is not used for ptb.de
#ENV no_proxy="ptb.de"
# Install NodeJS
RUN
apt-get update
&&
apt-get
install
-y
nodejs npm
# Set the working directory
WORKDIR
/app
# Clone your repository
RUN
git clone https://gitlab1.ptb.de/digitaldynamicmeasurement/dcc_XMLJSONConvGUI.git
#RUN pip install --no-cache-dir --upgrade --proxy http://webproxy.bs.ptb.de:8080 -r ./dcc_XMLJSONConvGUI/requirements.txt
RUN
pip
install
--no-cache-dir
--upgrade
-r
./dcc_XMLJSONConvGUI/requirements.txt
#RUN pip install --proxy http://192.53.103.119:8080 --no-cache-dir --upgrade -r /code/requirements.txt
#
# Change to the project directory
WORKDIR
/app/dcc_XMLJSONConvGUI
EXPOSE
8000
# Install Python dependencies
RUN
pip
install
--no-cache-dir
--upgrade
-r
requirements.txt
# Install NodeJS dependencies and compile TypeScript
WORKDIR
/app/dcc_XMLJSONConvGUI/custom_bokeh_widgets
RUN
npm
install
RUN
npm run build
# Expose necessary ports
EXPOSE
5009
EXPOSE
5008
#
RUN
chmod
+x dcc_XMLJSONConvGUI/start_servers.sh
RUN
chmod
+x dcc_XMLJSONConvGUI/dcc_XMLJSONConvGUI.py
CMD
["./dcc_XMLJSONConvGUI/start_servers.sh"]
#CMD ["uvicorn", "dcc_server:app", "--host", "0.0.0.0", "--port", "8000", "--root-path", "/dcc_rest_server"]
#CMD ["bokeh", "serve","--show","dcc_XMLJSONConvGUI.py", "--allow-websocket-origin","*","--port","5010"]
# Make the script executable
RUN
chmod
+x /app/dcc_XMLJSONConvGUI/start_servers.sh
RUN
chmod
+x /app/dcc_XMLJSONConvGUI/dcc_XMLJSONConvGUI.py
# Start the servers
CMD
["./start_servers.sh"]t
\ No newline at end of file
This diff is collapsed.
Click to expand it.
start_servers.sh
+
1
−
1
View file @
5a95ebd7
#!/bin/bash
cd
/dcc_XMLJSONConvGUI
uvicorn dcc_server:app
--host
0.0.0.0
--port
8
00
0
--root-path
/dcc_rest_server &
uvicorn dcc_server:app
--host
0.0.0.0
--port
5
00
9
--root-path
/dcc_rest_server &
python3 dcc_XMLJSONConvGUI.py
--allow-websocket-origin
"*"
--port
5008
\ No newline at end of file
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