Get your Java Microservice up and running
  • README
  • Setup local and IBM Cloud Environment
    • Overview
    • Register for IBM Cloud
    • Apply your feature code
    • Create a free Kubernetes cluster
    • Configure the container registry
    • Setup for local development and cloud deployment
    • Access the Kubernetes cluster
  • Exercises
    • Exercise 1: Running the Java Microservice locally
    • Exercise 2: The Java implementation
    • Exercise 3: Deploy to the Kubernetes
  • Additional Resources
    • Cloud-Native-Starter project
    • Security
    • Reactive
Powered by GitBook
On this page
  1. Setup local and IBM Cloud Environment

Setup for local development and cloud deployment

PreviousConfigure the container registryNextAccess the Kubernetes cluster

Last updated 3 years ago

Was this helpful?

CtrlK
  • Remember! We use two terminal sessions
  • Step 1: Code locally - Open a terminal session and run these commands
  • Step 2: Open new terminal session and run these commands
  • Step 3: After the container has been started, run these commands inside your running Docker image to get the lastest version of the workshop
  • Step 4: Verfiy the tool prerequisites on for the workshop

Was this helpful?

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