Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
Cree una imagen docker JDK/Tomcat multiplataforma para poder ejecutarse en Apple Silicon

Construimos imágenes acoplables con servicios tomcat dentro de nuestro CI de la siguiente manera:

 - PLATFORMS: linux/amd64,linux/arm64/v8 - gradle build … # Switch to use different docker driver which supports multiplatform builds - docker buildx create --use - docker buildx build --push --platform=$PLATFORMS -t $image -f infra/Dockerfile .

Esto funciona y empuja la imagen que se puede ejecutar fácilmente en plataformas linux/amd64.

Sin embargo, al ejecutar esta imagen en Apple Silicon, falla con:

 org.apache.catalina.startup.ContextConfig Failed to detect ServletContainerInitializers for context with name [] service java.net.MalformedURLException: no !/ found in url spec:file:/usr/local/tomcat/lib/tomcat-websocket.jar!/META-INF/services/javax.servlet.ServletContainerInitializer

Rastreo completo de la pila aquí:https://gist.github.com/knyttl/c8f2c24ac3d94a91911ca08f08eff668

Lo que me sorprende un poco es:

 org.apache.catalina.startup.VersionLoggerListener Architecture: amd64

Supongo que la arquitectura debería ser linux/arm64/v8 , entonces, ¿por qué ejecuta la incorrecta?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Al final, abandoné la forma de CI de construir imágenes M1.

En su lugar, he escrito un script bash (que se ejecutará localmente en M1) que extrae la imagen creada por CI y reconstruye una imagen M1 con el contenido de la imagen creada por CI. No es exactamente agradable, pero funciona.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!