Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AppAuthentication] Enable Docker based Azure CLI functionality #3

Open
kdcllc opened this issue Oct 30, 2019 · 0 comments
Open

[AppAuthentication] Enable Docker based Azure CLI functionality #3

kdcllc opened this issue Oct 30, 2019 · 0 comments

Comments

@kdcllc
Copy link
Owner

kdcllc commented Oct 30, 2019

To enable docker image-based authentication the following must be accomplished:

  1. Install Azure CLI inside of the docker image
    https://hub.docker.com/r/microsoft/azure-cli/dockerfile
FROM debian:jessie

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

ENV AZURE_CLI_VERSION "0.10.13"
ENV NODEJS_APT_ROOT "node_6.x"
ENV NODEJS_VERSION "6.10.0"

RUN apt-get update -qq && \
    apt-get install -qqy --no-install-recommends\
      apt-transport-https \
      build-essential \
      curl \
      ca-certificates \
      git \
      lsb-release \
      python-all \
      rlwrap \
      vim \
      nano \
      jq && \
    rm -rf /var/lib/apt/lists/* && \
    curl https://deb.nodesource.com/${NODEJS_APT_ROOT}/pool/main/n/nodejs/nodejs_${NODEJS_VERSION}-1nodesource1~jessie1_amd64.deb > node.deb && \
      dpkg -i node.deb && \
      rm node.deb && \
      npm install --global azure-cli@${AZURE_CLI_VERSION} && \
      azure --completion >> ~/azure.completion.sh && \
      echo 'source ~/azure.completion.sh' >> ~/.bashrc && \
      azure

RUN azure config mode arm

ENV EDITOR vim
  1. Non-Interactive Azure CLI enabled
@kdcllc kdcllc transferred this issue from kdcllc/Bet.AspNetCore Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant