This demo can be used for developer to build the deploy docker image to SAP BTP enviroment
Insall Docker on your development enviroment
Build docker images with the command : docker build -t=”docker_node_helloworld .
Notes : Don't messing DOT
Run the command to start the image : docker run -p 4000:4000 docker_node_helloworld
Test it with the link : : http://localhost:4000
Response : Hello World
Command :
docker login
docker tag docker_node_helloworld {{your dockerhubName}}/my_docker_image_v1
docker push {{your DokerhubName}}/my_docker_image_v1
Command:
cf api {{apiendpoint}}
cf login -u {{username}} -p {{password}}
cf push my_docker_appv1 --docker-image {{your dokerhubName}}/my_docker_image_v1:latest --docker-username {{your dockerhubName}}
Deploy Docker Image : deploy-application-using-docker-container-on-sap-cloud-foundry-2020/