#docker (2019-06)

docker

All things docker

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

2019-06-01

Maxim Tishchenko avatar
Maxim Tishchenko

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 avatar
Maxim Tishchenko

does anybody know what to do?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

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 avatar
Maxim Tishchenko

hmmm

Maxim Tishchenko avatar
Maxim Tishchenko

no

Maxim Tishchenko avatar
Maxim Tishchenko

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 avatar
Maxim Tishchenko

the problem is in postinstall

Maxim Tishchenko avatar
Maxim Tishchenko

but I have no any idea what is wrong with npm ci and postinstall

Maxim Tishchenko avatar
Maxim Tishchenko

seems like i found the reason!

Maxim Tishchenko avatar
Maxim Tishchenko

npm 6.5.0 works

Maxim Tishchenko avatar
Maxim Tishchenko

npm upper version doesn’t work

2019-06-06

2019-06-09

rj avatar

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.

2019-06-19

btai avatar

how do you guys periodically update your docker images? looking moreso for automated solutions

1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

What specifically is the objective?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Pull in latest packages?

2019-06-20

Issif avatar

docker watchtower troll

2019-06-28

github140 avatar
github140

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 avatar

meant moreso fo rsecutity

btai avatar

i use codefresh for wut ur talking about

    keyboard_arrow_up