Skip to content

Commit afb695b

Browse files
Change/update Gitpod configs (zio#5839)
* set extensions to default to latest * use coursier as default manager install scala sbt scalafix scalafmt ammonite and bloop * add ohmyzsh (adds proper fonts for zsh shell)
1 parent 44d849e commit afb695b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.gitpod.Dockerfile

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM gitpod/workspace-full
2-
USER gitpod
3-
RUN brew install scala coursier/formulas/coursier sbt scalaenv ammonite-repl
4-
RUN sudo env "PATH=$PATH" coursier bootstrap org.scalameta:scalafmt-cli_2.12:2.4.2 \
5-
-r sonatype:snapshots \
6-
-o /usr/local/bin/scalafmt --standalone --main org.scalafmt.cli.Cli
7-
RUN bash -cl "set -eux \
8-
version=0.9.0 \
9-
coursier fetch \
10-
org.scalameta:metals_2.12:$version \
11-
org.scalameta:mtags_2.13.3:$version \
12-
org.scalameta:mtags_2.12.12:$version"
2+
3+
RUN curl -fLo cs https://git.io/coursier-cli-"$(uname | tr LD ld)" && \
4+
chmod +x cs && \
5+
./cs install cs && \
6+
echo 'export PATH="$PATH:/home/gitpod/.local/share/coursier/bin"' >> ~/.zshrc && \
7+
echo 'export PATH="$PATH:/home/gitpod/.local/share/coursier/bin"' >> ~/.bashrc && \
8+
./cs install scala sbt scalafix scalafmt ammonite && \
9+
./cs install bloop --only-prebuilt=true && \
10+
rm cs
11+
12+
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended

.gitpod.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ image:
22
file: .gitpod.Dockerfile
33
vscode:
44
extensions:
5-
- scala-lang.scala@0.3.9:kklqw+c/dNRmtTU8B5repw==
6-
- scalameta.metals@1.9.0:KNju0fLBpNiyqH8qBfFeIQ==
5+
- scala-lang.scala
6+
- scalameta.metals
77
ports:
88
- port: 8212
99
onOpen: ignore

0 commit comments

Comments
 (0)