Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
6733db2a
Commit
6733db2a
authored
Feb 12, 2021
by
Michel Roelofs
Browse files
Only expose websockets
parent
a21657e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
6733db2a
...
...
@@ -8,8 +8,8 @@
# This Dockerfile is hardcoded to run the websockets server at
# port 8000.
# Start the docker container with
# docker run -it -p 80
81:80 -p 8000:8000 -p 11031:11031 -p 11030:11030 -p 11040:11040 -p 11041:11041 -p 11042:11042 -p 11011:11011
consoledemo
# Then visit the consoledemo from the host machine at http://localhost:80
81 (NOT at port 8000, which will show a non-working HTML page)
# docker run -it -p 80
00:8000
consoledemo
# Then visit the consoledemo from the host machine at http://localhost:80
00
FROM
ubuntu:16.04
RUN
apt-get
-y
update
...
...
@@ -69,9 +69,9 @@ port=8000\n\
'
>
/etc/dt/dt_host.ini
# Patch the console software to point the websockets port
RUN
sed
-i
-e
's/window.location.host/window.location.hostname+":8000"/'
/var/www/console/htdocs/index.html
&&
\
sed
-i
-e
's/window.location.host/window.location.hostname+":8000"/'
/var/www/console/htdocs/mech.html
#
RUN sed -i -e 's/window.location.host/window.location.hostname+":8000"/' /var/www/console/htdocs/index.html && \
#
sed -i -e 's/window.location.host/window.location.hostname+":8000"/' /var/www/console/htdocs/mech.html
CMD
screen -d -m /root/dt_ctrl/controller/dt_ctrl /root/dt_ctrl/controller/dt_ctrl.ctrl && screen -d -m bash -c 'cd /root/dt_ctrl/console/console && ./start_console.sh' && /bin/bash -c 'service apache2 start' && bash
EXPOSE
80
EXPOSE
80
00
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment