Skip to content

Commit d22ee2e

Browse files
authored
Merge branch 'main' into dev/update-casdoor-code
2 parents 3539ac1 + 44373e6 commit d22ee2e

24 files changed

Lines changed: 76 additions & 79 deletions

.github/workflows/build-docker.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525
# used to sync image to mirror registry
2626
DOCKER_MIRROR_REGISTRY_USERNAME: ${{ vars.DOCKER_MIRROR_REGISTRY_USERNAME }}
2727
DOCKER_MIRROR_REGISTRY_PASSWORD: ${{ secrets.DOCKER_MIRROR_REGISTRY_PASSWORD }}
28+
CI_PROJECT_NAME: ${{ vars.CI_PROJECT_NAME || 'LabNow/lab-dev' }}
2829

2930
jobs:
3031
## Clash
@@ -55,7 +56,7 @@ jobs:
5556
source ./tool.sh && build_image keycloak latest docker_keycloak/Dockerfile && push_image
5657
5758
## DevHub
58-
qpod_dev-hub:
59+
job-dev-hub:
5960
name: 'dev-hub'
6061
runs-on: ubuntu-latest
6162
steps:
@@ -68,7 +69,7 @@ jobs:
6869
push_image
6970
7071
## OpenResty as gateway
71-
qpod_openresty:
72+
job-openresty:
7273
name: 'openresty'
7374
runs-on: ubuntu-latest
7475
steps:
@@ -77,7 +78,7 @@ jobs:
7778
source ./tool.sh && build_image openresty latest docker_openresty/Dockerfile && push_image
7879
7980
## OpenResty as gateway
80-
qpod_searxng:
81+
job-searxng:
8182
name: 'searxng'
8283
runs-on: ubuntu-latest
8384
steps:
@@ -87,7 +88,7 @@ jobs:
8788
8889
8990
## DevBox - base
90-
qpod_base-dev:
91+
job-base-dev:
9192
name: 'developer,base-dev'
9293
runs-on: ubuntu-latest
9394
steps:
@@ -101,7 +102,7 @@ jobs:
101102
alias_image base-dev latest developer latest && push_image dev
102103
103104
## DevBox - data science stack
104-
qpod_data-science-dev:
105+
job-data-science-dev:
105106
name: 'data-science-dev'
106107
runs-on: ubuntu-latest
107108
steps:
@@ -116,7 +117,7 @@ jobs:
116117
push_image
117118
118119
## DevBox - full stack
119-
qpod_full-stack-dev:
120+
job-full-stack-dev:
120121
name: 'full-stack-dev'
121122
runs-on: ubuntu-latest
122123
steps:
@@ -131,7 +132,7 @@ jobs:
131132
push_image
132133
133134
## DevBox - cuda
134-
qpod_cuda-dev:
135+
job-cuda-dev:
135136
name: 'full-cuda,cuda-dev'
136137
runs-on: ubuntu-latest
137138
steps:
@@ -147,7 +148,7 @@ jobs:
147148
148149
## Sync all images in this build (listed by "names") to mirror registry.
149150
sync_images:
150-
needs: ["qpod_cuda-dev", "qpod_data-science-dev", "qpod_full-stack-dev"]
151+
needs: ["job-cuda-dev", "job-data-science-dev", "job-full-stack-dev"]
151152
runs-on: ubuntu-latest
152153
steps:
153154
- uses: actions/checkout@v4
@@ -158,5 +159,5 @@ jobs:
158159
source ./tool.sh
159160
printf '%s' "$AUTH_FILE_CONTENT" > .github/workflows/auth.json && ls -alh ./.github/workflows
160161
printenv | grep -v 'PATH' > /tmp/docker.env && echo "REGISTRY_URL=${REGISTRY_DST}" >> /tmp/docker.env
161-
docker run --rm --env-file /tmp/docker.env -v $(pwd):/tmp -w /tmp ${IMG_PREFIX_DST:-qpod}/docker-kit \
162+
docker run --rm --env-file /tmp/docker.env -v $(pwd):/tmp -w /tmp ${IMG_PREFIX_DST:-labnow}/docker-kit \
162163
python /opt/utils/image-syncer/run_jobs.py --auth-file=/tmp/.github/workflows/auth.json

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2024, QPod
3+
Copyright (c) 2018, QPod
4+
Copyright (c) 2024, LabNow
45

56
Redistribution and use in source and binary forms, with or without
67
modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,40 @@
1-
# QPod Lab Dev - Docker Image Stack
1+
# LabNow Container Image Stack - Lab Dev
22

33
[![License](https://img.shields.io/badge/License-BSD%203--Clause-green.svg)](https://opensource.org/licenses/BSD-3-Clause)
4-
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/QPod/lab-dev/build-docker.yml?branch=main)](https://github.com/QPod/lab-dev/actions/workflows/build-docker.yml)
5-
[![Recent Code Update](https://img.shields.io/github/last-commit/QPod/lab-dev.svg)](https://github.com/QPod/lab-dev/stargazers)
6-
[![Visit Images on DockerHub](https://img.shields.io/badge/DockerHub-Images-green)](https://hub.docker.com/u/qpod)
4+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/LabNow-ai/lab-dev/build-docker.yml?branch=main)](https://github.com/LabNow-ai/lab-dev/actions/workflows/build-docker.yml)
5+
[![Recent Code Update](https://img.shields.io/github/last-commit/LabNow-ai/lab-dev.svg)](https://github.com/LabNow-ai/lab-dev/stargazers)
6+
[![Visit Images on DockerHub](https://img.shields.io/badge/DockerHub-Images-green)](https://hub.docker.com/u/labnow)
77

8-
Please generously STAR★ our project or donate to us! [![GitHub Starts](https://img.shields.io/github/stars/QPod/lab-dev.svg?label=Stars&style=social)](https://github.com/QPod/lab-dev/stargazers)
8+
Please generously STAR★ our project or donate to us! [![GitHub Starts](https://img.shields.io/github/stars/LabNow-ai/lab-dev.svg?label=Stars&style=social)](https://github.com/LabNow-ai/lab-dev/stargazers)
99
[![Donate-PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/haobibo)
1010
[![Donate-AliPay](https://img.shields.io/badge/Donate-Alipay-blue.svg)](https://raw.githubusercontent.com/wiki/haobibo/resources/img/Donate-AliPay.png)
1111
[![Donate-WeChat](https://img.shields.io/badge/Donate-WeChat-green.svg)](https://raw.githubusercontent.com/wiki/haobibo/resources/img/Donate-WeChat.png)
1212

1313
Discussion and contributions are welcome:
1414
[![Join the Discord Chat](https://img.shields.io/badge/Discuss_on-Discord-green)](https://discord.gg/kHUzgQxgbJ)
15-
[![Open an Issue on GitHub](https://img.shields.io/github/issues/QPod/lab-dev)](https://github.com/QPod/lab-dev/issues)
15+
[![Open an Issue on GitHub](https://img.shields.io/github/issues/LabNow-ai/lab-dev)](https://github.com/LabNow-ai/lab-dev/issues)
1616

1717
## Lab Dev - Building Blocks and IDEs for Application Development
1818

19-
`QPod lab-dev` ( [DockerHub](https://hub.docker.com/u/qpod) | [GitHub](https://github.com/QPod/lab-dev) ) provides Building Blocks and IDEs for Application Development.
19+
`LabNow lab-dev` ( [DockerHub](https://hub.docker.com/u/labnow) | [GitHub](https://github.com/LabNow-ai/lab-dev) ) provides Building Blocks and IDEs for Application Development.
2020

2121
## Documentation & Tutorial
2222

23-
[Wiki & Document](https://qpod.github.io/) | [中文使用指引(含中国网络镜像)](https://qpod.github.io/docs/intro-cn)
24-
25-
## Screenshot and Arch Diagram
26-
27-
![Screenshot of QPod](https://raw.githubusercontent.com/wiki/QPod/qpod-hub/img/QPod-screenshot.webp "Screenshot of QPod")
28-
29-
![Arch Diagram for QPod DevBox](https://raw.githubusercontent.com/wiki/QPod/docker-images/img/QPod-arch.svg "Arch Diagram for QPod DevBox")
23+
[Wiki & Document](https://labnow.ai/) | [中文使用指引(含中国网络镜像)](https://labnow-ai.feishu.cn/wiki/wikcn0sBhMtb1KNRSUTettxWstc)
3024

3125
## Develop and Debug
3226

3327
```bash
34-
IMG="qpod/developer"
35-
# IMG="registry.cn-hangzhou.aliyuncs.com/qpod/developer"
28+
IMG="labnow/developer"
29+
# IMG="quay.io/labnow/developer"
3630

3731
docker run -d --restart=always \
38-
--name=QPod-lab-dev \
39-
--hostname=QPod \
32+
--name=labnow-dev \
33+
--hostname=LabNow \
4034
-p 18888-18890:8888-8890 \
41-
-v $(pwd):/root/lab-dev \
42-
-w /root/lab-dev \
35+
-v $(pwd):/root/labnow \
36+
-w /root/labnow \
4337
$IMG
4438

45-
sleep 5s && docker logs QPod-lab-dev 2>&1|grep token=
39+
sleep 5s && docker logs labnow-dev 2>&1|grep token=
4640
```

docker_app_clash/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ docker run -d \
1111
--name=app-clash \
1212
-p 7890:7890 -p 9090:9090 \
1313
-e PROXY_PROVIDER="https://subs.zeabur.app/clash" \
14-
qpod/app-clash
14+
labnow/app-clash
1515
```
1616

1717
After the container starts, visit this page to manage proxy: http://localhost:9090/ui/ui-xd/

docker_app_clash/clash.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ARG BASE_IMG="atom"
66

77

88
# Stage 1: build code, both backend and frontend
9-
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG_BUILD} as builder
9+
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG_BUILD} AS builder
1010

1111
COPY work/clash /opt/utils/
1212

1313
RUN set -eux && source /opt/utils/script-setup-clash.sh \
14-
&& setup_clash && setup_clash_metacubexd && setup_clash_verge \
14+
&& setup_clash && setup_clash_metacubexd && setup_clash_zashboard \
1515
&& mv /opt/utils/config.yaml /opt/clash/config \
1616
&& mv /opt/utils/start-clash.sh /opt/clash/
1717

docker_app_clash/demo/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
svc-clash:
3-
image: docker.io/qpod/app-clash
3+
image: docker.io/labnow/app-clash
44
container_name: svc-clash
55
hostname: svc-clash
66
restart: unless-stopped

docker_app_clash/work/clash/script-setup-clash.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ setup_clash_metacubexd() {
3434
&& mv /tmp/xd/dist /opt/clash/ui-xd
3535
}
3636

37-
setup_clash_verge() {
38-
# Install the latest release: https://clash-verge-rev.github.io/index.html
39-
VER_VERGE=$(curl -sL https://github.com/clash-verge-rev/clash-verge-rev/releases.atom | grep 'releases/tag/v' | head -1 | grep -Po '\d[\d.]+' ) \
40-
&& URL_VERGE="https://github.com/clash-verge-rev/clash-verge-rev/archive/refs/tags/v$VER_VERGE.tar.gz" \
41-
&& echo "Downloading clash-verge version ${VER_VERGE} from: ${URL_VERGE}" \
42-
&& install_tar_gz $URL_VERGE \
43-
&& mv /opt/clash-verge-* /tmp/verge && cd /tmp/verge \
37+
setup_clash_zashboard() {
38+
# Install the latest release: https://github.com/Zephyruso/zashboard
39+
VER_ZASHBOARD=$(curl -sL https://github.com/Zephyruso/zashboard/releases.atom | grep 'releases/tag/v' | head -1 | grep -Po '\d[\d.]+' ) \
40+
&& URL_ZASHBOARD="https://github.com/Zephyruso/zashboard/archive/refs/tags/v$VER_ZASHBOARD.tar.gz" \
41+
&& echo "Downloading zashboard version ${VER_ZASHBOARD} from: ${URL_ZASHBOARD}" \
42+
&& install_tar_gz $URL_ZASHBOARD \
43+
&& mv /opt/zashboard-* /tmp/zashboard && cd /tmp/zashboard \
4444
&& jq '.homepage = "./ui"' package.json > tmp.$$.json && mv tmp.$$.json package.json \
45-
&& npx pnpm i && npx pnpm run web:build && ls -alh \
46-
&& mv /tmp/verge/dist /opt/clash/ui-verge
45+
&& npx pnpm i && npx pnpm run build && ls -alh \
46+
&& mv /tmp/zashboard/dist /opt/clash/ui-zashboard
4747
}

docker_casdoor/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN set -eux \
2222
&& mkdir -pv /root/web && ln -sf /opt/casdoor/web/build /root/web/ && ls -alh /opt/casdoor/web \
2323
&& chmod +x /opt/casdoor/docker-entrypoint.sh && ls -alh /opt/casdoor
2424

25-
LABEL maintainer="haobibo@gmail.com"
25+
LABEL maintainer="postmaster@labnow.ai"
2626
ENV RUNNING_IN_DOCKER true
2727
WORKDIR /opt/casdoor
2828
EXPOSE 8000

docker_casdoor/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ Identity and Access Management (IAM) / Single-Sign-On (SSO) platform: https://gi
55
## debug
66

77
```shell
8-
docker build -t qpod0dev/casdoor \
8+
docker build -t labnow/casdoor \
99
-f docker_casdoor/Dockerfile \
10-
--build-arg="BASE_NAMESPACE=qpod0dev" \
10+
--build-arg="BASE_NAMESPACE=labnow" \
1111
docker_casdoor
1212

1313
docker run -it \
1414
-p 8000:8000 \
15-
qpod0dev/casdoor \
15+
labnow/casdoor \
1616
bash
1717

1818

1919
docker run --rm -it \
2020
-p 8000:8000 \
2121
-v $(pwd):/root/docker_casdoor \
22-
qpod/go-stack \
22+
labnow/go-stack \
2323
bash
2424
```

docker_casdoor/demo/docker-compose.dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
db-postgres-casdoor:
33
# su postgres && psql -d casdoor -U pg-casdoor-username
4-
image: docker.io/qpod/postgres-16:latest
4+
image: docker.io/labnow/postgres-16:latest
55
container_name: db-postgres
66
environment:
77
POSTGRES_DB: casdoor
@@ -13,9 +13,9 @@ services:
1313
context: ../
1414
dockerfile: Dockerfile
1515
args:
16-
BASE_NAMESPACE: qpod
16+
BASE_NAMESPACE: labnow
1717
tags:
18-
- qpod/casdoor
18+
- labnow/casdoor
1919
container_name: svc-casdoor
2020
# command: ["/bin/bash", "--login", "/opt/casdoor/server", "--createDatabase=true"]
2121
command: |

0 commit comments

Comments
 (0)