Created
December 16, 2019 15:58
-
-
Save ereshzealous/11cbe521643412b387039bffad26d8d2 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 2 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.1.8.RELEASE:repackage (repackage) @ minikube-sample --- | |
[INFO] Replacing main artifact with repackaged archive | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD SUCCESS | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 24.857 s | |
[INFO] Finished at: 2019-12-16T21:19:53+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 37.72MB | |
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 | |
---> 464a400fa0e3 | |
Step 4/5 : ENV JAVA_OPTS="" | |
---> Running in e6372ead2fae | |
Removing intermediate container e6372ead2fae | |
---> e232bb1d08ed | |
Step 5/5 : ENTRYPOINT exec java -jar app.jar --debug | |
---> Running in 3db728eb5ee2 | |
Removing intermediate container 3db728eb5ee2 | |
---> 52fd7e832f24 | |
Successfully built 52fd7e832f24 | |
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 create -f deployment.yaml | |
deployment.apps/minikube-sample created | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ kubectl expose deployment minikube-sample --type=NodePort | |
service/minikube-sample exposed | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ kubectl get deployments | |
NAME READY UP-TO-DATE AVAILABLE AGE | |
minikube-sample 1/1 1 1 3m5s | |
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 59d | |
minikube-sample NodePort 10.101.85.96 <none> 8080:31982/TCP 3m32s | |
C:\Users\eresh.gorantla\apps\minikube-sample\src\main\fabric8 (master -> origin) | |
λ minikube service minikube-sample --url | |
* http://192.168.99.100:31982 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment