blob: 5717b7ac726c2c66eabe58ed6eb7ec15d8ecda2e [file] [log] [blame]
David Garcia95ba7e12021-02-03 11:10:28 +01001# Copyright 2021 Canonical Ltd.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14#
David Garcia95ba7e12021-02-03 11:10:28 +010015##
David Garciaa60ec732021-03-17 15:28:47 +010016########################################################################################
17# This Dockerfile is intented for devops testing and deb package generation
18#
19# To run stage 2 locally:
20#
21# docker build -t stage2 .
22# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
23# devops-stages/stage-test.sh
24# devops-stages/stage-build.sh
25#
Mike Marchetti0d2a2db2018-03-22 14:57:17 -040026
David Garcia95ba7e12021-02-03 11:10:28 +010027FROM ubuntu:18.04
David Garciaa60ec732021-03-17 15:28:47 +010028ENV LANG en_IN.UTF-8
beierlmf1f5b762021-04-06 13:51:33 -040029ENV LC_ALL en_IN.UTF-8
30ENV LANGUAGE en_IN.UTF-8
David Garcia95ba7e12021-02-03 11:10:28 +010031
David Garciaa60ec732021-03-17 15:28:47 +010032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
35 dh-make \
36 git \
37 python3.8 \
38 python3-all \
39 python3-dev \
40 python3-setuptools
41
42RUN python3 -m easy_install pip==21.0.1
43RUN pip3 install tox==3.22.0