remove qemu arm64 docker

This commit is contained in:
Junya Morioka
2025-12-21 11:15:26 +09:00
parent 232329fd63
commit 6502b392f9
2 changed files with 36 additions and 33 deletions
+21 -21
View File
@@ -19,27 +19,27 @@ services:
volumes: volumes:
- fa-self:/var/lib/docker - fa-self:/var/lib/docker
runner-arm: # runner-arm:
platform: linux/arm64 # platform: linux/arm64
privileged: true # privileged: true
restart: always # restart: always
env_file: # env_file:
- .env.arm # - .env.arm
environment: # environment:
REPOSITORY_URL: https://github.com/mjun0812/flash-attention-prebuild-wheels # REPOSITORY_URL: https://github.com/mjun0812/flash-attention-prebuild-wheels
RUNNER_NAME: self-hosted-runner-arm # RUNNER_NAME: self-hosted-runner-arm
RUNNER_GROUP: default # RUNNER_GROUP: default
TARGET_ARCH: arm64 # TARGET_ARCH: arm64
build: # build:
context: . # context: .
dockerfile: Dockerfile # dockerfile: Dockerfile
args: # args:
GH_RUNNER_VERSION: 2.329.0 # GH_RUNNER_VERSION: 2.329.0
TARGET_ARCH: arm64 # TARGET_ARCH: arm64
PLATFORM: linux/arm64 # PLATFORM: linux/arm64
volumes: # volumes:
- fa-self-arm:/var/lib/docker # - fa-self-arm:/var/lib/docker
volumes: volumes:
fa-self: fa-self:
fa-self-arm: # fa-self-arm:
+15 -12
View File
@@ -1,17 +1,20 @@
#!/bin/bash #!/bin/bash
ARCH=$(uname -m) # ARCH=$(uname -m)
#
if [ "$ARCH" = "aarch64" ]; then # if [ "$ARCH" = "aarch64" ]; then
echo "Architecture is aarch64 (ARM64). Applying QEMU workarounds..." # echo "Architecture is aarch64 (ARM64). Applying QEMU workarounds..."
mkdir -p /etc/docker # mkdir -p /etc/docker
cat <<EOF > /etc/docker/daemon.json # cat <<EOF > /etc/docker/daemon.json
{ # {
"iptables": false, # "iptables": false,
"ip6tables": false # "ip6tables": false,
} # "storage-driver": "vfs",
EOF # "exec-opts": ["native.cgroupdriver=cgroupfs"],
fi # "default-cgroupns-mode": "host"
# }
# EOF
# fi
# Start docker daemon # Start docker daemon
service docker start service docker start