-
Notifications
You must be signed in to change notification settings - Fork 209
/
.gitpod.Dockerfile
32 lines (26 loc) · 1.65 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
FROM gitpod/workspace-base:latest
### Docker ###
USER root
ENV TRIGGER_REBUILD=4
# https://docs.docker.com/engine/install/ubuntu/
RUN curl -o /var/lib/apt/dazzle-marks/docker.gpg -fsSL https://download.docker.com/linux/ubuntu/gpg \
&& apt-key add /var/lib/apt/dazzle-marks/docker.gpg \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& install-packages docker-ce docker-ce-cli containerd.io
RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
&& chmod +x /usr/bin/slirp4netns
RUN curl -o /usr/local/bin/docker compose -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 \
&& chmod +x /usr/local/bin/docker-compose
# share env see https://github.com/gitpod-io/workspace-images/issues/472
RUN echo "PATH="${PATH}"" | sudo tee /etc/environment
RUN apt update && apt install fzf -y && apt install bat -y
USER gitpod
RUN mkdir -p ~/.local/bin && ln -s /usr/bin/batcat ~/.local/bin/bat
RUN echo "export PATH=~/.local/bin:/workspace/kafka-docker-playground/scripts/cli:$PATH" >> ~/.bashrc
RUN echo "source /workspace/kafka-docker-playground/scripts/cli/completions.bash" >> ~/.bashrc
# Install Confluent Cloud CLI, with shell auto completion
RUN mkdir -p ~/.local/share/bash-completion/
RUN curl -L --http1.1 https://cnfl.io/cli | sudo sh -s -- -b /usr/local/bin && \
touch ~/.local/share/bash-completion/confluent && \
confluent completion bash > ~/.local/share/bash-completion/confluent && \
echo "source ~/.local/share/bash-completion/confluent" >> ~/.bashrc