Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/z0mbix/deploygif-infrastructure

Code for managing the deploygif infrastructure
https://github.com/z0mbix/deploygif-infrastructure

Last synced: about 1 month ago
JSON representation

Code for managing the deploygif infrastructure

Awesome Lists containing this project

README

        

Deploygif Infrastructure
========================

## About

This repository contains the code to manage the [deploygif.com](deploygif.com) website and infrastructure.

[Terraform](https://terraform.io) is used to provision an instance on [Digital Ocean](https://digitalocean.com), and [Chef](https://www.chef.io) then installs and configures all the required services.

## Services

Deploygif is a simple lua application that runs on top of [OpenResty](https://openresty.org/en/). It retrieves a random URL of an animated gif from [redis](http://redis.io). The application code can be found on a separate GitHub repository ([z0mbix/deploygif](https://github.com/z0mbix/deploygif)).

## Testing

There are both ChefSpec and ServerSpec tests that should be run before committing. Make sure to set-up the pre-commit hook.

Unit tests:

$ cd chef
$ chef exec rspec

Integration tests:

To run the tests against an Ubuntu 16.04 vagrant VM run:

$ cd chef
$ chef exec kitchen test

## License

MIT