# 新版本nydusd集成dragonfly和https镜像中心测试
## 需要更新的内容
- nydusd(带调试信息)
```shell=
git clone https://github.com/sctb512/image-service.git
cd image-service
git checkout mirror-dev-fix
make
make install
```
- nydus-snapshotter
```shell=
git clone https://github.com/containerd/nydus-snapshotter.git
cd nydus-snapshotter
make
make install
```
- 配置文件
> /etc/nydus/config.json
```json!
{
"device": {
"backend": {
"type": "registry",
"config": {
"host": "index.docker.io",
"mirrors": [
{
"host": "http://127.0.0.1:65001",
"headers": {
"X-Dragonfly-Registry": "https://index.docker.io"
}
}
],
"scheme": "https",
"timeout": 5,
"connect_timeout": 5,
"retry_limit": 2
}
},
"cache": {
"type": "blobcache",
"config": {
"work_dir": "cache"
}
}
},
"mode": "direct",
"digest_validate": false,
"iostats_files": false,
"enable_xattr": true,
"fs_prefetch": {
"enable": true,
"threads_count": 4
}
}
```
## 运行nydusd
- 直接运行(如果为了方便查看日志,可以直接运行输出到stdout)
```shell=
sudo /usr/local/bin/containerd-nydus-grpc \
--config-path /etc/nydus/config.json \
--shared-daemon \
--log-level debug \
--root /var/lib/containerd/io.containerd.snapshotter.v1.nydus \
--cache-dir /var/lib/nydus/cache \
--address /run/containerd-nydus/containerd-nydus-grpc.sock \
--nydusd-path /usr/local/bin/nydusd \
--nydusimg-path /usr/local/bin/nydus-image \
--log-to-stdout
```
- systemctl 运行
```shell=
sudo systemctl restart nydus-snapshotter && sudo systemctl status nydus-snapshotter
sudo journalctl -f -u nydus-snapshotter.service
```
## 问题
- 请求dragonfly仍然为秒级

- 是否仍然存在多次Authorization的问题?