The base OpenShift NodeJS Docker image doesn't have iproute package installed so, my goal is to change the base image to achieve that. What I do is:
$ git clone --recursive https://github.com/sclorg/s2i-nodejs-container.git
$ cd s2i-nodejs-container
$ git submodule update --init
I change the 6/Dockerfile to include the missing package:
INSTALL_PKGS="rh-nodejs6 rh-nodejs6-npm rh-nodejs6-nodejs-nodemon nss_wrapper iproute" && \
I build the image:
$ cd 6
$ docker build -t myimage .
And I get this when I start a shell session:
$ docker run -it myimage /bin/bash
': not a valid identifierble: line 2: unset: `ENV
is probably not installed.-nodejs6
ss is now available (iproute package) but node and npm aren't:
$ ss
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
$ node -v
bash: node: command not found
$ npm -v
bash: npm: command not found
Am I missing any step? Help would be appreciated.