1. スクリプトをダウンロード、解凍
その後,解凍したフォルダ内に移動しておく
2. docker-deploy-hdp30.sh を編集
AS-IS
docker run --privileged --name $name -h $hostname --network=cda --network-alias=$hostname -d "$registry/$name:$version"
TO-BE
docker run --platform linux/amd64 --privileged --name $name -h $hostname --network=cda --network-alias=$hostname -d "$registry/$name:$version"
(--platform linux/amd64 を追加)
3. assets/generate-proxy-deploy-script.sh を編集
AS-IS
docker rm -f sandbox-proxy 2>/dev/null
docker run --name sandbox-proxy --network=cda \\
-v $absPath/assets/nginx.conf:/etc/nginx/nginx.conf \\
-v $absPath/sandbox/proxy/conf.d:/etc/nginx/conf.d \\
-v $absPath/sandbox/proxy/conf.stream.d:/etc/nginx/conf.stream.d \\
EOF
TO-BE
docker rm -f sandbox-proxy 2>/dev/null
docker run --name sandbox-proxy --network=cda \\
--platform linux/amd64 \\
-v $absPath/assets/nginx.conf:/etc/nginx/nginx.conf \\
-v $absPath/sandbox/proxy/conf.d:/etc/nginx/conf.d \\
-v $absPath/sandbox/proxy/conf.stream.d:/etc/nginx/conf.stream.d \\
EOF
(--platform linux/amd64 を追加)
4. 実行
(解凍したフォルダ内に移動したのち)
$bash docker-deploy-hdp30.sh