Skip to content

Commit

Permalink
Implemented changes similaer to main dockerfile. i.e optimised image …
Browse files Browse the repository at this point in the history
…size
  • Loading branch information
jsbilgi committed Aug 14, 2024
1 parent c6e8859 commit b56640d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,19 @@ ENV TERM=xterm

# Install necessary packages including build tools and jq
RUN apt-get update && apt-get install -y \
apt-utils \
curl \
tar \
git \
python3 \
python3-venv \
python3-dev \
maven \
unzip \
zip \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
jq \
&& apt-get clean

# Install sdkman and Java using sdkman
RUN curl -s "https://get.sdkman.io" | bash && \
bash -c "source $SDKMAN_DIR/bin/sdkman-init.sh && sdk install java 17.0.4.1-tem"

# Manually download and set up Astra CLI (replace with correct URL)
RUN curl -Ls "https://downloads.datastax.com/enterprise/astra-cli/latest/astra-cli-linux-amd64" -o /usr/local/bin/astra && \
chmod +x /usr/local/bin/astra

# Install pyenv and set up Python environment
RUN curl https://pyenv.run | bash
ENV PATH="/root/.pyenv/bin:$PATH"
RUN echo 'export PATH="/root/.pyenv/bin:$PATH"' >> /root/.bashrc
RUN echo 'eval "$(pyenv init --path)"' >> /root/.bashrc
RUN echo 'eval "$(pyenv init -)"' >> /root/.bashrc
RUN bash -c "source /root/.bashrc && pyenv install 3.8.16 -f && pyenv global 3.8.16"

# Download and extract cqlsh-astra
RUN curl -O https://downloads.datastax.com/enterprise/cqlsh-astra-20221114-bin.tar.gz && \
tar xvfz cqlsh-astra-20221114-bin.tar.gz && \
Expand Down

0 comments on commit b56640d

Please sign in to comment.