-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from jumpserver/dev
v4.4.0
- Loading branch information
Showing
8 changed files
with
29 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG VERSION=dev | ||
FROM jumpserver/web-static:20241012_082502 AS static | ||
FROM jumpserver/web-static:20241121_062038 AS static | ||
FROM jumpserver/web:${VERSION}-ce | ||
|
||
COPY --from=static /opt/ /opt/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,8 @@ | ||
FROM python:3.11-alpine3.20 AS stage-build | ||
ARG TARGETARCH | ||
|
||
ARG DEPENDENCIES=" \ | ||
ca-certificates \ | ||
curl \ | ||
zip" | ||
|
||
RUN apk add --no-cache ${DEPENDENCIES} | ||
|
||
WORKDIR /opt/applets | ||
|
||
COPY ../requirements.txt ./requirements.txt | ||
|
||
ARG PIP_MIRROR=https://pypi.org/simple | ||
RUN set -ex \ | ||
&& mkdir pip_packages build \ | ||
&& pip config set global.index-url ${PIP_MIRROR} \ | ||
&& pip download \ | ||
--only-binary=:all: --platform win_amd64 \ | ||
--python-version 3.11.6 --abi cp311 \ | ||
-d pip_packages -r requirements.txt -i${PIP_MIRROR} \ | ||
&& cp requirements.txt pip_packages \ | ||
&& zip -r pip_packages.zip pip_packages \ | ||
&& mv pip_packages.zip build | ||
|
||
ARG CHECK_VERSION=v1.0.2 | ||
RUN set -ex \ | ||
&& wget https://github.com/jumpserver-dev/healthcheck/releases/download/${CHECK_VERSION}/check-${CHECK_VERSION}-linux-${TARGETARCH}.tar.gz \ | ||
&& tar -xf check-${CHECK_VERSION}-linux-${TARGETARCH}.tar.gz \ | ||
&& mv check /usr/local/bin/ \ | ||
&& chown root:root /usr/local/bin/check \ | ||
&& chmod 755 /usr/local/bin/check \ | ||
&& rm -f check-${CHECK_VERSION}-linux-${TARGETARCH}.tar.gz | ||
|
||
FROM alpine:3.20 | ||
ARG TARGETARCH | ||
|
||
WORKDIR /tmp | ||
COPY . . | ||
RUN set -ex \ | ||
&& apk add --no-cache bash \ | ||
&& bash ./prepare.sh | ||
|
||
COPY --from=stage-build /opt/applets/build /opt/download/applets | ||
COPY --from=stage-build /usr/local/bin/check /usr/local/bin/check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
location /facelive/ { | ||
proxy_pass http://facelive:9999; | ||
proxy_buffering off; | ||
proxy_http_version 1.1; | ||
proxy_request_buffering off; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_ignore_client_abort on; | ||
proxy_connect_timeout 600; | ||
proxy_send_timeout 600; | ||
proxy_read_timeout 600; | ||
send_timeout 6000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters