-
Docker
-
Helm
-
kubectl
-
az cli
Instructions
- Clone the repository
- Download DefaultServlet from here: https://developer.ibm.com/wasdev/docs/article_appdeployment/
- Unpack the DefaultServletEngine folder into the WebSphereContainer folder
- Build the WebSphere Container
- cd WebSphereContainer
- build -t demowas .
- Build the Apache Container
- cd WebContainer
- build -t demoapache .
- Create a new container registry with az cli
- az group create --location WestUS --name yourregistrygroup
- az acr create --name youracr --resource-group yourregistrygroup --sku Basic --admin-enabled=true
- Connect to your acr with Docker
- docker login youracr.azurecr.io -u youracr -p adminpw
- Push your images to your acr
- docker image tag demowas youracr.azurecr.io/demowas
- docker image tag demoapache youracr.azurecr.io/demoapache
- docker push youracr.azurecr.io/demowas
- docker push youracr.azurecr.io/demoapache
- Create a kubernetes deployment on azure
- az group create --name youracs --location WestUS
- az acs create -n youracs --resource-group youracs -t kubernetes
- Setup kubectl
- Follow the instructions here https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-connect#connect-to-a-kubernetes-cluster
- Add your container registry to your cluster
- kubectl create secret docker-registry youracr.azurecr.io --docker-username=youracr --docker-password=adminpw --docker-email=fakemail@fake.com
- Deploy the helm template
- helm install javademo
- Use kubectl to get the ip address of the apache service
- kubectl get services
- Record the public ip for the apacheservice once it's up
- Check that it works
- Use a browser to go to http://apacheserviceip