Commit 7d5b7f8f authored by ibuler's avatar ibuler

[Add] 添加mac requirements, 去掉run时调用bootstrap

parent ffb56db4
...@@ -5,3 +5,9 @@ COPY . /opt/jumpserver-web-terminal ...@@ -5,3 +5,9 @@ COPY . /opt/jumpserver-web-terminal
WORKDIR /opt/jumpserver-web-terminal WORKDIR /opt/jumpserver-web-terminal
RUN pip install -r requirements.txt -i https://pypi.doubanio.com/simple RUN pip install -r requirements.txt -i https://pypi.doubanio.com/simple
EXPOSE 5000
ENV JUMPSERVER_ENDPOINT ''
ENV LUNA_ACCESS_KEY ''
ENV ACCESS_KEY_ENV ''
ENV ACCESS_KEY_STORE ''
CMD python run_server.py
\ No newline at end of file
# // Luna // # // Luna //
Luna 是Jumpserver项目的web terminal子项目, 用户登陆 Luna可以获取拥有权限
资产列表, 登录资产,并记录日志等
### Quick start
```
$ brew install $(cat mac_requirements.txt)
$ pip install -r requirements.py
$ export JUMPSERVER_ENDPOINT='http://a-jumpserver-url:port'
# 或修改配置文件设置 JUMPSERVER_ENDPOINT
$ python run_server.py
```
ibtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
\ No newline at end of file
...@@ -46,8 +46,7 @@ class Luna(Flask, AppMixin): ...@@ -46,8 +46,7 @@ class Luna(Flask, AppMixin):
self.heatbeat() self.heatbeat()
def run(self, host=None, port=None, debug=None, **options): def run(self, host=None, port=None, debug=None, **options):
self.bootstrap() # self.bootstrap()
# logging.info('hello')
print(time.ctime()) print(time.ctime())
print('Luna version %s, more see https://www.jumpserver.org' % __version__) print('Luna version %s, more see https://www.jumpserver.org' % __version__)
print('Starting ssh server at %(host)s:%(port)s' % {'host': self.config['BIND_HOST'], print('Starting ssh server at %(host)s:%(port)s' % {'host': self.config['BIND_HOST'],
......
...@@ -4,4 +4,3 @@ requests==2.11.1 ...@@ -4,4 +4,3 @@ requests==2.11.1
flask-socketio==2.8.2 flask-socketio==2.8.2
flask-httpauth==3.2.1 flask-httpauth==3.2.1
jumpserver-python-sdk jumpserver-python-sdk
gunicorn
\ No newline at end of file
libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment