##Project Setup
$ docker build -t mytiles-deploy --rm -f deploy.dockerfile .
EKS setup here - https://docs.aws.amazon.com/eks/latest/userguide/getting-started-console.html Needed to add Internet Gateway to Routing Table for Subnets 0.0.0.0/0 - igw-XXXXXXXXX Install countour on k8
kubectl apply -f https://j.hept.io/contour-deployment-rbac
$ docker run --name mytiles-deploy -td fcarta29/mytiles-deploy:latest
$ docker exec -it mytiles-deploy bash
$ aws configure
$ aws eks --region us-west-2 update-kubeconfig --name MyTiles-Cluster
Deploy yamls - persistence, mytiles app, and networking
kubectl get -n heptio-contour service contour -o wide
Get External IP
a44c888c68d5c11e99a980653b4b550e-837031113.us-west-2.elb.amazonaws.com
docker login
docker tag mytiles-deploy:latest fcarta29/mytiles-deploy:latest
docker push fcarta29/mytiles-deploy:latest
docker build -t mytiles-build --rm -f build.dockerfile .
docker login
docker tag mytiles-build:latest fcarta29/mytiles-build:latest
docker push fcarta29/mytiles-build:latest
##OLD
- Install redis
- Download http://redis.io/download
- For Mac OS X use
$ wget http://download.redis.io/releases/redis-3.0.1.tar.gz $ tar xzf redis-3.0.1.tar.gz $ cd redis-3.0.1 $ make
- Install Git
- Create GitHub account
- Fork repo
- Clone GIt repo to local workspace
- git clone git@github.com:<your_repo_name>/mytiles.git
- Building Applications
- "mvn clean install" from /mytiles directory to build all
##Project Start/Run
- Debugging
- export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y”
- Starting Applications
- Start redis
* Start reds from reds home dir
- under src/
- ./redis-server /redis.conf * (Optional) start up redis cli
- under src/
- ./redis-cli
- Starting mytiles-data * mvn spring-boot:run
- Starting mytiles-app * mvn spring-boot:run
- Starting mytiles-webapp * mvn jetty:run
- REST endpoints on Swagger
- Using/Testing
- Open 2 browser windows to http://localhost:8080
- Click Connect
- Enter name … tmp until login is ready