Skip to content

Commit

Permalink
Added IBM Cloud CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Nov 30, 2021
1 parent 774fb04 commit 15a9690
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ RUN apt-get update \
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# Set up the Kubernetes tools
# Set up the Kubernetes and IBM Cloud tools
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl" \
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \
&& echo "alias kc='/usr/local/bin/kubectl'" >> /home/$USERNAME/.bash_aliases \
&& chown $USERNAME:$USERNAME /home/$USERNAME/.bash_aliases \
&& curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash \
&& curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
&& curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash \
&& curl -fsSL https://clis.cloud.ibm.com/install/linux | sh

# Update Python tools
RUN pip3 install -U pip wheel setuptools
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"inercia.vscode-k3d"
],
"postCreateCommand": "pip install -U pip wheel && pip install -r requirements.txt",
"forwardPorts": [8080],
"features": {
"docker-in-docker": {
"version": "latest",
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ services:
init: true
privileged: true
# ports:
# - 5000:5000
# - 8080:8080
volumes:
- ..:/app
- ~/.gitconfig:/home/vscode/.gitconfig
- ~/.ssh/:/home/vscode/.ssh/
- ~/.bluemix/:/home/vscode/.bluemix/
- dind-var-lib-docker:/var/lib/docker
command: sleep infinity
environment:
FLASK_APP: service:app
PORT: 5000
PORT: 8080
DATABASE_URI: "redis://redis:6379/0"
networks:
- dev
Expand Down

0 comments on commit 15a9690

Please sign in to comment.