Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
359dfc2a
Commit
359dfc2a
authored
May 19, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docker] Docker support
parent
d48b9b8f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
Dockerfile
Dockerfile
+3
-0
config.py
config.py
+1
-1
config_docker.py
config_docker.py
+1
-1
rpm_requirements.txt
requirements/rpm_requirements.txt
+2
-2
run_server.py
run_server.py
+1
-2
No files found.
Dockerfile
View file @
359dfc2a
...
...
@@ -16,5 +16,7 @@ RUN rm -f keys/.access_key
RUN
cp
config_docker.py config.py
# If you want build node js, you run npm install, but nodejs need gcc more than 4.8, so you need install it
EXPOSE
5000
CMD
python run_server.py
\ No newline at end of file
config.py
View file @
359dfc2a
...
...
@@ -2,7 +2,7 @@
DEBUG
=
True
# NAME = 'luna'
#
BIND_HOST = '0.0.0.0'
BIND_HOST
=
'0.0.0.0'
# LISTEN_PORT = 5000
JUMPSERVER_ENDPOINT
=
'http://127.0.0.1:8080/'
# ACCESS_KEY = None
...
...
config_docker.py
View file @
359dfc2a
...
...
@@ -4,7 +4,7 @@ import os
DEBUG
=
True
# NAME = 'luna'
#
BIND_HOST = '0.0.0.0'
BIND_HOST
=
'0.0.0.0'
# LISTEN_PORT = 5000
JUMPSERVER_ENDPOINT
=
os
.
environ
.
get
(
"JUMPSERVER_ENDPOINT"
)
or
'http://jumpserver:8080/'
# ACCESS_KEY = None
...
...
requirements/rpm_requirements.txt
View file @
359dfc2a
libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
\ No newline at end of file
gcc-c++ libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
\ No newline at end of file
run_server.py
View file @
359dfc2a
...
...
@@ -22,8 +22,7 @@ if __name__ == '__main__':
command_task
.
run
()
record_task
.
run
()
app
.
bootstrap
()
socket_io
.
run
(
app
)
# app.run(threaded=True, host=host, port=port)
socket_io
.
run
(
app
,
host
=
host
,
port
=
port
)
except
KeyboardInterrupt
:
app
.
stop
()
sys
.
exit
()
...
...
Write
Preview
Markdown
is supported
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