X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=Dockerfile;h=5c0807a224ae86a822bbdb72d5f26e14f0115936;hp=8f664c5cb215a83819e20c42d96ea68e7fbac33f;hb=0c01ffa4f8cdd307d15463fb389b7cfe2d500db6;hpb=4c57e2e64537d6263c618da58bcd8f8767b8076e diff --git a/Dockerfile b/Dockerfile index 8f664c5..5c0807a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Copyright 2018 Telefonica S.A. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This Dockerfile is intented for devops and deb package generation # # Use Dockerfile.local for running osm/NBI in a docker container from source @@ -6,7 +24,17 @@ FROM ubuntu:16.04 -RUN apt-get update && apt-get -y install git make python python3 \ +RUN apt-get update && apt-get -y install wget git make python python3 python-pip \ libcurl4-gnutls-dev libgnutls-dev tox python-dev python3-dev \ - debhelper python-setuptools python-all python3-all apt-utils + debhelper python-setuptools python-all python3-all apt-utils python-magic \ + python3-pip python-pip && \ + DEBIAN_FRONTEND=noninteractive pip3 install -U stdeb setuptools-version-command && \ + DEBIAN_FRONTEND=noninteractive pip2 install -U stdeb + +# Uncomment this block to generate automatically a debian package and show info +# Set the working directory to /app +WORKDIR /app +# Copy the current directory contents into the container at /app +ADD . /app +CMD /app/devops-stages/stage-build.sh && find -name "*.deb" -exec dpkg -I {} ";"