Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] dev from jumpserver:dev #3

Open
wants to merge 194 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
4090d98
perf: 优化键盘切换tab
huailei000 Dec 25, 2023
f578b6e
fix: 【用户登录会话失效问题】SESSION_COOKIE_AGE 配置不生效的问题
feng626 Dec 25, 2023
f3b5648
perf: 优化tab邮件菜单操作
huailei000 Dec 28, 2023
b504fc2
perf: 优化分屏连接第一个会重复执行命令问题
huailei000 Dec 28, 2023
7f65d2b
fix: 会话过期不退出登录
feng626 Dec 28, 2023
e603e26
fix: 会话过期退出登录
feng626 Dec 29, 2023
aaea612
perf: 优化 tree nodes (#1046)
fit2bot Jan 2, 2024
9c25527
fix: 解决某个组织管理员用户无权在线监控及查看录像问题
O-Jiangweidong Dec 29, 2023
2bb3871
perf: 优化一下代码
O-Jiangweidong Dec 29, 2023
f228627
perf: 优化一下代码
O-Jiangweidong Dec 29, 2023
436d980
perf: 优化翻译文件加载
ibuler Jan 11, 2024
aa3b5cd
perf: 修改终端切换提示
w940853815 Jan 12, 2024
e787933
perf: 优化tab样式设置最大、最小宽度
huailei000 Jan 8, 2024
a9a72f5
fix: 修复 k8s tree 加载的问题
ibuler Jan 16, 2024
4c7e820
perf: 增加智能问答
huailei000 Dec 26, 2023
35b7766
perf: 优化tab中的图标不显示问题
huailei000 Jan 29, 2024
33b6178
perf: 优化图形化设置选项不显示问题
huailei000 Jan 29, 2024
f93b9a6
perf: 优化用户session 会话过期
feng626 Jan 31, 2024
9a6d654
perf: 添加 鼠标键盘事件续期
feng626 Feb 4, 2024
c21b4f1
perf: 优化资产连接弹窗的连接方式排列问题
w940853815 Feb 19, 2024
93f200a
perf: 优化多个tab超出一行时显示不全的问题
huailei000 Feb 1, 2024
ecf2d38
fix: Lion代理连接远程应用,Luna页面没有浮标
w940853815 Mar 1, 2024
1da4565
fix: Luna k8s页面没有浮标
w940853815 Mar 5, 2024
d1b5673
feat: 支持配置资产连接默认打开方式
feng626 Mar 8, 2024
6603d6b
Merge pull request #1065 from jumpserver/pr@dev@luna_setting
feng626 Mar 8, 2024
1130ec0
fix: 新窗口打开会话没有浮窗设置按钮
w940853815 Mar 13, 2024
fbb624b
perf: 支持 razor 监控
LeeEirc Mar 13, 2024
332daae
perf: 调整单个会话的 css 样式
LeeEirc Apr 2, 2024
2cd8682
perf: 优化 Windows 的录像播放器显示问题
LeeEirc Mar 29, 2024
4a51524
build(deps-dev): bump handlebars from 4.2.0 to 4.7.8
dependabot[bot] Nov 28, 2023
6c72a21
build(deps-dev): bump follow-redirects from 1.14.8 to 1.15.4
dependabot[bot] Jan 9, 2024
f184112
perf: rdp token 复用
ibuler Apr 7, 2024
5749a16
build(deps): bump express from 4.18.2 to 4.19.2
dependabot[bot] Apr 8, 2024
73d7038
build(deps): bump follow-redirects from 1.15.2 to 1.15.6
dependabot[bot] Apr 8, 2024
9ac6431
build(deps): bump the npm_and_yarn group with 2 updates
dependabot[bot] Apr 8, 2024
b7ffbaf
Revert "build(deps): bump the npm_and_yarn group with 2 updates"
BaiJiangJie Apr 8, 2024
c00ad88
支持中文繁体
hzhwyh0116 Apr 9, 2024
a057c68
perf: 切换zh hant
feng626 Apr 10, 2024
8fe0731
fix: 修复kael组件不启用时终端ws报错
Halo1236 Apr 11, 2024
515c308
perf: 优化 rdp 复用下拉选项
ibuler Apr 15, 2024
5aff85b
perf: 完善用户session会话过期
feng626 Apr 16, 2024
a85a98a
Merge pull request #1082 from jumpserver/pr@dev@user_session
feng626 Apr 16, 2024
1b706b9
fix: 页面过期提醒时,点击确定,无法返回登录页面
feng626 Apr 18, 2024
8384f92
Merge pull request #1083 from jumpserver/pr@dev@window_open
feng626 Apr 18, 2024
5145492
perf: add open sans font
ibuler Apr 22, 2024
d0819b2
perf: 优化 auth 检查,避免多次请求 api
ibuler Apr 22, 2024
78c6e1a
perf: 修改 font size 为 opensans
ibuler Apr 22, 2024
41ba9ea
perf: remove kael
feng626 Apr 26, 2024
40ae8c6
perf: 修改字体和一些表现
ibuler Apr 26, 2024
763e5b3
Merge pull request #1090 from jumpserver/pr@v4@remove
feng626 Apr 28, 2024
8eea0a3
merge: into dev from v4
BaiJiangJie Apr 29, 2024
a93405d
perf: 修改 chat 一些背景
ibuler Apr 30, 2024
b68d3a3
perf: 未部署发布机,连接远程应用资产加说明
w940853815 May 8, 2024
df9f6b0
perf: 禁用连接按钮提示更加明显
w940853815 May 11, 2024
e58a48c
perf: core 掉线 luna 页面提示优化
feng626 May 11, 2024
975477d
perf: 优化切换组织
ibuler May 21, 2024
d62a066
perf: 修改支持新的 chat
ibuler May 28, 2024
43eee38
perf: 修改 chatbot
ibuler May 29, 2024
62f266c
perf: 优化构建
wojiushixiaobai May 30, 2024
51b307e
Merge pull request #1099 from jumpserver/pr@v4@perf_docker_build
wojiushixiaobai May 30, 2024
8950b49
feat: 新增 dameng 图标
gerry-f2c May 14, 2024
afec11b
style: header 部分样式的统一整理 (#1098)
fit2bot May 31, 2024
cd08895
style: tab-item 为 disconnect 时背景颜色,以及 footer 不分空格问题
ZhaoJiSen May 31, 2024
fee56fb
style: 微调 icon 图标以及 搜索框样式
ZhaoJiSen May 31, 2024
fb45ddb
perf: 修改 chat ai
ibuler May 31, 2024
23f2502
Merge branch 'v4' of github.com:jumpserver/luna into v4
ibuler May 31, 2024
5afe8cf
style: header tab 项 hover 背景还原
ZhaoJiSen May 31, 2024
832303b
style: 修复再切换组织时,背景色为 default 时背景的问题、 rMenu 的背景样式以及 tab-item 的 icon 倾斜问题
ZhaoJiSen Jun 3, 2024
5eb902e
perf: i18n cookie default en and expired 365d and remove storage i18n
BaiJiangJie Jun 13, 2024
b2dddc0
perf: merge with dev
ibuler Jun 24, 2024
4513abf
Merge pull request #1107 from jumpserver/v4
ibuler Jun 24, 2024
00939ec
perf: remove unused var
ibuler Jul 1, 2024
af00c6d
perf: Translate
feng626 Jul 3, 2024
1637ee5
Merge pull request #1109 from jumpserver/pr@dev@teanslate
feng626 Jul 3, 2024
3b3c816
perf: Translate
feng626 Jul 3, 2024
c40770d
Merge pull request #1110 from jumpserver/pr@dev@translate
feng626 Jul 3, 2024
bb0f968
perf: view tab color
ibuler Jul 8, 2024
4a97c60
perf: luna disable k8s split connect (#1113)
fit2bot Jul 8, 2024
085b6f5
style: tab overflow
ZhaoJiSen Jul 8, 2024
16d354f
Merge pull request #1114 from jumpserver/pr@dev@fix_tab_style
ZhaoJiSen Jul 8, 2024
f063cf4
fixed: tsLint fixed
ZhaoJiSen Jul 8, 2024
2388a2b
Merge pull request #1115 from jumpserver/pr@dev@fix_ts_lint
ZhaoJiSen Jul 8, 2024
403dffe
fix: FromAsCasing keywords
wojiushixiaobai Jul 9, 2024
fcc0366
perf: batch cmd div border
ibuler Jul 8, 2024
cbbe05a
perf: same localstorage name style
ibuler Jul 11, 2024
caa506c
fixed: Fixed tab renaming issue
ZhaoJiSen Jul 15, 2024
bcda5b5
Merge pull request #1120 from jumpserver/pr@dev@fix_tab_rename
ZhaoJiSen Jul 15, 2024
d2d305d
fixed: Fixing type errors
ZhaoJiSen Jul 17, 2024
c26f86f
Merge pull request #1123 from jumpserver/pr@dev@fix_type_error
ZhaoJiSen Jul 17, 2024
f3445a7
fixed: Remove unused functions
ZhaoJiSen Jul 17, 2024
4d27c9b
Merge pull request #1124 from jumpserver/pr@dev@fix_remove_nouse
ZhaoJiSen Jul 17, 2024
35b1de1
perf: remove client option when disable razor (#1125)
fit2bot Jul 17, 2024
b110be1
perf: add viewer on watermark
LeeEirc Jul 23, 2024
b13559c
perf: change docker build (#1122)
fit2bot Jul 23, 2024
59de1a9
perf: change github action
ibuler Jul 23, 2024
1a69201
fixed: Fixed right icon drag issue
ZhaoJiSen Jul 25, 2024
78d9888
Merge pull request #1132 from jumpserver/pr@dev@fix_drag_icon
ZhaoJiSen Jul 25, 2024
f9eaafd
fixed: Fixed Tab not highlighting when reconnecting
ZhaoJiSen Aug 7, 2024
cdfe136
Merge pull request #1137 from jumpserver/pr@dev@fix_tab_heighlight
ZhaoJiSen Aug 7, 2024
3bb4ff7
chore: remove build test
fit2bot Aug 8, 2024
eea1d7a
perf: Login timeout open in a new window
feng626 Aug 8, 2024
dde2c88
Merge pull request #1141 from jumpserver/pr@dev@luna_login
feng626 Aug 8, 2024
6cbcea9
fixed: Fixed icon not showing
ZhaoJiSen Aug 13, 2024
b5347b5
fixed: Fixed lower terminal focus when changing asset name
ZhaoJiSen Aug 14, 2024
039083e
Merge pull request #1143 from jumpserver/pr@dev@fix_rename
ZhaoJiSen Aug 14, 2024
a2522fb
fixed: Fixed missing ICONS
ZhaoJiSen Aug 14, 2024
b02709f
Merge pull request #1144 from jumpserver/pr@dev@fix_custom_icon
ZhaoJiSen Aug 14, 2024
24830fd
fixed: Fixed missing ICONS
ZhaoJiSen Aug 14, 2024
cd42b37
fixed: Fixed missing ICONS
ZhaoJiSen Aug 14, 2024
8c0ef2f
Merge pull request #1145 from jumpserver/pr@dev@fix_custom_icon
ZhaoJiSen Aug 14, 2024
73793bb
perf: Remove k8s
feng626 Aug 19, 2024
d3b6934
perf: Remove k8s
feng626 Aug 20, 2024
7a3e1e8
Merge pull request #1149 from jumpserver/pr@dev@remove_k8s
feng626 Aug 20, 2024
8f4d265
Revert "perf: Remove k8s"
feng626 Aug 20, 2024
e5b0197
perf: Reduction org
feng626 Aug 20, 2024
129b9da
Merge pull request #1150 from jumpserver/revert-1149-pr@dev@remove_k8s
ZhaoJiSen Aug 20, 2024
a85574c
fixed: remove unused configuration
ZhaoJiSen Aug 27, 2024
5dc5ed1
Merge pull request #1151 from jumpserver/pr@dev@fix_remove_conf
ZhaoJiSen Aug 27, 2024
ab03a24
chore: update checkout action
fit2bot Aug 28, 2024
8517a42
feat: bump node from 16.20 to 20.15
wojiushixiaobai Aug 16, 2024
d6bf957
perf: Optimize the logic of opening the k8s interface
feng626 Sep 2, 2024
77638e9
Merge pull request #1155 from jumpserver/pr@dev@k8s_window_open
feng626 Sep 2, 2024
df61f1d
perf: Keyboard shortcut replacement
ZhaoJiSen Sep 3, 2024
1670e9b
Merge pull request #1156 from jumpserver/pr@dev@fix_keyboard_shortcut
ZhaoJiSen Sep 3, 2024
b72e541
fixed: Fixed cursor style
ZhaoJiSen Sep 9, 2024
5c00779
Merge pull request #1158 from jumpserver/pr@dev@fix_cursor_style
ZhaoJiSen Sep 9, 2024
b1c0495
fixed: Fixed issue with sticky board content disappearing
ZhaoJiSen Sep 11, 2024
022e6e2
Merge pull request #1159 from jumpserver/pr@dev@fix_clipboard_text
ZhaoJiSen Sep 11, 2024
fa473b3
perf: get user own adhoc (#1160)
fit2bot Sep 11, 2024
01989c0
perf: add part replay support
LeeEirc Sep 6, 2024
72c8eb6
fixed: Fixed an issue where Luna theme could not be switched
ZhaoJiSen Sep 16, 2024
5b24c2d
Merge pull request #1163 from jumpserver/pr@dev@fix_change_theme
ZhaoJiSen Sep 16, 2024
ca4afb0
perf: Added a disabling effect to the progress bar when clicked
ZhaoJiSen Sep 18, 2024
3995f9a
Merge pull request #1164 from jumpserver/pr@dev@perf_bar_loading
ZhaoJiSen Sep 18, 2024
6e91989
perf: modify guacamole player css
LeeEirc Sep 19, 2024
e42713f
perf: play replay while loading
LeeEirc Sep 19, 2024
5be1fb2
perf: Avoid window overlapping
w940853815 Oct 8, 2024
08d6b33
fixed: Fixed the not found message when replaying the video
ZhaoJiSen Oct 11, 2024
aa2d2a7
Merge pull request #1171 from jumpserver/pr@dev@fix_replay_alert
ZhaoJiSen Oct 11, 2024
1fd2588
perf: Optimize the logic of acquiring video information (#1172)
fit2bot Oct 11, 2024
20415d2
fixed:Fixed an issue where anonymous accounts could not download rdp …
ZhaoJiSen Nov 5, 2024
9d525e6
Merge pull request #1177 from jumpserver/pr@dev@fix_anonymous_account
ZhaoJiSen Nov 5, 2024
08ffb72
feat: Add dynamic form and variable command dialog (#1176)
fit2bot Nov 7, 2024
c39fb53
perf: add nec vnc component
LeeEirc Nov 11, 2024
baebec8
perf: update nec code
LeeEirc Nov 11, 2024
86d570e
perf: update nec info name
LeeEirc Nov 11, 2024
eb301b6
fix: Set the default language to en
BaiJiangJie Nov 12, 2024
c702ed7
chore(deps): bump elliptic from 6.5.4 to 6.6.0
dependabot[bot] Oct 30, 2024
ba36157
perf: Update dynamic form layout and styles (#1184)
fit2bot Nov 20, 2024
f7cf3c2
fixed: Fixed an issue when switching languages
ZhaoJiSen Nov 21, 2024
b83b505
perf: Update variable form API endpoint URL (#1188)
fit2bot Nov 22, 2024
8035aa1
perf: Add viewAssetOnlineSessionInfo conf
w940853815 Nov 25, 2024
a22b06d
perf: languages settings
BaiJiangJie Dec 3, 2024
fdac060
fixed: Fixed an issue where commands would loop twice in playback rec…
ZhaoJiSen Dec 4, 2024
3ee96d6
feat: login asset acl checking
Aaron3S Dec 6, 2024
2f11b36
Merge pull request #1195 from jumpserver/pr@dev@feat_login_asset_face…
Aaron3S Dec 6, 2024
915ed10
feat: change face context url
Aaron3S Dec 9, 2024
fbb0874
Merge pull request #1196 from jumpserver/pr@dev@feat_change_face_cont…
Aaron3S Dec 9, 2024
f9eadc1
fixed: Right drag problem
ZhaoJiSen Dec 10, 2024
1d22ef9
perf: add rdp connection speed option
LeeEirc Dec 11, 2024
b6558f8
feat: face online
Aaron3S Dec 12, 2024
3ec0a67
Merge pull request #1200 from jumpserver/pr@dev@feat_face_online
Aaron3S Dec 12, 2024
ac09429
perf: Change language
feng626 Dec 16, 2024
8a2d683
feat: add face verify on exchange token
Aaron3S Dec 16, 2024
c74b221
Merge pull request #1202 from jumpserver/pr@dev@feat_add_face_verify_…
Aaron3S Dec 16, 2024
9b3e5f0
feat: change face monitor some icon
Aaron3S Dec 17, 2024
540e7a4
Merge pull request #1203 from jumpserver/pr@dev@feat_change_some_icon
Aaron3S Dec 17, 2024
463d337
feat: client connect method not supported face online
Aaron3S Dec 17, 2024
0f427b4
Merge pull request #1204 from jumpserver/pr@dev@feat_face_live_not_su…
Aaron3S Dec 17, 2024
fdbac06
fix: face online copy window error
Aaron3S Dec 17, 2024
b3d039b
Merge pull request #1205 from jumpserver/pr@dev@fix_face_online_copy_…
Aaron3S Dec 17, 2024
7746e0a
feat: add session disconnected monitor
Aaron3S Dec 17, 2024
cc20e68
feat: add some translate
Aaron3S Dec 17, 2024
d787fc6
perf: Optimize mobile style
ZhaoJiSen Dec 18, 2024
b6381dc
Merge pull request #1207 from jumpserver/pr@dev@perf_mobile_style
Aaron3S Dec 18, 2024
7881cb8
perf: Optimize mobile style
ZhaoJiSen Dec 18, 2024
6d4d725
Fixed: Fixed the issue that when use keyboard key to switch double tab
ZhaoJiSen Jan 14, 2025
24a3a81
Perf: Add start scripts
ZhaoJiSen Jan 14, 2025
5357165
feat: add translate
Aaron3S Jan 14, 2025
ebbbbac
Merge pull request #1223 from jumpserver/pr@dev@feat_add_translate
Aaron3S Jan 14, 2025
cbfd20e
fix: fix error display
Aaron3S Feb 12, 2025
61feea3
Merge pull request #1225 from jumpserver/pr@dev@fix_error_display
Aaron3S Feb 12, 2025
7ef294d
Fixed: Fixed PR-BP languange Dailog Adapatation
ZhaoJiSen Feb 13, 2025
8b12892
Fixed: KOKO component still accepts input when encountering 401 error
ZhaoJiSen Feb 17, 2025
664bff8
Fixed: Fix: Text overlap issue caused by assignment
ZhaoJiSen Feb 18, 2025
9139c27
Revert "Fixed: KOKO component still accepts input when encountering 4…
BaiJiangJie Feb 19, 2025
c3bb425
feat: add i18n
Aaron3S Feb 19, 2025
4aed9f6
Merge pull request #1232 from jumpserver/pr@dev@feat_add_i18n
Aaron3S Feb 19, 2025
2dbc8c3
Pam (#1233)
feng626 Feb 24, 2025
36acc4e
Fixed: Error
ZhaoJiSen Feb 24, 2025
5756e5f
Fixed: Connect Direct Params
ZhaoJiSen Feb 24, 2025
d0dde2e
Fixed: Port Proxy
ZhaoJiSen Mar 10, 2025
f6b8c2c
Fixed: Windows Size
ZhaoJiSen Mar 10, 2025
18133ce
Fixed: Protocal Support
ZhaoJiSen Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/build-base-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build and Push Base Image

on:
push:
branches:
- 'pr*'
paths:
- 'package.json'
- 'package-lock.json'
- 'yarn.lock'
- 'Dockerfile-base'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract date
id: vars
run: echo "IMAGE_TAG=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_ENV

- name: Extract repository name
id: repo
run: echo "REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV

- name: Build and push multi-arch image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: jumpserver/${{ env.REPO }}-base:${{ env.IMAGE_TAG }}
file: Dockerfile-base

- name: Update Dockerfile
run: |
sed -i 's|-base:.* AS stage-build|-base:${{ env.IMAGE_TAG }} AS stage-build|' Dockerfile

- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add Dockerfile
git commit -m "perf: Update Dockerfile with new base image tag"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/jms-build-test.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/jms-build-test.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Run Build Test"
on:
push:
paths:
- 'Dockerfile'
- 'Dockerfile*'
- 'package.json'
- 'yarn.lock'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
component: [luna]
version: [v4]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3

- name: Prepare Build
run: |
sed -i '[email protected]@registry.yarnpkg.com@g' yarn.lock

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: Dockerfile
tags: ghcr.io/jumpserver/${{ matrix.component }}:${{ matrix.version }}
platforms: linux/amd64
build-args: |
VERSION=${{ matrix.version }}
APT_MIRROR=http://deb.debian.org
NPM_REGISTRY=https://registry.yarnpkg.com
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
tag: ${{ steps.get_version.outputs.TAG }}
- uses: actions/setup-node@v2
with:
node-version: '16.20'
node-version: '20.15'
- name: Install dependencies
run: yarn install
- name: Build web
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run Luna",
"type": "node",
"request": "launch",
"runtimeExecutable": "bash",
"runtimeArgs": [
"-c",
"source ~/.zshrc && nvm use v16.20.2 && npm start"
],
}
]
}
20 changes: 5 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
FROM node:16.20-bullseye-slim as stage-build
ARG TARGETARCH
ARG NPM_REGISTRY="https://registry.npmmirror.com"

WORKDIR /data

RUN set -ex \
&& npm config set registry ${NPM_REGISTRY} \
&& yarn config set registry ${NPM_REGISTRY}

ADD package.json yarn.lock /data/
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=luna \
yarn install
# Use base image to build the project avoid npm install every time
FROM jumpserver/luna-base:20241113_102222 AS stage-build

ARG VERSION
ENV VERSION=$VERSION

ADD . /data
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=luna \
sed -i "s@version =.*;@version = '${VERSION}';@g" src/environments/environment.prod.ts \

RUN sed -i "s@version =.*;@version = '${VERSION}';@g" src/environments/environment.prod.ts \
&& yarn build \
&& cp -R src/assets/i18n luna/

Expand Down
8 changes: 8 additions & 0 deletions Dockerfile-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:20.15-bullseye-slim

WORKDIR /data

COPY package.json yarn.lock ./
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=luna \
yarn install

1 change: 1 addition & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"preserveSymlinks": true,
"assets": [
"src/assets",
"src/static",
Expand Down
4 changes: 0 additions & 4 deletions deploy/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions deploy/build.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions deploy/deploy.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions deploy/docker_build.sh

This file was deleted.

18 changes: 0 additions & 18 deletions deploy/publish.sh

This file was deleted.

Loading