forked from keycloak/keycloak-benchmark
-
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
23e227b
commit 6d73aaa
Showing
5 changed files
with
96 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Use the official Ubuntu base image | ||
FROM ubuntu:20.04 | ||
|
||
# Set environment variables to avoid interactive prompts during package installation | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update the package list and install required packages: curl, unzip, and JDK | ||
RUN apt update && \ | ||
apt install -y curl unzip openjdk-21-jdk w3m links lynx jq uuid-runtime && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Set JAVA_HOME environment variable | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 | ||
ENV PATH="$JAVA_HOME/bin:${PATH}" | ||
|
||
# Download the Keycloak Benchmark zip file | ||
COPY ./benchmark/target/keycloak-benchmark-0.13-SNAPSHOT.zip . | ||
|
||
# Unzip the downloaded file | ||
RUN unzip keycloak-benchmark-0.13-SNAPSHOT.zip -d /opt | ||
|
||
# Set the working directory | ||
WORKDIR /opt/keycloak-benchmark-0.13-SNAPSHOT | ||
|
||
# Default command: Start a bash shell | ||
CMD ["/bin/bash"] | ||
|
||
## docker build -t keycloak-benchmark . && docker run -v /Users/mohammed.ammer/Documents/projects/keycloak-benchmark/reports:/opt/keycloak-benchmark-0.14-SNAPSHOT/results/ -it keycloak-benchmark | ||
## |
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
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