Skip to content

Commit

Permalink
building locally
Browse files Browse the repository at this point in the history
  • Loading branch information
cpasternack committed Nov 12, 2019
1 parent d831077 commit 43e198c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
19 changes: 11 additions & 8 deletions Dockerfile.openjdk11
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ RUN chmod +x /timezone.sh && \
/timezone.sh

# Install openJDK11 from repo
RUN apt-get update && \
apt-get install -y --no-install-recommends \
default-jdk
RUN apt-get install -y --no-install-recommends \
openjdk-11-jdk-headless \
openjdk-11-jre-headless

# Install git
# Install curl and git
RUN apt-get install -y --no-install-recommends \
git
curl \
git \
gnupg

# Install OpenSSH server
RUN apt-get install -y --no-install-recommends \
Expand All @@ -25,15 +27,16 @@ RUN apt-get install -y --no-install-recommends \

# Add Mono from the mono project
# Directions from: https://www.mono-project.com/download/stable/#download-lin
RUN apt install apt-transport-https ca-certificates gnupg && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
# 11/2019: key not found in hkp://keyserver.ubuntu.com:80
# https://github.com/mono/mono/issues/9891
RUN curl https://download.mono-project.com/repo/xamarin.gpg | apt-key add - && \
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
apt update -y && \
apt-get update -y

# Install Mono and nuget
RUN apt install -y --no-install-recommends \
mono-complete && \
mono-complete \
nuget

# Update nuget
Expand Down
19 changes: 11 additions & 8 deletions Dockerfile.openjdk8
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ RUN chmod +x /timezone.sh && \
/timezone.sh

# Install openJDK11 from repo
RUN apt-get update && \
apt-get install -y --no-install-recommends \
openjdk-8-jdk
RUN apt-get install -y --no-install-recommends \
openjdk-8-jdk-headless \
openjdk-8-jre-headless

# Install git
# Install curl and git
RUN apt-get install -y --no-install-recommends \
git
curl \
git \
gnupg

# Install OpenSSH server
RUN apt-get install -y --no-install-recommends \
Expand All @@ -25,15 +27,16 @@ RUN apt-get install -y --no-install-recommends \

# Add Mono from the mono project
# Directions from: https://www.mono-project.com/download/stable/#download-lin
RUN apt install apt-transport-https ca-certificates gnupg && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
# 11/2019: key not found in hkp://keyserver.ubuntu.com:80
# https://github.com/mono/mono/issues/9891
RUN curl https://download.mono-project.com/repo/xamarin.gpg | apt-key add - && \
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
apt update -y && \
apt-get update -y

# Install Mono and nuget
RUN apt install -y --no-install-recommends \
mono-complete && \
mono-complete \
nuget

# Update nuget
Expand Down

0 comments on commit 43e198c

Please sign in to comment.