Giter VIP home page Giter VIP logo

What is PPVMIO?

When I was first introduced to AWS in Fall of 2019, I was determined to setup some basic infrastructure. To better keep track of all the infrastructure I began brainstorming a potential application or namespace that I could use to label everything. I settled on PPVMIO which you can break down into three parts

  1. PP - my initials
  2. VM - virtual machine; I was initially worried about labeling EC2 instances
  3. IO - input/ouput, also a comain top level domain for tech companies

Eventually the set of characters become a moniker that I use frequently across the internet and across all of my various projects. I combine both my passions for art/design/music with my software engineer skills. From a creative perspective, my projects fall under the category of digital brutalism. From an engineering perspective, I build modern applications and use various tools to help me deploy and manage my projects in the cloud.

Below you'll find the true README instructions for my personal website ppvm.io

I hope you enjoy!

README

Local

Raw Execution

Note: this app uses dep which has been deprecated.

  1. Clone the project into $GOPATH/src. Then run
dep ensure
  1. Then run the following command and it should magically work!
go run app.go

Docker Container

  1. To build the container
docker build -t <name of container> .
  1. You'll need to mount the aws folder into the container and pass an environment variable to load from the default aws config directory.
docker run -p 3000:3000 -v $HOME/.aws:/root/.aws -e AWS_SDK_LOAD_CONFIG=1 <name of container>

Build & Deploy

Docker Hub

Link to docker image

Note: dockerhub no longer supports automated docker builds on pushes to github. To build a new image

docker build -t ppdocx/ppvmio:<VERSION TAG> .

and to push

docker push ppdocx/ppvmio:<VERSION TAG>

AWS

To deploy the new tag to the fargate cluster

  1. Navigate to the UI and create a new task revision.
  2. Scroll down to where the image name is and click on it
  3. Edit the image to have the proper tag and click Update
  4. Click Create
  5. Go back to the cluster and Update the service to have the new revision.

Note: you may have to stop the previous task before the new one will be allowed to run.

To refresh the cloudfront catche run

aws cloudfront create-invalidation --distribution-id E20PNAIG7SWPHU --paths "/*"

Improvements

  • Refactor to be a static frontend web application, too expensive to run as fargate
  • Maybe use something like github actions to automate builds
  • Figure out easy way to deploy new task to service

ppvmio's Projects

spotifydownload icon spotifydownload

A dependency-free Spotify playlist downloader that should just work

swyper-app icon swyper-app

This is the main repository containing code for the Swyper app

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.