Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mose/imgdeployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental AWS deployer

This is merely a playground. Unfinished, imperfect, sloppy code. For educational purpose only.

It gets aws credentials and create a t2.micro instance with an image of wordpress from Bitnami (while recommended vm size is actually m3.medium), using ruby aws-sdk (api v3).

Install

Get the code and

git clone https://github.com/mose/imgdeployer.git
cd imgdeployer/
bundle install

Then launch it

rackup

or in dev with a reload at each code change

shotgun

Run in docker

git clone https://github.com/mose/imgdeployer.git
cd imgdeployer/
docker build -t mose/imgdeployer .
docker run -d -v "$PWD:/src" -p 9393:9393 mose/imgdeployer:latest -o 0.0.0.0
open http://localhost:9393

So what now?

Various improvements could be done:

  • write some damn tests
  • add a timer on operations
  • add a way to display admin password directly, as the bitnami method requires to log in aws console (but it's quite well described in the wordpress template click on bottom right)
  • get this working with vue.js or react rather than just jQuery
  • show more metadata information about the created VM
  • display some random cat pictures slideshow while it's initializing, so the user can get some love
  • keep an audit log of operations
  • persist user creds somehow

Copyright

Copyright (c) mose
Released under MIT license

About

A small sinatra app to deploy images of web apps on aws (well, wordpress, actually).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published