forked from SnuK87/keycloak-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.dockerfile
More file actions
25 lines (21 loc) · 796 Bytes
/
ci.dockerfile
File metadata and controls
25 lines (21 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM mcr.microsoft.com/dotnet/sdk:6.0
RUN apt update
RUN apt install ssh -y
RUN apt install curl -y
RUN apt install python3 -y
RUN apt install jq -y
RUN apt install git -y
# Install Java 17
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
RUN ~/.asdf/bin/asdf plugin-add java
RUN ~/.asdf/bin/asdf install java openjdk-17
RUN ~/.asdf/bin/asdf global java openjdk-17
RUN ln -s ~/.asdf/installs/java/openjdk-17/bin/java /usr/bin/java
# Install Maven 3.6.3
RUN ~/.asdf/bin/asdf plugin-add maven
RUN ~/.asdf/bin/asdf install maven 3.6.3
RUN ~/.asdf/bin/asdf global maven 3.6.3
RUN ln -s ~/.asdf/installs/maven/3.6.3/bin/mvn /usr/bin/mvn
# Install git version tool
RUN dotnet tool install GitVersion.Tool --global --version 5.9.0
ENV PATH="$PATH:/root/.dotnet/tools"