-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitpod.Dockerfile
34 lines (27 loc) · 1.03 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM gitpod/workspace-full
# Install custom tools, runtimes, etc.
# For example "bastet", a command-line tetris clone:
# RUN brew install bastet
#
# More information: https://www.gitpod.io/docs/config-docker/
# Create bin folder under $HOME for random binaries
RUN mkdir $HOME/bin
# Install bazelisk so that it is available on the command line
RUN npm install -g @bazel/bazelisk
# Install bazel-watcher
RUN npm install -g @bazel/ibazel
# Install buildifier and buildozer
ENV GOPATH=$HOME/go-packages
RUN go get -u -v github.com/bazelbuild/buildtools/buildifier
RUN go get -u -v github.com/bazelbuild/buildtools/buildozer
ENV GOPATH=/workspace/go
# Install starlark LSP
RUN wget -O $HOME/bin/gostarlark https://github.com/stackb/bzl/releases/download/0.9.4/bzl && \
chmod +x $HOME/bin/gostarlark
# Install cargo-raze for Rust 3rdparty dependencies
RUN cargo install cargo-raze
RUN rustup component add rustfmt
# Add Bazel command line completion
USER root
COPY scripts/bazel-complete.bash /etc/bash_completion.d/bazel-complete.bash
USER gitpod