Skip to content

Commit

Permalink
Merge pull request #12 from juntossomosmais/add-kube-and-az
Browse files Browse the repository at this point in the history
feat: add kubectl and az
  • Loading branch information
lizarbventurim authored Oct 31, 2024
2 parents 141eaea + e9823a3 commit ab58199
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ RUN apt-get update && apt-get install -y \
ca-certificates \
--no-install-recommends


# Baixar e instalar o repositório do Google Chrome
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
Expand Down Expand Up @@ -49,16 +48,23 @@ RUN npm --version
# Exibe a versão do Java
RUN java -version

#Instala dependências necessárias
# Instala dependências necessárias
RUN apt-get update && apt-get install -y \
libxi6 \
libgconf-2-4 \
libgtk-3-0 \
google-chrome-stable
#Define variáveis de ambiente

# Define variáveis de ambiente
ENV DISPLAY=:99
ENV CHROME_FLAGS "--no-sandbox --disable-gpu"

Check warning on line 60 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

# Instalar o kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

# Instalar o Azure CLI (az)
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash

# Instalar dependências do Cypress

Expand Down

0 comments on commit ab58199

Please sign in to comment.