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.
1
git clone https://github.com/IBM/cloud-native-starter
2
cd cloud-native-starter
3
ROOT_FOLDER=$(pwd)
Copied!
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
1
docker run -it --privileged --rm quay.io/tsuedbroecker/cns-workshop-tools:buildah-v1
Copied!

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

1
cd /
2
git clone https://github.com/IBM/cloud-native-starter.git
3
cd cloud-native-starter
4
ROOT_FOLDER=$(pwd)
Copied!

Step 4: Verfiy the tool prerequisites on for the workshop

1
chmod u+x iks-scripts/*.sh
2
chmod u+x scripts/*.sh
3
./iks-scripts/check-prerequisites.sh
Copied!
Last modified 1mo ago