2016-03-04 03:48:54 +03:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
|
|
|
|
RUN apt-get update -qq && \
|
|
|
|
apt-get install -qqy --no-install-recommends\
|
|
|
|
build-essential \
|
|
|
|
curl \
|
|
|
|
ca-certificates \
|
|
|
|
python-pip \
|
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
|
|
|
python-dev \
|
|
|
|
vim \
|
|
|
|
jq && \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
pip install --upgrade requests && \
|
|
|
|
pip install cryptography && \
|
|
|
|
pip install pyopenssl ndg-httpsclient pyasn1
|
|
|
|
|
|
|
|
ENV AZURECLITEMP /opt/azure-cli
|
|
|
|
ENV PYTHONPATH $PYTHONPATH:$AZURECLITEMP/src
|
|
|
|
ENV PATH $PATH:$AZURECLITEMP
|
|
|
|
|
|
|
|
RUN mkdir -p $AZURECLITEMP
|
|
|
|
COPY src $AZURECLITEMP/src
|
|
|
|
COPY az.completion.sh $AZURECLITEMP/
|
2016-03-16 20:58:29 +03:00
|
|
|
COPY requirements.txt $AZURECLITEMP/
|
2016-03-04 03:48:54 +03:00
|
|
|
COPY az $AZURECLITEMP/
|
|
|
|
|
2016-03-16 20:58:29 +03:00
|
|
|
RUN pip install -r $AZURECLITEMP/requirements.txt
|
|
|
|
|
2016-03-04 03:48:54 +03:00
|
|
|
RUN chmod +x $AZURECLITEMP/az
|
|
|
|
RUN echo "source $AZURECLITEMP/az.completion.sh" >> ~/.bashrc
|
2016-04-19 01:27:47 +03:00
|
|
|
RUN az
|
2016-03-04 03:48:54 +03:00
|
|
|
|
2016-03-16 20:58:29 +03:00
|
|
|
ENV EDITOR vim
|