File: Dockerfile.install_test

package info (click to toggle)
azure-cli 2.82.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,359,416 kB
  • sloc: python: 1,910,381; sh: 1,343; makefile: 406; cs: 145; javascript: 74; sql: 37; xml: 21
file content (22 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This dockerfile is meant to test deb_install.sh
# To execute it, run the following command from the directory containing this file:
#   docker build -t deb-install -f Dockerfile.install_test .
# Optionally, one can test specific version of a Debian based linux distro by providing the "base" argument in the form
# of an image ID or tag.
ARG base=ubuntu
FROM $base AS builder

RUN apt-get update
RUN apt-get install -y dos2unix

ADD . .

RUN dos2unix ./deb_install.sh

FROM $base AS execution

COPY --from=builder ./deb_install.sh ./deb_install.sh

RUN ./deb_install.sh -y

CMD ["/bin/bash", "-c", "az --version && az self-test"]