Docker 部署失败
ReiSuzunami opened this issue · comments
=> ERROR [serverstatus builder 5/6] RUN make -j 329.4s
------
> [serverstatus builder 5/6] RUN make -j:
#0 0.700 gcc -c -Iinclude -Wall -O2 src/system.c -o obj/system.o
#0 0.701 gcc -c -Iinclude -Wall -O2 src/json.c -o obj/json.o
#0 0.702 gcc -c -Iinclude -Wall -O2 src/argparse.c -o obj/argparse.o
#0 0.704 g++ -c -Iinclude -Wall -O2 -std=c++11 src/network.cpp -o obj/network.o
#0 0.711 g++ -c -Iinclude -Wall -O2 -std=c++11 src/server.cpp -o obj/server.o
#0 0.719 g++ -c -Iinclude -Wall -O2 -std=c++11 src/network_client.cpp -o obj/network_client.o
#0 0.724 g++ -c -Iinclude -Wall -O2 -std=c++11 src/netban.cpp -o obj/netban.o
#0 0.727 g++ -c -Iinclude -Wall -O2 -std=c++11 src/main.cpp -o obj/main.o
#0 0.806 src/json.c: In function 'new_value':
#0 0.819 src/json.c:140:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#0 0.819 value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
#0 0.819 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 0.820 src/json.c: In function 'json_parse_ex':
#0 0.823 src/json.c:364:27: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#0 0.823 (*(json_char **) &top->u.object.values) += string_length + 1;
#0 0.823 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 329.2 g++: fatal error: Killed signal terminated program cc1plus
#0 329.2 compilation terminated.
#0 329.2 make: *** [Makefile:26: obj/main.o] Error 1
------
failed to solve: process "/bin/sh -c make -j" did not complete successfully: exit code: 2
make 一直卡在这里然后失败了
make 一直卡在这里然后失败了
警告非错误,请在大鸡上编译或者超售不那么严重的小鸡上编译。加入触发式告警之后,因为要断言所有可能出现字段的表达式,编译较慢。
也可以直接docker pull cppla/serverstatus:latest 目前支持x86 和 arm