Suporte Arm
Eu tentei subir a imagem davidsongomes/evolution-api em uma instancia arm ampere altra da oracle que eu tenho, e estava dando erro logicamente pq a imagem foi feita apenas para amd.
fiz alguns testes aqui e apenas adicionanco ao Dockerfile e fazendo build com buildx consegui subir a imagem link
RUN apk update && apk upgrade && \
apk add --no-cache git tzdata ffmpeg wget curl chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
Vocês tem interesse nisso pra fazer uma pr?
links de referencia:
- https://www.docker.com/blog/multi-arch-images/
- https://docs.docker.com/build/ci/github-actions/multi-platform/
A versão 1.5.0 funcionava em ARM. Acredito que a intenção é que a versão 1.5.1 funcione também. Entretanto, essa versão veio cheia de bugs. Acredito que logo logo o dev esteja postando um fix. Recomendo no momento você voltar pra 1.5.0
entendi, conheci agora essa api, não cheguei a testar a versão anterior e olhando no docker hub não tinha lá build pra arm nem reparei se nas outras tag tinham
O problema do puppeteer, foi um teste que fizemos que acabou indo para a release, na 1.5.2 isso foi corrigido
Eu estou tentando instalar o Evolution via Portainer, entretanto não está funcionando, estou usando um ARM oracle que nem o colega que iniciou o post. No LOG aparece: exec /usr/local/bin/docker-entrypoint.sh: exec format error
version: '3.8'
services:
evolution_api:
image: davidsongomes/evolution-api:latest
volumes:
- evolution_instances:/evolution/instances
- evolution_store:/evolution/store
environment:
CONFIG_SESSION_PHONE_CLIENT: Usuario
# Browser Name = Chrome | Firefox | Edge | Opera | Safari
CONFIG_SESSION_PHONE_NAME: Chrome
AUTHENTICATION_TYPE: apikey
AUTHENTICATION_API_KEY: iK4DUXRgPOYLoWoNdr6vSt3
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: true
## Set the secret key to encrypt and decrypt your token and its expiration time
# seconds - 3600s ===1h | zero (0) - never expires
AUTHENTICATION_JWT_EXPIRIN_IN: 0
AUTHENTICATION_JWT_SECRET: 'L=0YWt]b2w[WF>#>:&E`'
# Temporary data storage
STORE_MESSAGES: true
STORE_MESSAGE_UP: true
STORE_CONTACTS: true
STORE_CHATS: true
# Set Store Interval in Seconds (7200 = 2h)
CLEAN_STORE_CLEANING_INTERVAL: 7200
CLEAN_STORE_MESSAGES: true
CLEAN_STORE_MESSAGE_UP: true
CLEAN_STORE_CONTACTS: true
CLEAN_STORE_CHATS: true
## Define a global webhook that will listen for enabled events from all instances
WEBHOOK_GLOBAL_URL: ''
WEBHOOK_GLOBAL_ENABLED: false
# With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: false
## Set the events you want to hear
WEBHOOK_EVENTS_APPLICATION_STARTUP: false
WEBHOOK_EVENTS_QRCODE_UPDATED: true
WEBHOOK_EVENTS_MESSAGES_SET: true
WEBHOOK_EVENTS_MESSAGES_UPSERT: true
WEBHOOK_EVENTS_MESSAGES_UPDATE: true
WEBHOOK_EVENTS_MESSAGES_DELETE: true
WEBHOOK_EVENTS_SEND_MESSAGE: true
WEBHOOK_EVENTS_CONTACTS_SET: true
WEBHOOK_EVENTS_CONTACTS_UPSERT: true
WEBHOOK_EVENTS_CONTACTS_UPDATE: true
WEBHOOK_EVENTS_PRESENCE_UPDATE: true
WEBHOOK_EVENTS_CHATS_SET: true
WEBHOOK_EVENTS_CHATS_UPSERT: true
WEBHOOK_EVENTS_CHATS_UPDATE: true
WEBHOOK_EVENTS_CHATS_DELETE: true
WEBHOOK_EVENTS_GROUPS_UPSERT: true
WEBHOOK_EVENTS_GROUPS_UPDATE: true
WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: true
WEBHOOK_EVENTS_CONNECTION_UPDATE: true
WEBHOOK_EVENTS_CALL: true
# This event fires every time a new token is requested via the refresh route
WEBHOOK_EVENTS_NEW_JWT_TOKEN: false
# This events is used with Typebot
WEBHOOK_EVENTS_TYPEBOT_START: false
WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: false
# This event is used with Chama AI
WEBHOOK_EVENTS_CHAMA_AI_ACTION: false
# This event is used to send errors
WEBHOOK_EVENTS_ERRORS: false
WEBHOOK_EVENTS_ERRORS_WEBHOOK:
# Set qrcode display limit
QRCODE_LIMIT: 30
QRCODE_COLOR: #198754
labels:
- "traefik.enable=true"
#SSL
#Troque pelo seu dominio
- "traefik.http.routers.evolution_api.rule=Host(`evolutionapi.dominio.com.br`)"
- "traefik.http.services.evolution_api.loadbalancer.server.port=8080"
- "traefik.http.routers.evolution_api.service=evolution_api"
- "traefik.http.routers.evolution_api.entrypoints=websecure"
- "traefik.http.routers.evolution_api.tls.certresolver=leresolver"
networks:
- evolutionapi
networks:
evolutionapi:
external: true
volumes:
evolution_instances:
evolution_store:
@MarecoX Repositorio do davidsongomes no hub.docker.com não tem suporte/imagem para ARM, apenas para linux/amd64. Para ARM tem que gerar uma imagem local.
Observar tópico #117 .