Skip to content

Commit ebf1d6b

Browse files
authored
Move CI management from lampepfl/dotty-ci (#19697)
Instead of managing the Docker image in [lampepfl/dotty-ci](https://github.com/lampepfl/dotty-ci), we can move the `Dockerfile` to this repository and manage it as a single monorepo. I've placed the `Dockerfile` under the `.github` as it is part of the "GitHub infrastructure".
2 parents d5f1425 + 70afe47 commit ebf1d6b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM ubuntu:22.04
2+
3+
# The default locale is "POSIX" which is just ASCII.
4+
ENV LANG C.UTF-8
5+
ENV DEBIAN_FRONTEND noninteractive
6+
ENV TZ Europe/Zurich
7+
8+
# Add packages to image, set default JDK version
9+
RUN apt-get update && \
10+
apt-get upgrade -y && \
11+
# Use a PPA to get Java 17
12+
apt-get install -y software-properties-common && add-apt-repository ppa:openjdk-r/ppa && \
13+
apt-get install -y bash curl git ssh htop nano vim-tiny zile \
14+
openjdk-8-jdk-headless \
15+
openjdk-17-jdk-headless \
16+
openjdk-21-jdk-headless && \
17+
(curl -fsSL https://deb.nodesource.com/setup_18.x | bash -) && \
18+
apt-get install -y nodejs
19+
20+
21+
# Install sbt
22+
ENV SBT_HOME /usr/local/sbt
23+
ENV PATH ${SBT_HOME}/bin:${PATH}
24+
ENV SBT_VERSION 1.9.0
25+
RUN curl -sL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local

0 commit comments

Comments
 (0)