traPtitech / Jomon

Account Support System for traP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M1対応

mazrean opened this issue · comments

dockerizeがamd64のものをとってきているので、M1では動かない。
go install https://github.com/jwilder/dockerize@v0.6.1で各環境にあったビルドをさせるよう書き換えるか、
手元ででDockerfile書き換えてもらうかが必要。

↑の理由は嘘で、Goのバージョンが古いからqumeでamd64のベースイメージが動いているはずだけど、qumeのバグ踏み抜いて死んでいるっぽさがある.
エラー

2021/05/15 15:41:58 Waiting for: tcp://db:3306
2021/05/15 15:41:58 Connected to tcp://db:3306
fatal: morestack on g0
SIGTRAP: trace trap
PC=0x80a1b22 m=1 sigcode=128

goroutine 0 [idle]:
runtime.abort()
	/opt/hostedtoolcache/go/1.14.7/x64/src/runtime/asm_386.s:865 +0x2
runtime.morestack()
	/opt/hostedtoolcache/go/1.14.7/x64/src/runtime/asm_386.s:441 +0x24

goroutine 1 [running, locked to thread]:
	goroutine running on other thread; stack unavailable

eax    0x17
ebx    0x2
ecx    0x82fe14c
edx    0x17
edi    0x836bfb4
esi    0x88002a0
ebp    0x83b78fc
esp    0x882475c
eip    0x80a1b22
eflags 0x206
cs     0x23
fs     0x0
gs     0x33
qemu: uncaught target signal 11 (Segmentation fault) - core dumped

多分Goのバージョンあげると動く。dockerizeはGoのバージョンを1.16にするならインストール方法変えた方がよさそう。

M1持ってない

dockerizeやめます
#775