Created
December 18, 2019 15:44
-
-
Save ereshzealous/5c2f1a18d8e449fda9c2be61e0e82b3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\eresh.gorantla\apps\minikube-sample (master -> origin) | |
λ mvn clean package -DskipTests=true | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ----------------< com.minikube.sample:minikube-sample >----------------- | |
[INFO] Building minikube-sample 0.0.1-SNAPSHOT | |
[INFO] --------------------------------[ jar ]--------------------------------- | |
[INFO] | |
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ minikube-sample --- | |
[INFO] Deleting C:\Users\eresh.gorantla\apps\minikube-sample\target | |
[INFO] | |
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ minikube-sample --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 1 resource | |
[INFO] Copying 1 resource | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ minikube-sample --- | |
[INFO] Changes detected - recompiling the module! | |
[INFO] Compiling 3 source files to C:\Users\eresh.gorantla\apps\minikube-sample\target\classes | |
[INFO] | |
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ minikube-sample --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory C:\Users\eresh.gorantla\apps\minikube-sample\src\test\resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ minikube-sample --- | |
[INFO] Changes detected - recompiling the module! | |
[INFO] Compiling 1 source file to C:\Users\eresh.gorantla\apps\minikube-sample\target\test-classes | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ minikube-sample --- | |
[INFO] Tests are skipped. | |
[INFO] | |
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ minikube-sample --- | |
[INFO] Building jar: C:\Users\eresh.gorantla\apps\minikube-sample\target\minikube-sample-0.0.1-SNAPSHOT.jar | |
[INFO] | |
[INFO] --- spring-boot-maven-plugin:2.2.1.RELEASE:repackage (repackage) @ minikube-sample --- | |
[INFO] Replacing main artifact with repackaged archive | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD SUCCESS | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 18.506 s | |
[INFO] Finished at: 2019-12-18T21:07:47+05:30 | |
[INFO] ------------------------------------------------------------------------ | |
C:\Users\eresh.gorantla\apps\minikube-sample (master -> origin) | |
λ minikube ssh | |
_ _ | |
_ _ ( ) ( ) | |
___ ___ (_) ___ (_)| |/') _ _ | |_ __ | |
/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\ | |
| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/ | |
(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____) | |
$ cd /c/Users/eresh.gorantla/apps/minikube-sample | |
$ docker build --file=Dockerfile \ | |
> --tag=minikube-sample:latest --rm=true . | |
Sending build context to Docker daemon 39.35MB | |
Step 1/5 : FROM openjdk:8-jdk-alpine | |
---> a3562aa0b991 | |
Step 2/5 : VOLUME /c/Users/eresh.gorantla/ | |
---> Using cache | |
---> 195269f34adc | |
Step 3/5 : COPY ./target/minikube-sample-0.0.1-SNAPSHOT.jar app.jar | |
---> c4958815d709 | |
Step 4/5 : ENV JAVA_OPTS="" | |
---> Running in 87321b25c658 | |
Removing intermediate container 87321b25c658 | |
---> 324fab897d9e | |
Step 5/5 : ENTRYPOINT exec java -jar app.jar --debug | |
---> Running in 89140f0c7e91 | |
Removing intermediate container 89140f0c7e91 | |
---> 09ca5d78eaef | |
Successfully built 09ca5d78eaef | |
Successfully tagged minikube-sample:latest | |
$ exit | |
logout | |
C:\Users\eresh.gorantla\apps\minikube-sample (master -> origin) | |
λ cd src\main\fabric8\ | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ kubectl apply -f deployment.yaml | |
service/minikube-sample created | |
deployment.apps/minikube-sample created | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ kubectl get pods | |
NAME READY STATUS RESTARTS AGE | |
minikube-sample-68854bdf68-5sjfh 1/1 Running 0 25s | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ kubectl get services | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 61d | |
minikube-sample NodePort 10.110.37.73 <none> 8080:30083/TCP 34s | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ minikube service minikube-sample | |
|-----------|-----------------|-------------|-----------------------------| | |
| NAMESPACE | NAME | TARGET PORT | URL | | |
|-----------|-----------------|-------------|-----------------------------| | |
| default | minikube-sample | | http://192.168.99.100:30083 | | |
|-----------|-----------------|-------------|-----------------------------| | |
* Opening kubernetes service default/minikube-sample in default browser... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment