GithubHelp home page GithubHelp logo

gordonfrog project

localhost:8080

POST http://localhost:8080/users { "id": 10, "name": "Will Gordon", "title": "Web Developer", "department": "BigData Analytics" }

PUT http://localhost:8080/users/10 { "name": "Will Gordon", "title": "Web Developer", "department": "Biggens Analytics" }

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

dockerized/containerized gordonfrog using mysql testing:

localhost

POST http://localhost/users { "id": 4, "name": "Will Gordon", "title": "Web Developer", "department": "BigData Analytics" }

PUT http://localhost/users/4 { "name": "frogger", "title": "Web", "department": "Big D Analytics" }

docker ps -aq

docker stop $(docker ps -aq)

docker rm $(docker ps -aq)

docker system prune --all --force --volumes

docker rmi -f $(docker images -qa)

docker network rm $(docker network ls | grep "bridge" | awk '/ / { print $1 }')

Create common network for all services:

docker network create gordonfrog-network

Start mysql:

docker container run -v mydata:/var/lib/mysql --network gordonfrog-network --name mysql -e "MYSQL_ROOT_PASSWORD=password" -e "MYSQL_DATABASE=gordonfrog" -d mysql:5

docker exec -it mysql bash

mysql -uroot -ppassword

show databases;

Start webapp

mvn clean package

docker build -t gordonfrog:1 .

docker run --network gordonfrog-network --name gordonfrog-webapp -e "SPRING_PROFILES_ACTIVE=docker" -d -p 80:9090 gordonfrog:1

docker logs -f gordonfrog-webapp

localhost

docker exec -it mysql bash

mysql -uroot -ppassword

show databases;

use gordonfrog

show tables;

select * from user;

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

kubernets using mongodb testing:

eval $(minikube docker-env)

docker images

mvn clean package

docker build -t gordonfrog:1 .

docker images

kubectl get all

kubectl apply -f mongo-stack.yaml

kubectl apply -f services.yaml

kubectl get all

minikube ip

minikube service gordonfrog-webapp --url

works!

will gordon's Projects

eng101 icon eng101

Notes and Assignments for ENGR101, an introductory engineering class at Portland Community College.

hellonode icon hellonode

A Hello World HTTP server in Node, with a Dockerfile and a Jenkinsfile

partsunlimitedmrpmicro icon partsunlimitedmrpmicro

A microservices-based application using entirely open source software including Docker, Kubernetes, Java, Apache, Hystrix, and MongoDB which creates a web front end and 5 supporting microservices.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.