Closed techsmyth closed 3 years ago
Hi @techsmyth
There's a working Dockerfile already available at sdk/Dockerfile:
FROM node:14
MAINTAINER Jolocom Dev <dev@jolocom.io>
WORKDIR /app
VOLUME /app
COPY docker-entrypoint.sh /usr/local/bin/
CMD ["start"]
The main difference is that it is FROM node:14
which uses ubuntu (not alpine). If you want to use alpine you need the libc6-compat
package I believe
The SDK Dockerfile is referenced in the service_agent
section in the docker-compose.yml
by specifying build
:
services:
service_agent:
build: ./sdk
image: jolocom/sdk
restart: unless-stopped
@mnzaki thanks for the follow up.
Basically it comes down to how to run the jolocom-sdk on an alpine based image. Using the node:12 image as base worked fine, but the image size for out server image went from 700mb to 1500mb :(
adding apk add libc6-compat to the dockerfile did not help. No more bandwidth near term for me to look at this - and too risky (as well as too big an image size jump) to move to node:12 instead of node:12-alpine.
So for now leaving jolocom-sdk disabled in our server image, can still demo locally as needed. If anything comes up re running jolocom-sdk on a node:12-alpine base (or node:14-alpine) please let me know.
Docker images are failing when embedding the sdk.
To re-produce:
The above error will be generated.