Hi, Thanks for allowing us to trial Kalix.
I’m trying the customer-registry-scala quickstart on M1 Mac with latest Scala, Docker,… and GitLab for container registry.
I get some warnings and errors during the Docker/publish but it seems to complete successfully (or at least that’s what it says).
When I kalix service deploy customer-registry registry.gitlab.com/… it seems to deploy the image to Kalix and tries to run but doesn’t succeed.
It sits at “Pending” for a while then goes to “Unavailable.”
I have checked the image architecture and it seems to be “amd64” (as mentioned in another similar forum post).
Some output from the Docker/publish command appended below.
Any help would be most appreciated.
Cheers,
Ashley.
[warn] [1] There are no exposed ports for your docker image
[warn] Configure the `dockerExposedPorts` or `dockerExposedUdpPorts` setting. E.g.
[warn]
[warn] // standard tcp ports
[warn] dockerExposedPorts ++= Seq(9000, 9001)
[warn]
[warn] // for udp ports
[warn] dockerExposedUdpPorts += 4444
[warn]
[success] All package validations passed
[error] #1 [internal] load build definition from Dockerfile
[error] #1 transferring dockerfile: 1.05kB done
[error] #1 DONE 0.0s
[error] #2 [internal] load .dockerignore
[error] #2 transferring context: 2B done
[error] #2 DONE 0.0s
[error] #3 [internal] load metadata for docker.io/library/adoptopenjdk:11-jre-hotspot
[error] #3 ...
[error] #4 [stage0 1/7] FROM docker.io/library/adoptopenjdk:11-jre-hotspot@sha256:ad6431b2e2a6f8016aa6d79c3f588783af9fdc06cafe131fd0d3faf560914b13
[error] #4 DONE 0.0s
[error] #5 [internal] load build context
[error] #5 transferring context: 1.55MB 0.0s done
[error] #5 DONE 0.0s
[error] #6 [stage0 2/7] WORKDIR /opt/docker
[error] #6 CACHED
[error] #3 [internal] load metadata for docker.io/library/adoptopenjdk:11-jre-hotspot
[error] #3 ...
[error] #7 [stage0 3/7] COPY 1/opt /1/opt
[error] #7 DONE 0.1s
[error] #8 [stage0 4/7] COPY 2/opt /2/opt
[error] #8 DONE 0.0s
[error] #9 [stage0 5/7] RUN ["chmod", "-R", "u=rX,g=rX", "/1/opt/docker"]
[error] #9 DONE 0.3s
[error] #10 [stage0 6/7] RUN ["chmod", "-R", "u=rX,g=rX", "/2/opt/docker"]
[error] #10 DONE 0.2s
[error] #11 [stage0 7/7] RUN ["chmod", "u+x,g+x", "/1/opt/docker/bin/customer-registry"]
[error] #11 DONE 0.1s
[error] #12 [mainstage 2/5] RUN id -u demiourgos728 1>/dev/null 2>&1 || (( getent group 0 1>/dev/null 2>&1 || ( type groupadd 1>/dev/null 2>&1 && groupadd -g 0 root || addgroup -g 0 -S root )) && ( type useradd 1>/dev/null 2>&1 && useradd --system --create-home --uid 1001 --gid 0 demiourgos728 || adduser -S -u 1001 -G root demiourgos728 ))
[error] #12 CACHED
[error] #13 [mainstage 3/5] WORKDIR /opt/docker
[error] #13 CACHED
[error] #14 [mainstage 4/5] COPY --from=stage0 --chown=demiourgos728:root /1/opt/docker /opt/docker
[error] #14 DONE 0.1s
[error] #15 [mainstage 5/5] COPY --from=stage0 --chown=demiourgos728:root /2/opt/docker /opt/docker
[error] #15 DONE 0.0s
[error] #3 [internal] load metadata for docker.io/library/adoptopenjdk:11-jre-hotspot
[error] #3 ...
[error] #16 exporting to image
[error] #16 exporting layers 0.1s done
[error] #16 writing image sha256:b5b6c960f88464a274be875adcbeea2f65706f4d82ebaeef9d0eb7612d31e07f done
[error] #16 naming to registry.gitlab.com/project/test/<usernam/customer-registry:HEAD-20221125-1305 done
[error] #16 naming to registry.gitlab.com/project/test/<username>/customer-registry:latest done
[error] #16 DONE 0.1s