TT#60950 Switch ngcp-csc-ui docker to buster

The package npm is separate package now, install it directly.

Change-Id: I35b9ea1f745b983884d9078ac32be3a20f8d40e1
changes/39/31039/2
Alexander Lutay 6 years ago
parent 35904393e0
commit 6d64878641

@ -1,11 +1,11 @@
# DOCKER_NAME=ngcp-csc-ui-stretch
FROM docker.mgm.sipwise.com/sipwise-stretch:latest
# DOCKER_NAME=ngcp-csc-ui-buster
FROM docker.mgm.sipwise.com/sipwise-buster:latest
# Important! Update this no-op ENV variable when this Dockerfile
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2018-06-27
ENV REFRESHED_AT 2019-06-27
ENV DEBIAN_FRONTEND noninteractive
ENV DISPLAY=:0
@ -19,6 +19,7 @@ RUN apt-get update && apt-get install --assume-yes \
gtk2-engines-pixbuf \
libgconf-2-4 \
net-tools \
npm \
nodejs \
wget \
xterm \
@ -47,16 +48,16 @@ WORKDIR /code
#
# you need to put the proper NGCP sources at t/sources.list.d/builddeps.list
# for instance, trunk:
# echo "deb https://deb.sipwise.com/autobuild/ release-trunk-stretch main" > t/sources.list.d/builddeps.list
# echo "deb https://deb.sipwise.com/autobuild/ release-trunk-buster main" > t/sources.list.d/builddeps.list
#
# NOTE: run the following command from root folder of git repository:
# % docker build --tag="ngcp-csc-ui-stretch" -f ./t/Dockerfile .
# % docker run --rm -i -t -v $(pwd):/code:ro ngcp-csc-ui-stretch:latest bash
# % docker build --tag="ngcp-csc-ui-buster" -f ./t/Dockerfile .
# % docker run --rm -i -t -v $(pwd):/code:ro ngcp-csc-ui-buster:latest bash
#
# Use the existing docker image:
# % docker pull docker.mgm.sipwise.com/ngcp-csc-ui-stretch
# % docker pull docker.mgm.sipwise.com/ngcp-csc-ui-buster
# NOTE: run the following command from root folder of git repository:
# % docker run --rm -i -t -v $(pwd):/code:ro -v /results docker.mgm.sipwise.com/ngcp-csc-ui-stretch:latest bash
# % docker run --rm -i -t -v $(pwd):/code:ro -v /results docker.mgm.sipwise.com/ngcp-csc-ui-buster:latest bash
#
# Inside docker:
# cd /code && ./t/testrunner

Loading…
Cancel
Save