- Comment Out k8s config section and uncomment the docker config section.
- This project uses node version 12.18.4 and npm version 6.14.6.
- Install Node version and npm version.
- Then cd to root directory of this project, where root pom.xml file is.
- Run
mvn clan install -DskipTests
- Once the build complete, cd to
movie-frontend
and runnpm run-script build
. - This is start the UI in
http://localhost:4200
- Now cd root directory of this project, where
docker-compose.yaml
file is. - Now Run
docker-compose up -d
, which will start the mysql database and spring-boot application.
- Run
mvn clean install
- Then
docker-compose up -d --build
To spun up this application in K8s Cluster its required some configuration changes.
- Comment out Docker config section and uncomment the k8s config in movie-backend
application.properties
- I have pushed my images to docker-hub, which are very customized image that are purpose of my Development needs.
- First go to the movie-frontend code and update
apiUrl
variable, (search for apiUrl in the Code). - Change
apiUrl
valuelocalhost:8080
to{your_ip_address}:30000
- Go to
Dockerfile-npm
and build that image, below is the commanddocker build -t movie-frontend:latest -f Dockerfile-npm .
- And now update the
frontend.service.yaml
manifest, and change the image to your current image that you have created. - Once the change in place you should be able to start doing the build.
- Also don't forget to deploy this under namespace
movie-application