This project contains a simple Express application with health checks ready for kubernetes deployment using Artifactory Cloud. The project Template can be used to build bigger projects.
Refer to https://nodejs.org/en/ to install nodejs
- Clone the repository
- Install the dependencies
- Start the application
git clone https://github.com/davidpinhas/from-git-to-kubernetes.git
npm install
node server.js
Clone the repository and build the Docker image:
git clone https://github.com/davidpinhas/from-git-to-kubernetes.git
cd from-git-to-kubernetes/
docker build . -t <ARTIFACTORY_SERVER_NAME>.jfrog.io/docker/pe-node-web-app
docker run -p 8080:8080 -d <ARTIFACTORY_SERVER_NAME>.jfrog.io/docker/pe-node-web-app
The application should be accessible through localhost with the assigned port http://localhost:8080/