Open MrDataPsycho opened 4 years ago
It looks like this particular issue is related to the installation of node-pre-gyp
on Docker.
Installing node-pre-gym requires some build tools, like Python and make. I would recommend checking to see if your Docker image includes these tools.
Hi, @captainsafia , Here is my docker file configuration. Can you suggest what to add. I took it from some previous post and modify some of the places.
The Docker Compose:
version: '3'
services:
commuter:
build:
context: '.'
dockerfile: 'Dockerfile'
expose:
- "4000"
network_mode: "bridge"
environment:
- NODE_ENV=production
- HOST=0.0.0.0
# - VIRTUAL_HOST=commuter.somedomain.com
# - VIRTUAL_PORT=4000
# - LETSENCRYPT_HOST=commuter.somedomain.com
# - LETSENCRYPT_EMAIL=youremail@somedomain.com
- COMMUTER_STORAGE_BACKEND=local
- COMMUTER_DISCOVERY_BACKEND=none
- COMMUTER_PORT=4000
- COMMUTER_LOCAL_STORAGE_BASEDIRECTORY=/app
# - COMMUTER_S3_BASE_PREFIX
# - COMMUTER_S3_PATH_DELIMITER
# - COMMUTER_BUCKET
# - COMMUTER_S3_KEY
# - COMMUTER_S3_SECRET
volumes:
- /opt/commuter:/app/commuter
restart: always
command: commuter
The Dockerfile:
FROM node:latest
# setup container for installation.
RUN mkdir /app
WORKDIR /app
ADD . /app
# run installation/ build commands.
RUN npm i -g @nteract/commuter
ENV HOST=0.0.0.0
ENV PORT=4000
EXPOSE 4000
CMD npm run start
# EXPOSE 8081
You might want to check out the new PR over at #291 for some guidance on this.
Hi, I was. trying to run commuter in a docker but its crashing with the same error. I have tried different configuration of the docker file but the error is same: