TT#60950 Switch ngcp-panel REST API docker to buster

Change-Id: I494c375a52a0027c4964269c88c0c6f514276e5d
changes/40/31040/2
Alexander Lutay 6 years ago
parent 530a22778a
commit d44140c296

@ -1,11 +1,11 @@
# DOCKER_NAME=ngcp-panel-tests-rest-api-stretch # DOCKER_NAME=ngcp-panel-tests-rest-api-buster
FROM docker.mgm.sipwise.com/sipwise-stretch:latest FROM docker.mgm.sipwise.com/sipwise-buster:latest
# Important! Update this no-op ENV variable when this Dockerfile # Important! Update this no-op ENV variable when this Dockerfile
# is updated with the current date. It will force refresh of all # 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 # of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built. # old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2018-08-14 ENV REFRESHED_AT 2019-06-27
# files that get-code generates # files that get-code generates
COPY t/api-rest/sources.list.d/builddeps.list /etc/apt/sources.list.d/ COPY t/api-rest/sources.list.d/builddeps.list /etc/apt/sources.list.d/
@ -56,15 +56,15 @@ WORKDIR /home/testuser
# #
# you need to put the proper NGCP sources at t/sources.list.d/builddeps.list # you need to put the proper NGCP sources at t/sources.list.d/builddeps.list
# for instance, trunk: # 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: # NOTE: run the following command from root folder of git repository:
# % docker build --tag="ngcp-panel-tests-rest-api-stretch" -f t/api-rest/Dockerfile . # % docker build --tag="ngcp-panel-tests-rest-api-buster" -f t/api-rest/Dockerfile .
# % docker run --rm -i -t -v $(pwd):/code:rw ngcp-panel-tests-rest-api-stretch:latest bash # % docker run --rm -i -t -v $(pwd):/code:rw ngcp-panel-tests-rest-api-buster:latest bash
# #
# Use the existing docker image (run from ngcp-panel base directory): # Use the existing docker image (run from ngcp-panel base directory):
# % docker pull docker.mgm.sipwise.com/ngcp-panel-tests-rest-api-stretch # % docker pull docker.mgm.sipwise.com/ngcp-panel-tests-rest-api-buster
# % docker run --rm -i -t -v $(pwd):/code:rw docker.mgm.sipwise.com/ngcp-panel-tests-rest-api-stretch:latest bash # % docker run --rm -i -t -v $(pwd):/code:rw docker.mgm.sipwise.com/ngcp-panel-tests-rest-api-buster:latest bash
# #
# Inside docker: # Inside docker:
# su - testuser # su - testuser

Loading…
Cancel
Save