Skip to content

Commit

Permalink
Merge pull request #228 from jumpserver/dev
Browse files Browse the repository at this point in the history
perf: 默认关闭 Receptor 组件
  • Loading branch information
wojiushixiaobai authored Apr 23, 2024
2 parents 0f5c730 + 83eaad8 commit e20040e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 57 deletions.
11 changes: 0 additions & 11 deletions allinone/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=true

[program:receptor]
priority=10
environment=PATH="/opt/py3/bin:%(ENV_PATH)s",LANG=C.UTF-8
directory=/opt/jumpserver/
command=python receptor start
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=true

[program:koko]
priority=100
environment=LANG=en_US.UTF-8
Expand Down
2 changes: 2 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ WORKDIR /opt/jumpserver
ARG VERSION=v3.10.9
ENV VERSION=${VERSION}

ENV RECEPTOR_ENABLED=0

VOLUME /opt/jumpserver/data

EXPOSE 8080
Expand Down
23 changes: 0 additions & 23 deletions docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,6 @@ services:
- ${VOLUME_DIR}/core/data:/opt/jumpserver/data
networks:
- net

receptor:
image: jumpserver/jms_core:${VERSION}
container_name: jms_receptor
ulimits:
core: 0
restart: always
command: start receptor
environment:
TZ: ${TZ:-Asia/Shanghai}
depends_on:
core:
condition: service_healthy
healthcheck:
test: "test -S /opt/jumpserver/data/share/control.sock || exit 1"
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
volumes:
- ${VOLUME_DIR}/core/data:/opt/jumpserver/data
networks:
- net

koko:
build:
Expand Down
23 changes: 0 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,29 +68,6 @@ services:
networks:
- net

receptor:
image: jumpserver/jms_core:${VERSION}
container_name: jms_receptor
ulimits:
core: 0
restart: always
command: start receptor
environment:
TZ: ${TZ:-Asia/Shanghai}
depends_on:
core:
condition: service_healthy
healthcheck:
test: "test -S /opt/jumpserver/data/share/control.sock || exit 1"
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
volumes:
- ${VOLUME_DIR}/core/data:/opt/jumpserver/data
networks:
- net

koko:
image: jumpserver/jms_koko:${VERSION}
container_name: jms_koko
Expand Down

0 comments on commit e20040e

Please sign in to comment.