Skip to content

Commit 4af5c61

Browse files
committed
Hardcode detection of the distribution name
1 parent 5755a83 commit 4af5c61

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

repo2docker/buildpacks/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
WORKDIR ${HOME}
4545
4646
RUN wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
47-
DISTRO="$(lsb_release -s -c)" && \
47+
DISTRO="bionic" && \
4848
echo "deb https://deb.nodesource.com/node_10.x $DISTRO main" >> /etc/apt/sources.list.d/nodesource.list && \
4949
echo "deb-src https://deb.nodesource.com/node_10.x $DISTRO main" >> /etc/apt/sources.list.d/nodesource.list
5050

tests/base/node10/verify

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

33
set -e
4+
which node
45
node --version | grep v10
5-
npm --version | grep v6.2
6+
which npm
7+
npm --version | grep 6.2

0 commit comments

Comments
 (0)