-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitpod.Dockerfile
23 lines (21 loc) · 1.39 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
FROM gitpod/workspace-full
ARG CONFLUENT_VERSION=6.2.1
ARG CONFLUENT_VERSION_SHORT=6.2
ENV CONFLUENT_HOME=/home/gitpod/confluent-${CONFLUENT_VERSION}
SHELL ["/bin/bash", "-c"]
# Install Confluent CLI and Confluent Cloud CLI, with shell auto completion
RUN mkdir -p ~/.local/share/bash-completion/ && \
echo "export PATH=/home/gitpod/.sdkman/candidates/java/current/bin:/home/gitpod/confluent-${CONFLUENT_VERSION}/bin:$PATH" >> ~/.bashrc
RUN curl -O https://packages.confluent.io/archive/${CONFLUENT_VERSION_SHORT}/confluent-${CONFLUENT_VERSION}.zip && \
unzip confluent-${CONFLUENT_VERSION}.zip && \
echo "source ~/.local/share/bash-completion/confluent" >> ~/.bashrc && \
/home/gitpod/confluent-${CONFLUENT_VERSION}/bin/confluent completion bash > ~/.local/share/bash-completion/confluent
RUN curl -L --http1.1 https://cnfl.io/ccloud-cli | sudo sh -s -- -b /usr/local/bin && \
touch ~/.local/share/bash-completion/ccloud && \
ccloud completion bash > ~/.local/share/bash-completion/ccloud && \
touch ~/.local/share/bash-completion/confluent && \
echo "source ~/.local/share/bash-completion/ccloud" >> ~/.bashrc
ENV PATH=/home/gitpod/.sdkman/candidates/java/current/bin:/home/gitpod/confluent-${CONFLUENT_VERSION}/bin:$PATH
RUN echo $PATH
# Install datagen connector
RUN /home/gitpod/confluent-${CONFLUENT_VERSION}/bin/confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.5.2