alpine-sqs icon indicating copy to clipboard operation
alpine-sqs copied to clipboard

support linux/arm64/v8 builds

Open mvisonneau opened this issue 4 years ago • 1 comments

~$ docker buildx build --platform linux/arm64/v8 --build-arg ARCH=arm64v8 -t alpine-sqs .
[+] Building 121.1s (16/16) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 1.32kB                                                                                                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/arm64v8/openjdk:8-alpine                                                                                                                                                                                      2.5s
 => [internal] load metadata for docker.io/library/alpine:3.13                                                                                                                                                                                           1.6s
 => [auth] arm64v8/openjdk:pull token for registry-1.docker.io                                                                                                                                                                                           0.0s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                                                                                                                            0.0s
 => [stage-1 1/5] FROM docker.io/arm64v8/openjdk:8-alpine@sha256:ad0c0c268e337200ace4256a6c40ea7eb01c467bde519aae8a6dc8c6ac103d53                                                                                                                        6.3s
 => => resolve docker.io/arm64v8/openjdk:8-alpine@sha256:ad0c0c268e337200ace4256a6c40ea7eb01c467bde519aae8a6dc8c6ac103d53                                                                                                                                0.0s
 => => sha256:0362ad1dd800a9d92f8982fa28f173f9120266153830f990f7486f44b068968a 2.69MB / 2.69MB                                                                                                                                                           0.3s
 => => sha256:571218f61883d9b38dc66005a4777e0cf86a05d2a7c570efe58f952c28f6737a 239B / 239B                                                                                                                                                               0.3s
 => => sha256:abe576d65b4ce9e6c3d3055aa955a1677d0d36b0e952ed6f7516c84754d6ad61 70.74MB / 70.74MB                                                                                                                                                         4.6s
 => => sha256:ad0c0c268e337200ace4256a6c40ea7eb01c467bde519aae8a6dc8c6ac103d53 947B / 947B                                                                                                                                                               0.0s
 => => sha256:e4105db9d4690c236b378feec3c07e3dbcc9efbd7e4e51d0a5df9a3b01b9e372 3.40kB / 3.40kB                                                                                                                                                           0.0s
 => => extracting sha256:0362ad1dd800a9d92f8982fa28f173f9120266153830f990f7486f44b068968a                                                                                                                                                                0.2s
 => => extracting sha256:571218f61883d9b38dc66005a4777e0cf86a05d2a7c570efe58f952c28f6737a                                                                                                                                                                0.0s
 => => extracting sha256:abe576d65b4ce9e6c3d3055aa955a1677d0d36b0e952ed6f7516c84754d6ad61                                                                                                                                                                1.6s
 => [builder 1/3] FROM docker.io/library/alpine:3.13@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930                                                                                                                             0.9s
 => => resolve docker.io/library/alpine:3.13@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930                                                                                                                                     0.0s
 => => sha256:019c59128325536e838a5f36028db214335129f9aa83214cc2c60c10dc1797ac 528B / 528B                                                                                                                                                               0.0s
 => => sha256:85b71a783ad319b691c1c355dac52ddc07350e0f7d3c3541edbc5370b084445a 1.47kB / 1.47kB                                                                                                                                                           0.0s
 => => sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930 1.64kB / 1.64kB                                                                                                                                                           0.0s
 => => sha256:2914792bc417803b2106001990194cc00cdd4b6fd97cd21a368f26148bc8e722 2.71MB / 2.71MB                                                                                                                                                           0.7s
 => => extracting sha256:2914792bc417803b2106001990194cc00cdd4b6fd97cd21a368f26148bc8e722                                                                                                                                                                0.2s
 => [internal] load build context                                                                                                                                                                                                                        0.0s
 => => transferring context: 589B                                                                                                                                                                                                                        0.0s
 => [builder 2/3] WORKDIR /tmp/sqs-alpine                                                                                                                                                                                                                0.1s
 => [builder 3/3] RUN   apk add --no-cache     curl     git     jq   && git clone --verbose --depth=1 https://github.com/kobim/sqs-insight.git   && export elasticmq_version=$(curl -sL https://api.github.com/repos/adamw/elasticmq/releases/latest |   9.2s
 => [stage-1 2/5] COPY --from=builder /tmp/sqs-alpine/ /opt/                                                                                                                                                                                             0.1s
 => [stage-1 3/5] COPY etc/ /etc/                                                                                                                                                                                                                        0.0s
 => [stage-1 4/5] COPY opt/ /opt/                                                                                                                                                                                                                        0.0s
 => [stage-1 5/5] RUN   apk add --no-cache     nodejs     nodejs-npm     supervisor     libtasn1=4.14-r0   && rm -rf     /var/cache/apk/*     /etc/supervisord.conf   && ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf   && cd /opt/sq  105.3s
 => exporting to image                                                                                                                                                                                                                                   2.7s
 => => exporting layers                                                                                                                                                                                                                                  2.7s
 => => writing image sha256:31b8c9c1b99912ac965696873a0e9f08f2bab2a426dafde93e50e79c3c78dfd0                                                                                                                                                             0.0s
 => => naming to docker.io/library/alpine-sqs                                                                                                                                                                                                            0.0s

mvisonneau avatar Feb 03 '21 11:02 mvisonneau

Hey @mvisonneau I just tried out your branch from mvisonneau/alpine-sqs:1.2.0-arm64 - unfortunately it does not run on my M1 mac. I see the following when trying to run it using docker run --name alpine-sqs -p 9324:9324 -p 9325:9325 -d mvisonneau/alpine-sqs:1.2.0-arm64:

Error on queue "dlq": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
11:27:26.415 [elasticmq-akka.actor.default-dispatcher-5] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
Error on queue "default": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
Error on queue "dlq": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
Error on queue "default": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
2021-06-08 11:27:26,917 INFO success: elasticmq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
11:27:26.973 [elasticmq-akka.actor.default-dispatcher-6] INFO  o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:9324, visible server address * (depends on incoming request path) 
11:27:27.029 [elasticmq-akka.actor.default-dispatcher-8] INFO  o.e.r.s.TheStatisticsRestServerBuilder - Started statistics rest server, bind address 0.0.0.0:9325
11:27:27.059 [elasticmq-akka.actor.default-dispatcher-11] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(dlq,MillisVisibilityTimeout(10000),PT5S,PT0S,2021-06-08T11:27:27.035Z,2021-06-08T11:27:27.035Z,None,false,false,None,None,Map())
11:27:27.085 [elasticmq-akka.actor.default-dispatcher-11] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(default,MillisVisibilityTimeout(10000),PT5S,PT0S,2021-06-08T11:27:27.085Z,2021-06-08T11:27:27.085Z,Some(DeadLettersQueueData(dlq,3)),false,false,None,None,Map())
11:27:27.090 [main] INFO  org.elasticmq.server.Main$ - === ElasticMQ server (1.1.0) started in 1172 ms ===
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (assembler_aarch64.hpp:1156), pid=2301, tid=0x0000ffffa90feaa0
#  guarantee(Rs != Rn && Rs != Rt) failed: unpredictable instruction
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-aarch64 compressed oops)
# Derivative: IcedTea 3.12.0
# Distribution: Custom build (Sat May  4 17:44:26 UTC 2019)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# //hs_err_pid2301.log
#
# Compiler replay data is saved as:
# //replay_pid2301.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://icedtea.classpath.org/bugzilla
#
Error on queue "dlq": SQS receive message failed: socket hang up
2021-06-08 11:27:28,918 INFO exited: elasticmq (terminated by SIGABRT; not expected)
Error on queue "default": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
2021-06-08 11:27:29,186 INFO spawned: 'elasticmq' with pid 2327
Error on queue "dlq": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
11:27:29.487 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (1.1.0) ...
Error on queue "dlq": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
Error on queue "default": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
11:27:29.791 [elasticmq-akka.actor.default-dispatcher-5] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
Error on queue "dlq": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
Error on queue "dlq": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
Error on queue "default": SQS receive message failed: connect ECONNREFUSED 127.0.0.1:9324
11:27:30.366 [elasticmq-akka.actor.default-dispatcher-6] INFO  o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:9324, visible server address * (depends on incoming request path) 
2021-06-08 11:27:30,366 INFO success: elasticmq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
11:27:30.435 [elasticmq-akka.actor.default-dispatcher-6] INFO  o.e.r.s.TheStatisticsRestServerBuilder - Started statistics rest server, bind address 0.0.0.0:9325
11:27:30.475 [elasticmq-akka.actor.default-dispatcher-8] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(dlq,MillisVisibilityTimeout(10000),PT5S,PT0S,2021-06-08T11:27:30.450Z,2021-06-08T11:27:30.450Z,None,false,false,None,None,Map())
11:27:30.494 [elasticmq-akka.actor.default-dispatcher-8] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(default,MillisVisibilityTimeout(10000),PT5S,PT0S,2021-06-08T11:27:30.494Z,2021-06-08T11:27:30.494Z,Some(DeadLettersQueueData(dlq,3)),false,false,None,None,Map())
11:27:30.495 [main] INFO  org.elasticmq.server.Main$ - === ElasticMQ server (1.1.0) started in 1221 ms ===
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (assembler_aarch64.hpp:1156), pid=2327, tid=0x0000ffff93111aa0
#  guarantee(Rs != Rn && Rs != Rt) failed: unpredictable instruction
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-aarch64 compressed oops)
# Derivative: IcedTea 3.12.0
# Distribution: Custom build (Sat May  4 17:44:26 UTC 2019)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# //hs_err_pid2327.log
#
# Compiler replay data is saved as:
# //replay_pid2327.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://icedtea.classpath.org/bugzilla
#

Any idea why this is and how to fix it?

NielsKSchjoedt avatar Jun 08 '21 11:06 NielsKSchjoedt