mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 15:43:24 +08:00
修改 debian 版本为 12 bookworm
This commit is contained in:
parent
5c50916f96
commit
744a2c6208
|
@ -651,7 +651,7 @@ async function _updateLinuxMirror(
|
||||||
let filePath: string, currentDomainWithScheme: string | null;
|
let filePath: string, currentDomainWithScheme: string | null;
|
||||||
switch (osType) {
|
switch (osType) {
|
||||||
case 'Debian':
|
case 'Debian':
|
||||||
filePath = '/etc/apt/sources.list';
|
filePath = '/etc/apt/sources.list.d/debian.sources';
|
||||||
currentDomainWithScheme = await getCurrentMirrorDomain(filePath);
|
currentDomainWithScheme = await getCurrentMirrorDomain(filePath);
|
||||||
if (currentDomainWithScheme) {
|
if (currentDomainWithScheme) {
|
||||||
await replaceDomainInFile(
|
await replaceDomainInFile(
|
||||||
|
@ -664,7 +664,7 @@ async function _updateLinuxMirror(
|
||||||
throw Error(`Current mirror domain not found.`);
|
throw Error(`Current mirror domain not found.`);
|
||||||
}
|
}
|
||||||
case 'Ubuntu':
|
case 'Ubuntu':
|
||||||
filePath = '/etc/apt/sources.list';
|
filePath = '/etc/apt/sources.list.d/ubuntu.sources';
|
||||||
currentDomainWithScheme = await getCurrentMirrorDomain(filePath);
|
currentDomainWithScheme = await getCurrentMirrorDomain(filePath);
|
||||||
if (currentDomainWithScheme) {
|
if (currentDomainWithScheme) {
|
||||||
await replaceDomainInFile(
|
await replaceDomainInFile(
|
||||||
|
|
|
@ -239,13 +239,13 @@ export default class DependenceService {
|
||||||
const isPythonDependence = dependency.type === DependenceTypes.python3;
|
const isPythonDependence = dependency.type === DependenceTypes.python3;
|
||||||
const osType = await detectOS();
|
const osType = await detectOS();
|
||||||
let linuxCommand = {} as typeof LINUX_DEPENDENCE_COMMAND.Alpine;
|
let linuxCommand = {} as typeof LINUX_DEPENDENCE_COMMAND.Alpine;
|
||||||
|
taskLimit.removeQueuedDependency(dependency);
|
||||||
if (isLinuxDependence) {
|
if (isLinuxDependence) {
|
||||||
if (!osType) {
|
if (!osType) {
|
||||||
return resolve(null);
|
return resolve(null);
|
||||||
}
|
}
|
||||||
linuxCommand = LINUX_DEPENDENCE_COMMAND[osType];
|
linuxCommand = LINUX_DEPENDENCE_COMMAND[osType];
|
||||||
}
|
}
|
||||||
taskLimit.removeQueuedDependency(dependency);
|
|
||||||
|
|
||||||
const depIds = [dependency.id!];
|
const depIds = [dependency.id!];
|
||||||
const status = isInstall
|
const status = isInstall
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM node:20-slim AS nodebuilder
|
FROM node:20-slim AS nodebuilder
|
||||||
|
|
||||||
FROM python:3.10-slim-bullseye AS builder
|
FROM python:3.10-slim-bookworm AS builder
|
||||||
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
||||||
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
||||||
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
||||||
|
@ -12,7 +12,7 @@ RUN set -x && \
|
||||||
cd /tmp/build && \
|
cd /tmp/build && \
|
||||||
pnpm install --prod
|
pnpm install --prod
|
||||||
|
|
||||||
FROM python:3.10-slim-bullseye
|
FROM python:3.10-slim-bookworm
|
||||||
|
|
||||||
ARG QL_MAINTAINER="whyour"
|
ARG QL_MAINTAINER="whyour"
|
||||||
LABEL maintainer="${QL_MAINTAINER}"
|
LABEL maintainer="${QL_MAINTAINER}"
|
||||||
|
@ -43,7 +43,7 @@ RUN set -x && \
|
||||||
nginx \
|
nginx \
|
||||||
jq \
|
jq \
|
||||||
procps \
|
procps \
|
||||||
netcat \
|
netcat-openbsd \
|
||||||
unzip \
|
unzip \
|
||||||
libatomic1 && \
|
libatomic1 && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM node:20-slim AS nodebuilder
|
FROM node:20-slim AS nodebuilder
|
||||||
|
|
||||||
FROM python:3.11-slim-bullseye AS builder
|
FROM python:3.11-slim-bookworm AS builder
|
||||||
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
||||||
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
||||||
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
||||||
|
@ -12,7 +12,7 @@ RUN set -x && \
|
||||||
cd /tmp/build && \
|
cd /tmp/build && \
|
||||||
pnpm install --prod
|
pnpm install --prod
|
||||||
|
|
||||||
FROM python:3.11-slim-bullseye
|
FROM python:3.11-slim-bookworm
|
||||||
|
|
||||||
ARG QL_MAINTAINER="whyour"
|
ARG QL_MAINTAINER="whyour"
|
||||||
LABEL maintainer="${QL_MAINTAINER}"
|
LABEL maintainer="${QL_MAINTAINER}"
|
||||||
|
@ -44,7 +44,7 @@ RUN set -x && \
|
||||||
nginx \
|
nginx \
|
||||||
jq \
|
jq \
|
||||||
procps \
|
procps \
|
||||||
netcat \
|
netcat-openbsd \
|
||||||
unzip \
|
unzip \
|
||||||
libatomic1 && \
|
libatomic1 && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user