Skip to content

Commit 45085a2

Browse files
Use Ubuntu:22.04 as base image instead of lampepfl/dotty (#176)
* Use Java 8 to build sbt-bridge * Use ubuntu:22.04 as base instead of lampepfl/dotty
1 parent 69d5776 commit 45085a2

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/workflows/buildBisect.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757

5858
- uses: coursier/cache-action@v6.4
5959
- uses: VirtusLab/scala-cli-setup@v1.0.1
60+
with:
61+
jvm: 8
6062

6163
- name: "Bisect project"
6264
shell: bash

builder-base/Dockerfile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
1-
FROM lampepfl/dotty:2023-06-21-2
1+
FROM ubuntu:22.04
22

33
ARG JDK_VERSION
44

5+
ENV LANG=C.UTF-8
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
ENV TZ=Europe/Zurich
8+
59
# install requirements, install and configure sdkman
610
# see https://sdkman.io/usage for configuration options
711
ENV SDKMAN_DIR=/root/.sdkman
8-
RUN apt -y install curl ca-certificates zip unzip openssl findutils && \
12+
RUN apt-get update && apt-get upgrade -y && \
13+
apt-get install -y software-properties-common && \
14+
apt-get install -y curl ca-certificates zip unzip openssl findutils bash git ssh htop nano vim-tiny zile && \
15+
(curl -fsSL https://deb.nodesource.com/setup_18.x | bash -) && apt-get install -y nodejs && \
916
curl -s "https://get.sdkman.io" | bash && \
1017
echo "sdkman_auto_answer=true" > $SDKMAN_DIR/etc/config && \
1118
echo "sdkman_auto_selfupdate=false" >> $SDKMAN_DIR/etc/config
1219

1320
# Source sdkman to make the sdk command available and install candidate
14-
RUN bash -c "source $SDKMAN_DIR/bin/sdkman-init.sh && sdk install java $JDK_VERSION"
21+
RUN bash -c "source $SDKMAN_DIR/bin/sdkman-init.sh && sdk install java $JDK_VERSION && sdk install sbt 1.9.1"
1522
# Add candidate path to $PATH environment variable
1623
ENV JAVA_HOME="$SDKMAN_DIR/candidates/java/current"
17-
ENV PATH="$JAVA_HOME/bin:$PATH"
24+
ENV SBT_HOME="$SDKMAN_DIR/candidates/sbt/current"
25+
ENV PATH="$JAVA_HOME/bin:$SBT_HOME/bin:$PATH"
1826

1927
WORKDIR /build
2028
COPY . /build/

builder-base/warmup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@ echo 'scalaVersion := "'$scala_version'"' > build.sbt
1414
echo '@main def run = println("Warmed up.")' > A.scala
1515

1616
for version in $(echo $SBT_VERSIONS); do
17+
java -version
1718
sbt --sbt-version $version --batch run
1819
done
20+
21+
cd ..
22+
rm -rf warm_up

0 commit comments

Comments
 (0)