-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eacf28c
commit 30036d2
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Define a imagem base que será utilizada (pode ser uma imagem do LoadRunner pré-configurada) | ||
FROM loadrunner-image:latest | ||
|
||
# Instala as dependências necessárias para o GitLab CI/CD | ||
RUN apt-get update -y \ | ||
&& apt-get install -y git curl | ||
|
||
# Configura as variáveis de ambiente necessárias para o LoadRunner | ||
ENV LR_PATH=/path/to/loadrunner | ||
ENV LR_SCRIPT=/path/to/loadrunner_script | ||
|
||
# Clona o repositório contendo os scripts de teste do LoadRunner | ||
RUN git clone <URL_DO_REPOSITORIO_GIT> $LR_PATH | ||
|
||
# Define o diretório de trabalho dentro do container | ||
WORKDIR $LR_PATH | ||
|
||
# Comando para iniciar o teste de performance utilizando o LoadRunner | ||
CMD ["loadrunner_executable", "-Test", "$LR_SCRIPT"] |