Skip to content

Commit

Permalink
feat: add component facelive
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron3S authored and BaiJiangJie committed Nov 13, 2024
1 parent ca68c3c commit 37d2cd5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
18 changes: 18 additions & 0 deletions compose/facelive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
facelive:
image: ${REGISTRY:-registry.fit2cloud.com}/jumpserver/facelive:${VERSION}
container_name: jms_facelive
hostname: jms_facelive
restart: always
env_file:
- ${CONFIG_FILE}
volumes:
- ${VOLUME_DIR}/facelive/data:/opt/facelive/data
healthcheck:
test: "curl -fsL http://localhost:9999/facelive/health/ > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
- net
1 change: 1 addition & 0 deletions scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function set_port() {
razor_enable=$(get_config RAZOR_ENABLE)
web_enable=$(get_config WEB_ENABLE)
nec_enable=$(get_config NEC_ENABLE)
facelive_enable=$(get_config FACELIVE_ENABLE)

if [[ "${web_enable}" != "0" ]]; then
http_port=$(get_config HTTP_PORT)
Expand Down
7 changes: 4 additions & 3 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ function get_images() {
echo "registry.fit2cloud.com/jumpserver/xrdp:${VERSION}"
echo "registry.fit2cloud.com/jumpserver/panda:${VERSION}"
echo "registry.fit2cloud.com/jumpserver/nec:${VERSION}"
echo "registry.fit2cloud.com/jumpserver/facelive:${VERSION}"
else
echo "jumpserver/core:${VERSION}"
echo "jumpserver/koko:${VERSION}"
Expand Down Expand Up @@ -343,8 +344,8 @@ function get_docker_compose_services() {
[[ "${use_loki}" == "1" ]] && services+=" loki"

if [[ "${use_xpack}" == "1" ]]; then
services+=" magnus razor xrdp video panda nec"
for service in magnus razor xrdp video panda nec; do
services+=" magnus razor xrdp video panda nec facelive"
for service in magnus razor xrdp video panda nec facelive; do
enabled=$(get_config "${service^^}_ENABLED")
[[ "${enabled}" == "0" ]] && services="${services//${service}/}"
done
Expand Down Expand Up @@ -396,7 +397,7 @@ function get_docker_compose_cmd_line() {
fi

if [[ "${use_xpack}" == '1' ]]; then
for service in magnus razor xrdp video panda nec; do
for service in magnus razor xrdp video panda nec facelive; do
if [[ "${services}" =~ ${service} ]]; then
cmd+=" -f compose/${service}.yml"
fi
Expand Down

0 comments on commit 37d2cd5

Please sign in to comment.