NodeJS on Python Docker

I’m using the python:3.4 Docker image to build and test in our Gitlab CI. After integrating React into an existing Django project we need to test and build the Javascript, meaning we need to install NodeJS into our python:3.4 image.

My first few attempts at this failed. Jessie’s Node package is horribly broken and the official Node installation procedure fails when executing lsb_release, because the python3:4 image removes the default /usr/bin/python. I’m not sure why it does this but it’s an easy fix.

ln -s /usr/bin/python2.7.distrib /usr/bin/python

All our python3 testing still functions as expected, and now so do system installed python applications.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.