#docker - June 2019

dockerArchived
19 messages

All things docker
Archive: https://archive.sweetops.com/docker/

Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
hello everyone,
I have a question about npm install -> postinstall inside docker
I have super small config (exmple)

{
  "private": true,
  "scripts": {
    "postinstall": "echo test"
  }
}


when I execute npm i --unsafe-perm everything goes well
but when I execute npm ci --unsafe-perm I’ve got error message
npm ERR! Cannot read property 'length' of undefined
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
does anybody know what to do?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Have you tried building the container without running this command in the Dockefile. Then start the container with a shell, and triage that way? Sometimes it’s easier to understand what is going on
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
hmmm
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
no
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
I’ve tried. - the same error

Step 5/7 : RUN npm ci --unsafe-perm
 ---> Running in 8781a79481f0
npm ERR! Cannot read property 'length' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-01T19_33_54_463Z-debug.log
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
the problem is in postinstall
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
but I have no any idea what is wrong with npm ci and postinstall
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
seems like i found the reason!
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
npm 6.5.0 works
Maxim Tishchenko
Maxim Tishchenkoover 7 years ago
npm upper version doesn’t work
rj
rjover 7 years ago
has anyone tried running a desktop on docker. Target is to deploy a virtual desktop solution using containers. Tried LXC containers, but had issues with the networking when the core server was deployed on cloud. Seems docker will be a better alternative, then again not easier to configure as a workstation like lxc/lxd.
btai
btaiover 7 years ago
how do you guys periodically update your docker images? looking moreso for automated solutions
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
What specifically is the objective?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Pull in latest packages?
Issif
Issifover 7 years ago
docker watchtower 🧌
tweetyix
tweetyixover 7 years ago(edited)
I guess @btai meant, maintaining, building and updating docker images (and push the new tagged release to a registry). Do you know any CI/CD examples for that purpose?
btai
btaiover 7 years ago
meant moreso fo rsecutity
btai
btaiover 7 years ago
i use codefresh for wut ur talking about