Skip to content

Commit

Permalink
armでもdocker hubを使えるようにする (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Srgr0 authored Sep 20, 2023
1 parent 999a662 commit 692a604
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,29 +110,22 @@ esac
#endregion

if [ $method == "docker" ]; then
if [ $arch == "amd64" ]; then
echo "Do you use image from Docker Hub?:";
echo "Y = To use Docker Hub image / N = To build Docker image in this machine"
read -r -p "[Y/n] > " yn
case "$yn" in
[Nn]|[Nn][Oo])
echo "Build docker image (local/misskey:latest).";
method=docker;
docker_repository="local/misskey:latest"
;;
*)
echo "Use Docker Hub image.";
method=docker_hub;
echo "Enter repository:tag of Docker Hub image:"
read -r -p "> " -e -i "misskey/misskey:latest" docker_repository;
;;
esac
else
echo "We should build docker manually because this is arm64 machine.";
method=docker;
docker_repository="local/misskey:latest"
fi

echo "Do you use image from Docker Hub?:";
echo "Y = To use Docker Hub image / N = To build Docker image in this machine"
read -r -p "[Y/n] > " yn
case "$yn" in
[Nn]|[Nn][Oo])
echo "Build docker image (local/misskey:latest).";
method=docker;
docker_repository="local/misskey:latest"
;;
*)
echo "Use Docker Hub image.";
method=docker_hub;
echo "Enter repository:tag of Docker Hub image:"
read -r -p "> " -e -i "misskey/misskey:latest" docker_repository;
;;
esac
fi

tput setaf 3;
Expand Down

0 comments on commit 692a604

Please sign in to comment.