Skip to main content

docker 被封之后 如何访问

· One min read
timger
timger

修改 daemon 配置 加入如下内容.

mkdir -p /etc/docker
vim /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://huecker.io",
"https://dockerhub.timeweb.cloud",
"https://noohub.ru"
]
}

test

· 11 min read
timger
timger

参考 https://github.com/getsentry/self-hosted

默认安装 docker 和 docker compose 需要前提安装

git clone https://github.com/getsentry/self-hosted.git
VERSION="24.1.0"
cd self-hosted
git checkout ${VERSION}
./install.sh

日志

root@dafengstido:/data/riad-data/projects/self-hosted# ./install.sh
▶ Parsing command line ...

▶ Detecting Docker platform
Detected Docker platform is linux/amd64

▶ Initializing Docker Compose ...

▶ Setting up error handling ...
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 292B done
#1 DONE 0.2s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.2s

#3 [internal] load metadata for docker.io/library/debian:bookworm-slim
#3 DONE 38.7s

#4 [1/2] FROM docker.io/library/debian:bookworm-slim@sha256:67f3931ad8cb1967beec602d8c0506af1e37e8d73c2a0b38b181ec5d8560d395
#4 resolve docker.io/library/debian:bookworm-slim@sha256:67f3931ad8cb1967beec602d8c0506af1e37e8d73c2a0b38b181ec5d8560d395 0.1s done
#4 sha256:84d83b22ba6c367e143fcb7169717d87d7f484356cf9a904f5352418981a99a3 529B / 529B done
#4 sha256:46a63b82e4145c5eb93ce87cb6b3e6eeb89a4318b848b8e44a2ea029ccfdc157 1.46kB / 1.46kB done
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 0.2s
#4 sha256:67f3931ad8cb1967beec602d8c0506af1e37e8d73c2a0b38b181ec5d8560d395 1.85kB / 1.85kB done
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 5.4s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 10.5s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 15.7s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 20.7s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 25.8s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 31.0s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 36.1s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 41.2s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 46.4s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 51.5s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 56.6s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 0B / 29.15MB 61.6s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 3.15MB / 29.15MB 63.5s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 9.44MB / 29.15MB 63.6s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 15.73MB / 29.15MB 63.7s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 29.15MB / 29.15MB 63.9s
#4 sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 29.15MB / 29.15MB 64.3s done
#4 extracting sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44
#4 extracting sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 1.3s done
#4 DONE 66.0s

#5 [2/2] RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq && apt-get clean && rm -rf /var/lib/apt/lists/*
#5 0.276 + apt-get update
#5 0.799 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
#5 1.423 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
#5 1.630 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#5 1.764 Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8786 kB]
#5 2.400 Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
#5 2.523 Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [160 kB]
#5 3.563 Fetched 9214 kB in 3s (2822 kB/s)
#5 3.563 Reading package lists...
#5 4.233 + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
#5 4.239 Reading package lists...
#5 4.886 Building dependency tree...
#5 5.029 Reading state information...
#5 5.261 The following additional packages will be installed:
#5 5.263 libjq1 libonig5
#5 5.315 The following NEW packages will be installed:
#5 5.317 jq libjq1 libonig5
#5 5.693 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
#5 5.693 Need to get 388 kB of archives.
#5 5.693 After this operation, 1165 kB of additional disk space will be used.
#5 5.693 Get:1 http://deb.debian.org/debian bookworm/main amd64 libonig5 amd64 6.9.8-1 [188 kB]
#5 5.994 Get:2 http://deb.debian.org/debian bookworm/main amd64 libjq1 amd64 1.6-2.1 [135 kB]
#5 6.021 Get:3 http://deb.debian.org/debian bookworm/main amd64 jq amd64 1.6-2.1 [64.9 kB]
#5 6.230 debconf: delaying package configuration, since apt-utils is not installed
#5 6.256 Fetched 388 kB in 1s (540 kB/s)
#5 6.309 Selecting previously unselected package libonig5:amd64.
(Reading database ... 6090 files and directories currently installed.)
#5 6.315 Preparing to unpack .../libonig5_6.9.8-1_amd64.deb ...
#5 6.342 Unpacking libonig5:amd64 (6.9.8-1) ...
#5 6.499 Selecting previously unselected package libjq1:amd64.
#5 6.501 Preparing to unpack .../libjq1_1.6-2.1_amd64.deb ...
#5 6.514 Unpacking libjq1:amd64 (1.6-2.1) ...
#5 6.606 Selecting previously unselected package jq.
#5 6.609 Preparing to unpack .../archives/jq_1.6-2.1_amd64.deb ...
#5 6.623 Unpacking jq (1.6-2.1) ...
#5 6.765 Setting up libonig5:amd64 (6.9.8-1) ...
#5 6.806 Setting up libjq1:amd64 (1.6-2.1) ...
#5 6.847 Setting up jq (1.6-2.1) ...
#5 6.889 Processing triggers for libc-bin (2.36-9+deb12u7) ...
#5 6.975 + apt-get clean
#5 6.981 + rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/deb.debian.org_debian-security_dists_bookworm-security_InRelease /var/lib/apt/lists/deb.debian.org_debian-security_dists_bookworm-security_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/lock /var/lib/apt/lists/partial
#5 DONE 8.3s

#6 exporting to image
#6 exporting layers
#6 exporting layers 0.1s done
#6 writing image sha256:4e173daad957d52f30272e59eb825e3358d0dc4b9db663b62c7d79505b18a32b 0.0s done
#6 naming to docker.io/library/sentry-self-hosted-jq-local 0.0s done
#6 DONE 0.2s

Hey, so ... we would love to automatically find out about issues with your
Sentry instance so that we can improve the product. Turns out there is an app
for that, called Sentry. Would you be willing to let us automatically send data
about your instance upstream to Sentry for development and debugging purposes?

y / yes / 1
n / no / 0

(Btw, we send this to our own self-hosted Sentry instance, not to Sentry SaaS,
so that we can be in this together.)

Here's the info we may collect:

- OS username
- IP address
- install log
- runtime errors
- performance data

Thirty (30) day retention. No marketing. Privacy policy at sentry.io/privacy.

y or n? y

Thank you. To avoid this prompt in the future, use one of these flags:

--report-self-hosted-issues
--no-report-self-hosted-issues

or set the REPORT_SELF_HOSTED_ISSUES environment variable:

REPORT_SELF_HOSTED_ISSUES=1 to send data
REPORT_SELF_HOSTED_ISSUES=0 to not send data

latest: Pulling from getsentry/sentry-cli
f7dab3ab2d6e: Pulling fs layer
8bd10b77a777: Pulling fs layer
80aeafe5b1af: Pulling fs layer
e75529525eaf: Pulling fs layer
8be53abe2c79: Pulling fs layer
e75529525eaf: Waiting
8be53abe2c79: Waiting
f7dab3ab2d6e: Downloading
80aeafe5b1af: Verifying Checksum
80aeafe5b1af: Download complete
8bd10b77a777: Verifying Checksum
8bd10b77a777: Download complete
e75529525eaf: Verifying Checksum
e75529525eaf: Download complete
8be53abe2c79: Verifying Checksum
8be53abe2c79: Download complete
latest: Pulling from getsentry/sentry-cli
f7dab3ab2d6e: Pulling fs layer
8bd10b77a777: Pulling fs layer
80aeafe5b1af: Pulling fs layer
e75529525eaf: Pulling fs layer
8be53abe2c79: Pulling fs layer
e75529525eaf: Waiting
8be53abe2c79: Waiting
8bd10b77a777: Download complete
80aeafe5b1af: Verifying Checksum
80aeafe5b1af: Download complete
e75529525eaf: Verifying Checksum
e75529525eaf: Download complete
8be53abe2c79: Verifying Checksum
8be53abe2c79: Download complete
f7dab3ab2d6e: Verifying Checksum
f7dab3ab2d6e: Download complete
f7dab3ab2d6e: Pull complete
8bd10b77a777: Pull complete
80aeafe5b1af: Pull complete
e75529525eaf: Pull complete
8be53abe2c79: Pull complete
Digest: sha256:d9c7c110c97b3c0c17928c4eb94dc6d09f5d67d97f5ccb0bde796c8806b1b8bd
Status: Downloaded newer image for getsentry/sentry-cli:latest
docker.io/getsentry/sentry-cli:latest

▶ Checking for latest commit ...
skipped

▶ Checking minimum requirements ...
Found Docker version 24.0.2
Found Docker Compose version 2.17.2
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
ec562eabd705: Pulling fs layer
ec562eabd705: Verifying Checksum
ec562eabd705: Download complete
ec562eabd705: Pull complete
Digest: sha256:9ae97d36d26566ff84e8893c64a6dc4fe8ca6d1144bf5b87b2b85a32def253c7
Status: Downloaded newer image for busybox:latest

▶ Turning things off ...

▶ Creating volumes for persistent storage ...
Created sentry-clickhouse.
Created sentry-data.
Created sentry-kafka.
Created sentry-postgres.
Created sentry-redis.
Created sentry-symbolicator.
Created sentry-zookeeper.

▶ Ensuring files from examples ...
Creating sentry/sentry.conf.py ...
Creating sentry/config.yml ...
Creating symbolicator/config.yml ...

▶ Ensuring Relay credentials ...
Creating relay/config.yml ...
relay Pulling
2f44b7a888fa Pulling fs layer
2d135ea31366 Pulling fs layer
df9a125bf36c Pulling fs layer
0002dd73cf34 Pulling fs layer
4f4fb700ef54 Pulling fs layer
8f8a328b17e6 Pulling fs layer
4db52d7baa8a Pulling fs layer
2c19e15b20ad Pulling fs layer
0002dd73cf34 Waiting
8f8a328b17e6 Waiting
4f4fb700ef54 Waiting
4db52d7baa8a Waiting
2c19e15b20ad Waiting
2f44b7a888fa Pulling fs layer
2d135ea31366 Pulling fs layer
df9a125bf36c Pulling fs layer
0002dd73cf34 Pulling fs layer
0002dd73cf34 Waiting
2d135ea31366 Waiting
df9a125bf36c Waiting
2f44b7a888fa Waiting
4f4fb700ef54 Pulling fs layer
0002dd73cf34 Waiting
4f4fb700ef54 Waiting
8f8a328b17e6 Pulling fs layer
8f8a328b17e6 Waiting
4f4fb700ef54 Waiting
2f44b7a888fa Downloading [> ] 302.3kB/29.13MB
2f44b7a888fa Downloading [=> ] 597.2kB/29.13MB
2f44b7a888fa Downloading [=> ] 892.1kB/29.13MB
2f44b7a888fa Downloading [==> ] 1.187MB/29.13MB
2d135ea31366 Downloading [> ] 69.77kB/6.672MB
2f44b7a888fa Downloading [==> ] 1.482MB/29.13MB
2d135ea31366 Downloading [=> ] 209.8kB/6.672MB
2d135ea31366 Downloading [==> ] 278.5kB/6.672MB
2f44b7a888fa Downloading [===> ] 1.777MB/29.13MB
2d135ea31366 Downloading [==> ] 360.4kB/6.672MB
2f44b7a888fa Downloading [===> ] 2.072MB/29.13MB
2d135ea31366 Downloading [===> ] 442.4kB/6.672MB
2d135ea31366 Downloading [====> ] 606.2kB/6.672MB
2f44b7a888fa Downloading [====> ] 2.367MB/29.13MB
2d135ea31366 Downloading [=====> ] 770kB/6.672MB
2f44b7a888fa Downloading [====> ] 2.662MB/29.13MB
2d135ea31366 Downloading [======> ] 852kB/6.672MB
2f44b7a888fa Downloading [=====> ] 2.957MB/29.13MB
2d135ea31366 Downloading [=======> ] 1.016MB/6.672MB
2d135ea31366 Downloading [========> ] 1.098MB/6.672MB
2f44b7a888fa Downloading [=====> ] 3.251MB/29.13MB
2d135ea31366 Downloading [========> ] 1.18MB/6.672MB
2d135ea31366 Downloading [=========> ] 1.262MB/6.672MB
2f44b7a888fa Downloading [======> ] 3.546MB/29.13MB
2d135ea31366 Downloading [==========> ] 1.343MB/6.672MB
2f44b7a888fa Downloading [======> ] 3.841MB/29.13MB
2d135ea31366 Downloading [===========> ] 1.507MB/6.672MB
2d135ea31366 Downloading [===========> ] 1.589MB/6.672MB
2f44b7a888fa Downloading [=======> ] 4.136MB/29.13MB
2f44b7a888fa Downloading [=======> ] 4.431MB/29.13MB
2d135ea31366 Downloading [=============> ] 1.835MB/6.672MB
2f44b7a888fa Downloading [========> ] 4.726MB/29.13MB
2d135ea31366 Downloading [==============> ] 1.917MB/6.672MB
2d135ea31366 Downloading [===============> ] 2.081MB/6.672MB
2f44b7a888fa Downloading [========> ] 5.021MB/29.13MB
2d135ea31366 Downloading [================> ] 2.245MB/6.672MB
2d135ea31366 Downloading [=================> ] 2.327MB/6.672MB
2f44b7a888fa Downloading [=========> ] 5.316MB/29.13MB
2d135ea31366 Downloading [==================> ] 2.49MB/6.672MB
2f44b7a888fa Downloading [=========> ] 5.611MB/29.13MB
2d135ea31366 Downloading [===================> ] 2.654MB/6.672MB
2d135ea31366 Downloading [=====================> ] 2.818MB/6.672MB
2f44b7a888fa Downloading [==========> ] 5.906MB/29.13MB
2d135ea31366 Downloading [=====================> ] 2.9MB/6.672MB
2f44b7a888fa Downloading [==========> ] 6.201MB/29.13MB
2f44b7a888fa Downloading [===========> ] 6.495MB/29.13MB
2d135ea31366 Downloading [=======================> ] 3.146MB/6.672MB
2f44b7a888fa Downloading [===========> ] 6.79MB/29.13MB
2d135ea31366 Downloading [========================> ] 3.31MB/6.672MB
2d135ea31366 Downloading [==========================> ] 3.473MB/6.672MB
2f44b7a888fa Downloading [============> ] 7.085MB/29.13MB
2d135ea31366 Downloading [===========================> ] 3.637MB/6.672MB
2f44b7a888fa Downloading [============> ] 7.38MB/29.13MB
2d135ea31366 Downloading [===========================> ] 3.719MB/6.672MB
2f44b7a888fa Downloading [=============> ] 7.675MB/29.13MB
2d135ea31366 Downloading [=============================> ] 3.965MB/6.672MB
2d135ea31366 Downloading [==============================> ] 4.047MB/6.672MB
2f44b7a888fa Downloading [=============> ] 7.97MB/29.13MB
2d135ea31366 Downloading [===============================> ] 4.211MB/6.672MB
2f44b7a888fa Downloading [==============> ] 8.265MB/29.13MB
2d135ea31366 Downloading [================================> ] 4.293MB/6.672MB
2f44b7a888fa Downloading [==============> ] 8.56MB/29.13MB
2d135ea31366 Downloading [=================================> ] 4.456MB/6.672MB
2f44b7a888fa Downloading [===============> ] 8.855MB/29.13MB
2d135ea31366 Downloading [==================================> ] 4.538MB/6.672MB
2d135ea31366 Downloading [===================================> ] 4.784MB/6.672MB
2f44b7a888fa Downloading [===============> ] 9.15MB/29.13MB
2d135ea31366 Downloading [====================================> ] 4.866MB/6.672MB
2f44b7a888fa Downloading [================> ] 9.445MB/29.13MB
2d135ea31366 Downloading [=====================================> ] 4.948MB/6.672MB
2f44b7a888fa Downloading [================> ] 9.739MB/29.13MB
2d135ea31366 Downloading [======================================> ] 5.112MB/6.672MB
2d135ea31366 Downloading [======================================> ] 5.194MB/6.672MB
2f44b7a888fa Downloading [=================> ] 10.03MB/29.13MB
2d135ea31366 Downloading [=======================================> ] 5.276MB/6.672MB
2f44b7a888fa Downloading [=================> ] 10.33MB/29.13MB
2d135ea31366 Downloading [========================================> ] 5.358MB/6.672MB
2f44b7a888fa Downloading [==================> ] 10.62MB/29.13MB
2d135ea31366 Downloading [========================================> ] 5.439MB/6.672MB
2f44b7a888fa Downloading [==================> ] 10.92MB/29.13MB
2d135ea31366 Downloading [=========================================> ] 5.603MB/6.672MB
2f44b7a888fa Downloading [===================> ] 11.21MB/29.13MB
2d135ea31366 Downloading [===========================================> ] 5.849MB/6.672MB
2f44b7a888fa Downloading [===================> ] 11.51MB/29.13MB
2d135ea31366 Downloading [============================================> ] 5.931MB/6.672MB
2f44b7a888fa Downloading [====================> ] 11.8MB/29.13MB
2f44b7a888fa Downloading [====================> ] 12.1MB/29.13MB
2d135ea31366 Downloading [=============================================> ] 6.095MB/6.672MB
2f44b7a888fa Downloading [=====================> ] 12.39MB/29.13MB
2d135ea31366 Downloading [==============================================> ] 6.259MB/6.672MB
2f44b7a888fa Downloading [=====================> ] 12.69MB/29.13MB
2d135ea31366 Downloading [================================================> ] 6.504MB/6.672MB
2f44b7a888fa Downloading [======================> ] 12.98MB/29.13MB
2d135ea31366 Downloading [=================================================> ] 6.668MB/6.672MB
2d135ea31366 Verifying Checksum
2d135ea31366 Download complete
2f44b7a888fa Downloading [======================> ] 13.28MB/29.13MB
2f44b7a888fa Downloading [=======================> ] 13.57MB/29.13MB
2f44b7a888fa Downloading [=======================> ] 13.87MB/29.13MB
2f44b7a888fa Downloading [========================> ] 14.16MB/29.13MB
df9a125bf36c Downloading [==========================> ] 574B/1.072kB
df9a125bf36c Downloading [==================================================>] 1.072kB/1.072kB
df9a125bf36c Verifying Checksum
df9a125bf36c Download complete
2f44b7a888fa Downloading [========================> ] 14.46MB/29.13MB
0002dd73cf34 Downloading [==================================================>] 139B/139B
0002dd73cf34 Download complete
2f44b7a888fa Downloading [=========================> ] 14.75MB/29.13MB
2f44b7a888fa Downloading [=========================> ] 15.05MB/29.13MB
2f44b7a888fa Downloading [==========================> ] 15.34MB/29.13MB
2f44b7a888fa Downloading [==========================> ] 15.64MB/29.13MB
4db52d7baa8a Pulling fs layer
2c19e15b20ad Pulling fs layer
4db52d7baa8a Waiting
2c19e15b20ad Waiting
2f44b7a888fa Downloading [===========================> ] 15.93MB/29.13MB
2f44b7a888fa Downloading [===========================> ] 16.23MB/29.13MB
4f4fb700ef54 Downloading [==================================================>] 32B/32B
4f4fb700ef54 Verifying Checksum
4f4fb700ef54 Download complete
2f44b7a888fa Downloading [============================> ] 16.52MB/29.13MB
2f44b7a888fa Downloading [============================> ] 16.82MB/29.13MB
2f44b7a888fa Downloading [=============================> ] 17.11MB/29.13MB
2f44b7a888fa Downloading [=============================> ] 17.41MB/29.13MB
2f44b7a888fa Downloading [==============================> ] 17.7MB/29.13MB
2f44b7a888fa Downloading [==============================> ] 18MB/29.13MB
2f44b7a888fa Downloading [===============================> ] 18.29MB/29.13MB
8f8a328b17e6 Downloading [> ] 172.6kB/16.84MB
2f44b7a888fa Downloading [===============================> ] 18.59MB/29.13MB
2f44b7a888fa Downloading [================================> ] 18.88MB/29.13MB
8f8a328b17e6 Downloading [=> ] 352.3kB/16.84MB
2f44b7a888fa Downloading [================================> ] 19.18MB/29.13MB
4db52d7baa8a Downloading [> ] 531.7kB/147MB
8f8a328b17e6 Downloading [=> ] 532.5kB/16.84MB
2f44b7a888fa Downloading [=================================> ] 19.47MB/29.13MB
8f8a328b17e6 Downloading [==> ] 712.7kB/16.84MB
2f44b7a888fa Downloading [=================================> ] 19.77MB/29.13MB
4db52d7baa8a Downloading [> ] 1.072MB/147MB
2f44b7a888fa Downloading [==================================> ] 20.06MB/29.13MB
8f8a328b17e6 Downloading [==> ] 892.9kB/16.84MB
2f44b7a888fa Downloading [==================================> ] 20.36MB/29.13MB
4db52d7baa8a Downloading [> ] 1.613MB/147MB
2f44b7a888fa Downloading [===================================> ] 20.65MB/29.13MB
2f44b7a888fa Downloading [===================================> ] 20.95MB/29.13MB
8f8a328b17e6 Downloading [===> ] 1.073MB/16.84MB
2f44b7a888fa Downloading [====================================> ] 21.24MB/29.13MB
4db52d7baa8a Downloading [> ] 2.154MB/147MB
8f8a328b17e6 Downloading [===

如果卡主 手动拉取

加上代理

export http_proxy=socks5://192.168.6.1:1070
export https_proxy=socks5://192.168.6.1:1070

再 手动拉取

docker pull getsentry/symbolicator:24.1.0
docker pull getsentry/symbolicator:24.1.0
docker pull getsentry/snuba:24.1.0
docker pull getsentry/relay:24.1.0
docker pull getsentry/symbolicator:24.1.0
docker pull getsentry/vroom:24.1.0

执行完之后

docker-compose up -d

只能说小配置 确实跑不起

```txt
[+] Running 12/34
⠹ Container sentry-self-hosted-subscription-consumer-transactions-1 Stopping 10.2s
⠹ Container sentry-self-hosted-metrics-consumer-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-profiling-functions-consumer-1 Removed 8.7s
⠹ Container sentry-self-hosted-generic-metrics-consumer-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-profiling-profiles-consumer-1 Removed 9.5s
⠙ Container sentry-self-hosted-subscription-consumer-metrics-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-generic-metrics-counters-consumer-1 Removed 6.3s
⠙ Container sentry-self-hosted-ingest-replay-recordings-1 Stopping 10.2s
⠙ Container sentry-self-hosted-ingest-profiles-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-generic-metrics-distributions-consumer-1 Removed 7.2s
✔ Container sentry-self-hosted-snuba-issue-occurrence-consumer-1 Removed 9.9s
⠙ Container sentry-self-hosted-transactions-consumer-1 Stopping 10.2s
⠙ Container sentry-self-hosted-subscription-consumer-events-1 Stopping 10.2s
⠙ Container sentry-self-hosted-symbolicator-cleanup-1 Stopping 10.2s
⠙ Container sentry-self-hosted-post-process-forwarder-issue-platform-1 Stopping 10.2s
⠙ Container sentry-self-hosted-post-process-forwarder-errors-1 Stopping 10.2s
⠙ Container sentry-self-hosted-attachments-consumer-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-generic-metrics-sets-consumer-1 Removed 7.3s
⠙ Container sentry-self-hosted-billing-metrics-consumer-1 Stopping 10.2s
⠙ Container sentry-self-hosted-subscription-consumer-generic-metrics-1 Stopping 10.2s
✔ Container sentry-self-hosted-nginx-1 Removed 0.3s
⠙ Container sentry-self-hosted-ingest-monitors-1 Stopping 10.2s
⠙ Container sentry-self-hosted-events-consumer-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-replays-consumer-1 Removed 9.7s
⠙ Container sentry-self-hosted-sentry-cleanup-1 Stopping 10.2s
✔ Container sentry-self-hosted-worker-1 Removed 9.5s
✔ Container sentry-self-hosted-snuba-subscription-consumer-metrics-1 Removed 10.0s
⠙ Container sentry-self-hosted-ingest-occurrences-1 Stopping 10.2s
✔ Container sentry-self-hosted-snuba-metrics-consumer-1 Removed 6.3s
⠙ Container sentry-self-hosted-cron-1 Stopping 10.2s
⠙ Container sentry-self-hosted-post-process-forwarder-transactions-1 Stopping 10.2s
✔ Container sentry-self-hosted-geoipupdate-1 Removed 0.3s
⠙ Container sentry-self-hosted-vroom-cleanup-1 Stopping 10.2s
⠇ Container sentry-self-hosted-relay-1 Stopping

2025/12/camel kaoto 和 camel karavan

· 7 min read

Camel Kaoto vs. Camel Karavan:哪个低代码集成工具更适合你?

当开发者希望使用 Apache Camel 的强大功能进行系统集成,却又不想深陷于复杂的代码时,Kaoto 和 Karavan 这两个“低代码/无代码”工具就成了热门选择。它们都旨在通过可视化来简化 Camel 路由的设计,但两者的理念、定位和适用场景却有显著不同。

简单来说,你可以把它们看作两位风格迥异的向导:

  • Kaoto 像是集成架构师的草图板,专注于让你在通用 IDE(如 VS Code)中灵活、直观地设计和编排集成流程。
  • Karavan 则更像一个一体化集成平台,它不仅提供设计工具,还内置了针对容器化环境(Docker/Kubernetes)的快速构建和部署能力。

下面这张核心对比表可以帮你快速抓住关键区别:

特性维度Camel KaotoCamel Karavan
核心定位集成设计器,专注路由可视化设计。集成开发与部署平台,覆盖设计、构建、部署全链路。
主要形态VS Code 扩展(主流),也可作为独立 Web 应用。独立的 Web 应用,通常通过浏览器访问。
运行时环境设计完成后的路由,可部署到任何 Camel 支持的运行时(如 Spring Boot, Quarkus)。紧密集成容器化环境,设计时可无缝对接 Docker/Kubernetes/OpenShift,快速生成镜像并部署。
核心优势1. 深度 IDE 集成,设计、代码、调试体验流畅。2. 回环编辑,支持图形与源代码双向实时同步。3. 强大的表达式和配置支持1. 项目拓扑视图,直观展示项目内所有集成及其连接关系,便于理解和管理。2. 一体化的容器化部署,开发到上线路径极短。3. 优化的性能和资源管理(如使用更高效的缓存)。
学习曲线对于已熟悉 VS Code 和 Camel 概念的开发者更友好。需要理解基本的容器化概念,但提供了更“开箱即用”的集成体验。
适用场景开发阶段的集成流程设计、原型构建、与现有代码库的深度结合。面向云原生和微服务的快速集成开发,以及需要频繁在容器环境中部署和管理的场景。

如何选择:关键决策因素

面对两者,你可以根据以下三个关键问题来做决定:

  1. 你的主要目标是什么?是设计路由,还是快速部署?

    • 如果你的核心需求是在编码环境中精细地设计、验证和调试复杂的 Camel 路由,并且享受图形与代码双视角带来的灵活性和控制力,Kaoto 与 VS Code 的深度集成模式会是更优选择。
    • 如果你的目标是快速构建一个集成应用并直接推送到 Kubernetes 或 Docker 环境,希望工具能覆盖从拖拽设计到生成镜像、配置发布的完整流程,那么 Karavan 一体化的、针对容器化优化的设计会更适合你。
  2. 你将在哪里运行你的集成?

    • 如果你计划将最终的路由部署在传统的 Spring Boot 应用、独立 JAR 包或其他 Camel 支持的运行时中,Kaoto 是通用的设计器。
    • 如果你的技术栈明确基于 Docker 或 Kubernetes(包括 OpenShift),并且希望利用环境变量、ConfigMap 等云原生特性进行配置管理,Karavan 的原生支持将大幅减少你的配置工作量。
  3. 你更看重哪种协作与理解方式?

    • Kaoto 专注于单个路由或管道的设计清晰度。
    • Karavan 独有的 “项目拓扑视图” 能为你展示整个项目中所有集成、外部连接和服务之间的宏观关系图,这对于团队理解复杂项目结构和协作尤其有价值。

结论与建议

总而言之,Kaoto 和 Karavan 并非竞争关系,而是互补关系,它们分别优化了集成开发流程中不同环节的体验。

  • 为现代云原生栈构建新集成:如果你的项目是全新的,且明确采用容器化和微服务架构,想从设计到部署一路畅通,建议直接从 Camel Karavan 开始尝试。
  • 在现有Java项目中设计或重构集成:如果你更习惯于在 IDE 中工作,需要将集成逻辑深度嵌入到现有 Spring Boot 或 Quarkus 应用中,或者你非常看重图形与源代码之间的双向编辑能力,那么 Camel Kaoto 的 VS Code 扩展是你的不二之选。
  • 不妨都试试:两个工具都有在线演示或便捷的安装方式。花上半小时分别体验一下,你很快就能感受到哪一个的工作流更符合你的思维模式和项目需求。

综上感觉还是

参考

  1. https://docs.redhat.com/zh-cn/documentation/red_hat_build_of_apache_camel/4.4/html/kaoto/overview-of-kaoto
  2. https://camel.apache.org/categories/Karavan/

2025/12/debain 13 安装 cuda-toolkit

· One min read

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#network-repo-installation-for-debian

下载

wget https://developer.download.nvidia.cn/compute/cuda/repos/debian13/x86_64/cuda-keyring_1.1-1_all.deb
dpkg -i cuda-keyring_1.1-1_all.deb

更新

apt update

安装 6 个 G

apt -y install cuda-toolkit
wget https://developer.download.nvidia.com/compute/cudnn/9.17.0/local_installers/cudnn-local-repo-debian12-9.17.0_1.0-1_amd64.deb
sudo dpkg -i cudnn-local-repo-debian12-9.17.0_1.0-1_amd64.deb
sudo cp /var/cudnn-local-repo-debian12-9.17.0/cudnn-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cudnn9-cuda-12

Apache Camel Karavan 完整安装与体验指南

· 13 min read

Karavan 是 Apache Camel 生态中一款强大的低代码集成开发平台,它为云原生时代的系统集成提供了从设计到部署的一体化解决方案。本文将详细介绍 Karavan 的安装配置、功能特性以及实际使用体验。

🚀 什么是 Apache Camel Karavan?

Karavan 是基于 Apache Camel 的可视化集成开发环境,专门为现代云原生架构设计。它不仅仅是一个设计工具,更是一个完整的集成开发与部署平台,让开发者能够通过图形化界面快速构建、测试和部署 Camel 集成应用。

核心特点

  • 可视化设计:通过拖拽方式设计和编排 Camel 路由
  • 一体化平台:集成设计、构建、部署全流程
  • 云原生优化:深度支持 Docker、Kubernetes 和 OpenShift
  • 项目拓扑视图:直观展示项目内所有集成及其连接关系
  • 实时预览:支持实时的路由设计和调试

📦 安装指南

方式一:在线体验(推荐新手)

最快的方式是通过在线演示来体验 Karavan 的功能:

# 访问官方在线演示
# https://camel.apache.org/karavan/

优势

  • 无需安装,直接使用
  • 功能完整,支持保存和分享
  • 可以随时体验最新版本

方式二:Docker 容器部署

1. 环境准备

# 确保已安装 Docker 和 Docker Compose
docker --version
docker-compose --version

2. 拉取镜像

# 从 Docker Hub 拉取 Karavan 镜像
docker pull apache/camel-karavan:latest

3. 运行容器

# 运行 Karavan 容器
docker run -d -p 8080:8080 --name karavan apache/camel-karavan:latest

4. 访问应用

# 打开浏览器访问
http://localhost:8080

方式三:源码编译安装

1. 克隆源码

git clone https://github.com/apache/camel-karavan.git
cd camel-karavan

2. 安装依赖

# 使用 Maven 编译
mvn clean install

3. 运行应用

# 运行开发服务器
mvn spring-boot:run

4. 访问应用

# 开发环境通常运行在
http://localhost:8080

🎯 功能特性详解

1. 集成路由设计器

Karavan 提供了直观的可视化界面,让开发者能够通过拖拽组件来构建复杂的 Camel 路由:

# 示例:简单的文件处理路由
from("file:data/input")
.process(new MyProcessor())
.to("file:data/output");

设计器特性

  • 组件库:丰富的 Camel 组件和 EIP 模式
  • 实时验证:语法检查和错误提示
  • 代码同步:图形化设计与 YAML 代码双向同步
  • 历史记录:支持撤销和重做操作

2. 项目拓扑视图

Karavan 独有的拓扑视图功能,让整个项目的集成结构一目了然:

┌─────────────────┐    ┌─────────────────┐
│ Integration A │───▶│ Integration B │
└─────────────────┘ └─────────────────┘
│ │
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ Service X │ │ Service Y │
└─────────────────┘ └─────────────────┘

拓扑视图优势

  • 全局视角:直观展示项目内的所有集成和连接关系
  • 依赖分析:快速识别组件间的依赖关系
  • 故障排查:便于定位问题点和性能瓶颈
  • 团队协作:提升团队对项目结构的理解

3. 集成环境配置

Karavan 支持多种运行时环境的配置:

# Kubernetes 配置示例
apiVersion: v1
kind: ConfigMap
metadata:
name: karavan-config
data:
application.properties: |
camel.main.name=my-camel-app
camel.springboot.main-run-controller=true

配置特性

  • 环境变量:支持容器化环境变量配置
  • ConfigMap:Kubernetes 配置映射支持
  • Secrets:敏感信息的安全管理
  • 多环境切换:开发、测试、生产环境配置分离

4. 构建与部署

Karavan 提供了完整的 CI/CD 流水线支持:

# 自动构建 Docker 镜像
mvn package docker:build

# 部署到 Kubernetes
kubectl apply -f target/camel-app.yaml

部署特性

  • 一键部署:从设计直接部署到目标环境
  • 版本管理:集成 Git 进行版本控制
  • 自动构建:支持构建流水线自动化
  • 健康检查:内置应用健康监控

💡 实际使用体验

1. 快速上手体验

创建第一个集成

  1. 新建项目

    - 点击 "Create New Project"
    - 输入项目名称 "my-first-integration"
    - 选择技术栈(Spring Boot 或 Quarkus)
  2. 设计路由

    - 从组件库拖拽 "File" 组件
    - 添加 "Processor" 处理节点
    - 连接 "Log" 输出组件
  3. 配置参数

    - 设置文件输入路径:file:input
    - 配置输出路径:file:output
    - 添加处理逻辑处理器
  4. 测试运行

    - 点击 "Test" 按钮预览
    - 实时查看日志输出
    - 验证路由正确性

2. 高级功能体验

复杂路由设计

# 多步骤数据处理路由
from("timer:tick?period=5000")
.process(new DataEnricher())
.to("log:info")
.choice()
.when(simple("${body.type} == 'A'"))
.to("direct:processA")
.when(simple("${body.type} == 'B'"))
.to("direct:processB")
.otherwise()
.to("direct:default");

性能优化技巧

  • 使用连接池配置优化性能
  • 合理设置线程池大小
  • 启用缓存机制提升响应速度
  • 监控和调整内存使用

3. 团队协作体验

项目共享

1. 点击 "Share Project"
2. 生成分享链接或导出配置
3. 团队成员通过链接访问

版本控制

1. 集成 Git 仓库
2. 自动提交设计变更
3. 支持分支管理和合并

🌟 核心优势分析

1. 开发效率提升

相比传统开发方式

  • 可视化设计:减少 80% 的路由编写时间
  • 实时调试:即时代码修改和效果验证
  • 模板复用:内置丰富的集成模板
  • 错误预防:设计阶段的实时错误检查

2. 云原生原生支持

容器化部署优势

  • 无缝集成:与 Docker/Kubernetes 深度集成
  • 配置管理:支持 ConfigMap 和 Secrets
  • 弹性伸缩:基于 K8s 的自动扩缩容
  • 持续交付:完整的 DevOps 流程支持

3. 团队协作优化

协作体验提升

  • 统一平台:设计、开发、部署一体化
  • 可视化沟通:拓扑视图便于团队理解
  • 知识沉淀:项目文档和配置自动生成
  • 质量保证:集成测试和性能监控

🎯 适用场景分析

1. 推荐使用场景

微服务集成

  • API 网关和后端服务集成
  • 微服务间的数据同步
  • 事件驱动架构实现

数据流处理

  • ETL 数据管道构建
  • 实时数据流处理
  • 批处理作业编排

系统集成

  • 企业应用集成 (EAI)
  • SaaS 集成连接
  • 遗留系统现代化

2. 特别适合的用户

开发者类型

  • 前端开发者想要理解后端集成逻辑
  • 业务分析师参与集成流程设计
  • DevOps 工程师管理集成部署

组织规模

  • 中小企业快速构建集成能力
  • 大型企业提升开发效率
  • 创业公司快速实现产品原型

3. 学习曲线

入门难度

- 基础使用:1-2 小时
- 熟练操作:1-2 周
- 深度应用:1-2 个月

前置知识要求

  • 了解 Apache Camel 基础概念
  • 具备基本的容器化知识
  • 熟悉系统集成的基本概念

🔍 与其他工具对比

vs Apache Camel Kaoto

特性维度Camel KaravanCamel Kaoto
核心定位集成开发与部署平台集成设计器
运行环境深度支持容器化通用运行时支持
部署能力一体化容器化部署需手动部署
拓扑视图项目拓扑可视化单路由设计
学习曲线需要容器化知识IDE 环境熟悉即可

vs 自定义编码开发

方面Karavan自定义编码
开发效率⭐⭐⭐⭐⭐⭐⭐⭐
代码质量⭐⭐⭐⭐⭐⭐⭐⭐⭐
维护成本⭐⭐⭐⭐⭐
部署速度⭐⭐⭐⭐⭐⭐⭐⭐
灵活性⭐⭐⭐⭐⭐⭐⭐⭐⭐

📈 总结与建议

Karavan 的核心价值

开发效率提升

  • 可视化设计大幅缩短开发时间
  • 一体化平台减少配置复杂度
  • 自动化部署提升交付速度

技术优势

  • 云原生架构的深度支持
  • 完整的 DevOps 流水线
  • 丰富的集成组件库

业务价值

  • 加速数字化转型的实施
  • 降低系统集成门槛
  • 提升团队协作效率

使用建议

适合选择 Karavan 的场景

  1. 新建云原生项目:容器化部署的集成开发
  2. 团队协作项目:需要可视化协作的集成设计
  3. 快速原型验证:从设计到部署的快速验证
  4. 标准化集成:需要统一标准的集成流程

不建议过度使用的场景

  1. 简单集成场景:简单的系统集成可能过于复杂化
  2. 性能敏感应用:需要极致优化的复杂路由
  3. 深度定制需求:需要高度定制化的特殊功能

未来发展展望

功能演进趋势

  • AI 辅助设计和优化
  • 更好的多云支持
  • 增强的安全性和合规性
  • 更丰富的集成模板

生态系统发展

  • 第三方工具集成
  • 更多运行时支持
  • 社区驱动的功能扩展
  • 企业级特性增强

📚 参考资源

官方文档

学习资源

部署指南


Apache Camel Karavan 让集成开发变得简单、高效、有趣! 🚀

无论是个人开发者还是团队组织,Karavan 都能为您提供强大的集成开发能力,帮助您快速构建现代化的云原生集成应用。立即开始您的低代码集成之旅吧!