-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
7 changed files
with
127 additions
and
135 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
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,22 @@ | ||
# syntax = edrevo/dockerfile-plus | ||
|
||
ARG V_UBUNTU=22.04 | ||
FROM ubuntu:${V_UBUNTU} | ||
ARG URELEASE=jammy | ||
|
||
INCLUDE+ lib/Dockerfile.common | ||
|
||
INCLUDE+ lib/Dockerfile.common-java | ||
|
||
INCLUDE+ lib/Dockerfile.common-dotnet | ||
|
||
# dotnet | ||
ENV PATH "$PATH:/.dotnet/tools" | ||
RUN dotnet --version && \ | ||
dotnet tool install Amazon.Lambda.Tools --tool-path /.dotnet/tools && \ | ||
dotnet new -i Amazon.Lambda.Templates | ||
# end: dotnet | ||
|
||
ENV PATH "$PATH:/app" | ||
|
||
RUN apt-get clean -y |
This file was deleted.
Oops, something went wrong.
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,52 @@ | ||
### Both envs | ||
ARG V_GRAAL=21.0.2 | ||
ARG V_DOTNETSDK=7.0 | ||
### | ||
|
||
### Build env only | ||
ARG V_SCALA=2.13.12 | ||
ARG V_SBT=1.9.8 | ||
|
||
ARG V_TYPESCRIPT=4.0.2 | ||
ARG V_GOLANG=1.21 | ||
ARG V_MVN=3.6.3-5 | ||
ARG V_PROTOBUF=25.1 | ||
ARG V_JEKYLL=3.2.1 | ||
### | ||
|
||
# basic configuration | ||
RUN mkdir -p /work | ||
RUN mkdir -p /root | ||
VOLUME /work | ||
VOLUME /root | ||
WORKDIR /work | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN echo "APT::Acquire::Queue-Mode "access"; APT::Acquire::Retries 3; " > /etc/apt/apt.conf.d/99parallel | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y --no-install-recommends \ | ||
tzdata \ | ||
gnupg \ | ||
ca-certificates \ | ||
wget \ | ||
curl \ | ||
zip \ | ||
unzip \ | ||
apt-utils \ | ||
jq \ | ||
openssh-client \ | ||
software-properties-common \ | ||
apt-transport-https | ||
|
||
RUN apt-get -y --no-install-recommends install locales | ||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ | ||
locale-gen | ||
|
||
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ | ||
dpkg-reconfigure --frontend noninteractive tzdata | ||
# end: basic configuration |
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,12 @@ | ||
# dotnet | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
RUN printf 'Package: *\nPin: origin "packages.microsoft.com"\nPin-Priority: 1001' > /etc/apt/preferences.d/99microsoft-dotnet.pref | ||
|
||
RUN curl -o packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb && \ | ||
dpkg -i packages-microsoft-prod.deb && \ | ||
rm packages-microsoft-prod.deb | ||
|
||
RUN apt-get update && apt-get install -y dotnet-sdk-${V_DOTNETSDK} aspnetcore-runtime-${V_DOTNETSDK} && apt-get upgrade -y | ||
|
||
RUN echo "dotnet: $(dotnet --version)" | ||
# end: dotnet |
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,22 @@ | ||
# java | ||
ARG JAVA_BASE=/usr/lib/jvm | ||
ENV JAVA_HOME ${JAVA_BASE}/graalvm | ||
ENV PATH "$PATH:$JAVA_HOME/bin" | ||
|
||
RUN cd /tmp && \ | ||
wget -q https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${V_GRAAL}/graalvm-community-jdk-${V_GRAAL}_linux-x64_bin.tar.gz -O dist.tar.gz && \ | ||
tar -xvzf dist.tar.gz && \ | ||
rm -f dist.tar.gz && \ | ||
mkdir -p ${JAVA_BASE} && \ | ||
chmod -R 755 ${JAVA_BASE} && \ | ||
mv graalvm-*/ ${JAVA_HOME} && \ | ||
update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 99999 | ||
|
||
RUN echo "java: $(java -version)" && \ | ||
echo "java: $(native-image --version)" | ||
|
||
# we don't need it but it fixes broken apt | ||
#RUN apt-get install -y openjdk-21-jre-headless | ||
|
||
# end: java | ||
|