Feature 10296 Pip Standardization
Cleanup of Dockerfile
Moved requirements from devops/docker/tests/Dockerfile into this
module so they are visible.
Added pylint and safety hooks.
Added place for unit tests, but none are written yet, so does not
run them.
Change-Id: I75ce40c558bd9bc8975269dca681ba84678e6de6
Signed-off-by: beierlm <mark.beierl@canonical.com>
diff --git a/Dockerfile b/Dockerfile
index 65c2c78..b949260 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,13 +11,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# This Dockerfile is intented for devops and deb package generation
+########################################################################################
+# This Dockerfile is intented for devops testing and deb package generation
#
-# Use Dockerfile.local for running osm/NBI in a docker container from source
-# Use Dockerfile.fromdeb for running osm/NBI in a docker container from last stable package
+# To run stage 2 locally:
+#
+# docker build -t stage2 .
+# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
+# devops-stages/stage-test.sh
+# devops-stages/stage-build.sh
+#
+FROM ubuntu:18.04
-FROM ubuntu:16.04
-
-RUN apt-get update && apt-get -y install git make libcurl4-gnutls-dev \
- libgnutls-dev debhelper apt-utils dh-make
+RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get -y install \
+ debhelper \
+ dh-make \
+ git