SDK eMart

How to create Executable JAR of an Spring boot Application - Spring boot

  

   How to create Executable JAR of an Spring boot Application - Spring boot





Here is simple step:

NOTE: Red color ---> command


1) First open git bash or cmd terminal where is your mvnw file in your Spring Boot Project 




2) Run mvnw package   and wait some time 







3) Now go to target folder by  cd target/







4) After this check your jar file is working or not by like: java -jar polls-0.0.1-SNAPSHOT.jar






So, This was the step to make executable JAR file of your spring boot project and Run this file anywhere.

Happy Learning !!


IBM CC0201EN Introduction to Containers, Kubernetes, and OpenShift - Graded Quiz answer - 1

                                         IBM CC0201EN 

Introduction to Containers, Kubernetes, and OpenShift - Graded Quiz answer - 1



Question 1

1 point possible (graded)
Which of the following are benefits of containers?
unanswered

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 2

1 point possible (graded)
What is an image?
unanswered

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 3

1 point possible (graded)
In this sample Dockerfile, what does the FROM instruction do?

FROM ubuntu:18.04

COPY . /app

RUN make /app

CMD python /app/app.py

unanswered

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 4

1 point possible (graded)
What does the docker build command do?
unanswered

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 5

1 point possible (graded)
You can use the Docker COPY instruction to copy files from your local machine to a container.

            False 



Question 1

1/1 point (graded)
Which of the following statements describes what Kubernetes is?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 2

1/1 point (graded)
Which of the following components is part of the Kubernetes control plane?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 3

1/1 point (graded)
Which of the following are Kubernetes objects? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 4

1/1 point (graded)
Which Kubernetes object represents a single instance of processes running in a container?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 5

1/1 point (graded)
In this sample kubectl command, what does create do?

kubectl create -f nginx.yaml

correct



Question 1

1/1 point (graded)
Which of the following statements describes what a ReplicaSet does? Select the four that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 2

1/1 point (graded)
Which of the following Kubernetes objects are used to run applications? Select the four that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 3

1/1 point (graded)
In this sample kubectl command, what does get deployments tell us? Select the four that apply.

» kubectl get deployments

NAMEREADYUP-TO-DATEAVAILABLEAGE
Nginx-deploy1/311
3s

correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 4

1/1 point (graded)
Which of the following Kubernetes objects is used to store and manage sensitive information?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)


Question 1

1/1 point (graded)
Which of the following most accurately describes the relationship between Red Hat OpenShift and Kubernetes?
correc
Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 2

1/1 point (graded)
Which of the following are Red Hat OpenShift build triggers? Select the three that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 3

1/1 point (graded)
Which of the following are possible with Istio service mesh? Select the three that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 4

1/1 point (graded)
Which of the following are types of operators available in OperatorHub? Select the three that apply.
correc
Some problems have options such as save, reset, hints, or show answer. These options follow the Submit

Final Exam due Aug 26, 2022 04:46 IST

Question 1

1/1 point (graded)
What does the Docker CLI build command do?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 2

1/1 point (graded)
In this sample Dockerfile, what does the FROM instruction do?

FROM alpine:3.9

COPY . /app

RUN make /app

CMD python /app/app.py

correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 3

0/1 point (graded)
Containers include a guest operating system in every instance.
incorrect

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Incorrect (0/1 point)

Question 4

1/1 point (graded)
In this sample docker build command, what does the -t option do?

docker build -t my-app:v1 .

correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 5

1/1 point (graded)
You use the docker push command to distribute an image to a registry.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 6

1/1 point (graded)
Which of the following statements describes what Kubernetes is? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 7

1/1 point (graded)
Which of the following are container runtimes? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 8

1/1 point (graded)
Which of the following Kubernetes objects can you use to segregate a cluster by team or project?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 9

1/1 point (graded)
Which Kubernetes object provides updates to Pods and ReplicaSets?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 10

1/1 point (graded)
In this sample kubectl command, what does create do?

kubectl create -f pod.json

correct

Question 11

1/1 point (graded)
How are ReplicaSets often created?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 12

1/1 point (graded)
Which of the following Kubernetes objects are used to run applications? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 13

1/1 point (graded)
Which of the following are used to provide ConfigMaps to Pods and Deployments? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 14

1/1 point (graded)
What Kubernetes capabilities enable an application to increase the number of Pods based on traffic? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 15

1/1 point (graded)
What does the following command do?

kubectl get secrets --namespace=default

correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 16

1/1 point (graded)
What is the Istio service mesh used for? Select all that apply.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 17

1/1 point (graded)
Kubernetes is the sole project hosted by the CNCF.
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 18

0/1 point (graded)
OpenShift can be run in which of the following environments? Select all that apply.
incorrect

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Incorrect (0/1 point)

Question 19

1/1 point (graded)
What is the open source upstream version of OpenShift called?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 20

1/1 point (graded)
Which of the following build strategies injects application source code into builder images without having to write a Dockerfile?
correct

Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

Question 21

1/1 point (graded)
Image streams contain complete image data.
correct
Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.
Correct (1/1 point)

END OF FINAL EXAM