Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM ubuntu:14.04
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to figure the scripts for python 3.5
figure out what need to be handled by sdk and azure-cli package in details


RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN apt-get update -qq && \
apt-get install -qqy --no-install-recommends\
build-essential \
curl \
ca-certificates \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to get "git clone" work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this might not needed when we integrated git with docker hub

git \
python-pip \
libffi-dev \
libssl-dev \
python-dev \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed to be able to install "cryptography" and then "pyopenssl"; otherwise, our commands won't work

vim \
nano \
jq && \
rm -rf /var/lib/apt/lists/* && \
pip install azure==2.0.0a1 && \
pip install --upgrade requests && \
pip install cryptography && \
pip install pyopenssl ndg-httpsclient pyasn1

ENV PYTHONPATH ./src:PYTHONPATH

RUN echo '#!/bin/bash'>./az && \
echo 'python -m azure.cli "$@"'>>./az && \
chmod +x ./az && \
./az

ENV EDITOR vim