Skip to content

Commit

Permalink
build(docker): cf cli by default disabled in Kyma docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Oct 29, 2023
1 parent 62b3377 commit 5d4995e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions docker/btp-cflinuxfs4.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ENV LC_ALL en_US.UTF-8
USER ${adminuser}
WORKDIR /home/${adminuser}

RUN mkdir /home/${adminuser}/tmp; \
RUN \
printf "alias e=exit\nalias ..=cd..\nalias :q=exit\nalias ll='ls -l'\nalias la='ls -la'\nalias distro='cat /etc/*-release'\n" > .bash_aliases && \
printf "\n# colors\nexport TERM=xterm-256color\n" >> ~/.bashrc && \
# git configuration
Expand All @@ -71,11 +71,12 @@ RUN mkdir /home/${adminuser}/tmp; \
# # python
# INCLUDE+ common/python.Dockerfile

# cf cli
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - && \
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list && \
sudo apt-get update && \
sudo apt-get install cf8-cli
# # cf cli - if needed
# RUN mkdir /home/${adminuser}/tmp; \
# wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - && \
# echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list && \
# sudo apt-get update && \
# sudo apt-get install cf8-cli

# nvm
INCLUDE+ common/nodejs.Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion docker/common/nodejs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN \
# nvm
NVM_VERSION=$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | grep '"tag_name"' | sed -E 's/.*"v([^"]+)".*/\1/') && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash && \
bash -ic "nvm install node && nvm install 20 && nvm install v18.18.2 && nvm && alias cfdefault v18.18.2" && \
bash -ic "nvm install node && nvm install 20 && nvm install 18.18.2 && nvm alias cfdefault 18.18.2" && \
# bashrc
cat /tmp/bashrc_nvm.sh >> .bashrc && \
echo "nvm use cfdefault" >> .bashrc && \
Expand Down

0 comments on commit 5d4995e

Please sign in to comment.