MistEO / Pallas-Bot

《明日方舟》帕拉斯 Bot
GNU Affero General Public License v3.0
410 stars 69 forks source link

期望能够编译ARM64架构的镜像 #93

Open vantis-zh opened 1 year ago

vantis-zh commented 1 year ago

通过docker-compose方式进行搭建时候发现没有该架构镜像。 本地编译报错,因为部分依赖的包没有这个架构的编译包。

vantis-zh commented 1 year ago

看起来只是 fastapi 没有对应arm64的版本 我切换了个 bmltenabled/uvicorn-gunicorn-fastapi:python3.9-slim 还在本地编译中

Tunglies commented 1 year ago

看起来只是 fastapi 没有对应arm64的版本 我切换了个 bmltenabled/uvicorn-gunicorn-fastapi:python3.9-slim 还在本地编译中

解决了吗?

vantis-zh commented 1 year ago

看起来只是 fastapi 没有对应arm64的版本 我切换了个 bmltenabled/uvicorn-gunicorn-fastapi:python3.9-slim 还在本地编译中

解决了吗?

没有 本地启动报 [INFO wait] Host [mongodb:27017] not yet available...

网络配置我切过好几次了orz

version: "3"

services:
  pallasbot:
    container_name: pallasbot
    image: vantis/pallas-bot
    restart: always
    ports:
      - "5140:8080"
    env_file:
      - ".env.prod"
    links:
      - "mongodb:mongodb"
      - "qsign:qsign"
    networks:
      - pallas_default
    environment:
      TZ: Asia/Shanghai
      ENVIRONMENT: prod
      APP_MODULE: bot:app
      MAX_WORKERS: 1
      WAIT_HOSTS: mongodb:27017
    volumes:
      - /home/ubuntu/pallas/resource/:/app/resource
      - /home/ubuntu/pallas/accounts/:/app/accounts
      - /home/ubuntu/pallas/.env.prod:/app/.env.prod
    depends_on:
      - mongodb

  mongodb:
    container_name: mongodb
    image: mongo:4.4.19-focal
    restart: always
    networks:
      - pallas_default
    environment:
      TZ: Asia/Shanghai
      wiredTigerCacheSizeGB: 1.5
    volumes:
      - /home/ubuntu/pallas/mongo/data:/data/db
      - /home/ubuntu/pallas/mongo/logs:/var/log/mongodb

  qsign:
    container_name: qsign
    image: xzhouqd/qsign:core-1.1.9
    networks:
      - pallas_default
    environment:
      - PORT=8080
      - COUNT=3
      - ANDROID_ID=114514
    restart: always

networks:
  pallas_default:
    driver: bridge

这是我挣扎之后目前在调试的配置

vantis-zh commented 1 year ago

另外我发现这个docker-compose建立的网络好像是 192.168.* 的网段 这里有什么自定义操作吗?默认应该是172网段

Tunglies commented 1 year ago

另外我发现这个docker-compose建立的网络好像是 192.168.* 的网段 这里有什么自定义操作吗?默认应该是172网段 networks: pallas_default: driver: bridge 网络桥接宿主机了。

vantis-zh commented 1 year ago

我本地网络是10.0网段的 ip a:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000
    link/ether 02:00:17:02:56:e0 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.240/24 metric 100 brd 10.0.0.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::17ff:fe02:56e0/64 scope link
       valid_lft forever preferred_lft forever
3: br-f7e96d98bbe5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:a3:c3:10:36 brd ff:ff:ff:ff:ff:ff
    inet 172.20.0.1/16 brd 172.20.255.255 scope global br-f7e96d98bbe5
       valid_lft forever preferred_lft forever
    inet6 fe80::42:a3ff:fec3:1036/64 scope link
       valid_lft forever preferred_lft forever
5: br-6135042a459b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:09:9d:a4:0f brd ff:ff:ff:ff:ff:ff
    inet 172.19.0.1/16 brd 172.19.255.255 scope global br-6135042a459b
       valid_lft forever preferred_lft forever
    inet6 fe80::42:9ff:fe9d:a40f/64 scope link
       valid_lft forever preferred_lft forever
6: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:9e:d2:1a:65 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:9eff:fed2:1a65/64 scope link
       valid_lft forever preferred_lft forever
8716: veth4870c3f@if8715: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
    link/ether c6:51:69:b7:89:cf brd ff:ff:ff:ff:ff:ff link-netnsid 10
    inet6 fe80::c451:69ff:feb7:89cf/64 scope link
       valid_lft forever preferred_lft forever
48: br-dcf44b30a4be: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:b3:04:d7:17 brd ff:ff:ff:ff:ff:ff
    inet 172.18.0.1/16 brd 172.18.255.255 scope global br-dcf44b30a4be
       valid_lft forever preferred_lft forever
    inet6 fe80::42:b3ff:fe04:d717/64 scope link
       valid_lft forever preferred_lft forever
88: veth500663f@if87: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-f7e96d98bbe5 state UP group default
    link/ether 76:50:e1:2d:1e:99 brd ff:ff:ff:ff:ff:ff link-netnsid 6
    inet6 fe80::7450:e1ff:fe2d:1e99/64 scope link
       valid_lft forever preferred_lft forever
92: veth8e2cbc7@if91: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-6135042a459b state UP group default
    link/ether 16:1f:dc:10:63:6c brd ff:ff:ff:ff:ff:ff link-netnsid 4
    inet6 fe80::141f:dcff:fe10:636c/64 scope link
       valid_lft forever preferred_lft forever
94: veth2c3b66b@if93: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
    link/ether ea:87:6f:ad:87:27 brd ff:ff:ff:ff:ff:ff link-netnsid 1
    inet6 fe80::e887:6fff:fead:8727/64 scope link
       valid_lft forever preferred_lft forever
96: veth1ec9de4@if95: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-f7e96d98bbe5 state UP group default
    link/ether 56:71:ba:45:29:50 brd ff:ff:ff:ff:ff:ff link-netnsid 5
    inet6 fe80::5471:baff:fe45:2950/64 scope link
       valid_lft forever preferred_lft forever
100: veth347e9b8@if99: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-f7e96d98bbe5 state UP group default
    link/ether c6:68:e3:16:f6:da brd ff:ff:ff:ff:ff:ff link-netnsid 3
    inet6 fe80::c468:e3ff:fe16:f6da/64 scope link
       valid_lft forever preferred_lft forever
19317: br-92fbc50824d8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:2b:fd:e3:21 brd ff:ff:ff:ff:ff:ff
    inet 192.168.144.1/20 brd 192.168.159.255 scope global br-92fbc50824d8
       valid_lft forever preferred_lft forever
    inet6 fe80::42:2bff:fefd:e321/64 scope link
       valid_lft forever preferred_lft forever
19325: vethcaa82ed@if19324: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-92fbc50824d8 state UP group default
    link/ether e6:8b:a9:5a:d4:0f brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::e48b:a9ff:fe5a:d40f/64 scope link
       valid_lft forever preferred_lft forever
19327: vethdb95a1e@if19326: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-92fbc50824d8 state UP group default
    link/ether ea:3b:e5:e7:bf:55 brd ff:ff:ff:ff:ff:ff link-netnsid 2
    inet6 fe80::e83b:e5ff:fee7:bf55/64 scope link
       valid_lft forever preferred_lft forever
152: veth8e46971@if151: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-dcf44b30a4be state UP group default
    link/ether 4e:77:57:e5:df:fc brd ff:ff:ff:ff:ff:ff link-netnsid 7
    inet6 fe80::4c77:57ff:fee5:dffc/64 scope link
       valid_lft forever preferred_lft forever
23199: veth296d6ec@if23198: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-92fbc50824d8 state UP group default
    link/ether f6:8a:10:aa:f8:23 brd ff:ff:ff:ff:ff:ff link-netnsid 8
    inet6 fe80::f48a:10ff:feaa:f823/64 scope link
       valid_lft forever preferred_lft forever