Setup for local development and cloud deployment

Remember! We use two terminal sessions

  • The first terminal session is for the developer focused exercises 1 and 2.

  • The second terminal session is for exercise 3 deploy the Microservice to Kubernetes, here you will work in a preconfigured Container image.

Step 1: Code locally - Open a terminal session and run these commands

Download the project locally to work in the Developer labs locally.

git clone https://github.com/IBM/cloud-native-starter
cd cloud-native-starter
ROOT_FOLDER=$(pwd)

The local project is needed for Java development labs 2 and 3, because you can't use Docker in the 'cns-workshop-tools' Docker image. (for more see this article )

Step 2: Open new terminal session and run these commands

  • Start the container

docker run -it --privileged --rm quay.io/tsuedbroecker/cns-workshop-tools:buildah-v1

Step 3: After the container has been started, run these commands inside your running Docker image to get the lastest version of the workshop

cd /
git clone https://github.com/IBM/cloud-native-starter.git
cd cloud-native-starter
ROOT_FOLDER=$(pwd)

Step 4: Verfiy the tool prerequisites on for the workshop

chmod u+x iks-scripts/*.sh
chmod u+x scripts/*.sh
./iks-scripts/check-prerequisites.sh

Last updated