pjnovas / nolaborables

API pública y gratuita para consultar los feriados en Argentina.
http://nolaborables.com.ar/
BSD 2-Clause "Simplified" License
108 stars 21 forks source link

Docker no funciona #41

Open insigniadb opened 2 years ago

insigniadb commented 2 years ago

Intenté ejecutar la imagen via docker-compose como indica en el readme y no llegó a hacer el build:

~/nolaborables$ docker-compose up

Sending build context to Docker daemon  52.79kB
Step 1/11 : FROM node:10-slim
10-slim: Pulling from library/node
62deabe7a6db: Pull complete 
f698164f6049: Pull complete 
bc29352cb629: Pull complete 
85e84b4c858f: Pull complete 
ac72e4359589: Pull complete 
Digest: sha256:88932859e3d022d79161b99628c4c2c50e836437455e2d1b1a008d98367b10d6
Status: Downloaded newer image for node:10-slim
 ---> 6fbcbbb5c603
Step 2/11 : RUN npm i npm@latest -g
 ---> Running in 5504b8e16ad3
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
npm WARN notsup Unsupported engine for npm@8.10.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.24.1","npm":"6.14.12"})
npm WARN notsup Not compatible with your version of node/npm: npm@8.10.0

+ npm@8.10.0
added 63 packages from 18 contributors, removed 297 packages and updated 138 packages in 6.558s
Removing intermediate container 5504b8e16ad3                                                                                                                                                                                    
 ---> 1fea42545606                                                                                                                                                                                                              
Step 3/11 : RUN npm install pm2 -g                                                                                                                                                                                              
 ---> Running in 2f523828dc8c                                                                                                                                                                                                   
ERROR: npm is known not to run on Node.js v10.24.1                                                                                                                                                                              
You'll need to upgrade to a newer Node.js version in order to use this                                                                                                                                                          
version of npm. You can find the latest version at https://nodejs.org/                                                                                                                                                          
1 error occurred:                                                                                                                                                                                                               
        * Status: The command '/bin/sh -c npm install pm2 -g' returned a non-zero code: 1, Code: 1
pbendersky commented 10 months ago

Dejé un fix en #50