Giter VIP home page Giter VIP logo

scalr-docker's Introduction

Scalr Docker

A repository of scripts to use Docker with Scalr.

Usage

We recommend using these scripts with Scalarizr 2.9.31's "Script URI" functionality, which lets you run a script by passing its URL, but you can also copy them as Scalr Scripts.

To use Docker with Scalr, you'll need to create a new Role and add the three following scripts. You'll also need to define a CRANE_FILE_URL Global Variable, as explained below.

Install Docker

Use the script at https://get.docker.io/ to install Docker itself.

Install Crane

We recommend using Crane for deployments. Crane is a lightweight wrapper around Docker, which parses a configuration file and generates the appropriate docker pull and docker run commands

Install Crane with the install-crane.sh script found in this repository.

Note that this script is designed to work on Debian / Ubuntu. Slight changes would be required to make it work on RHEL / CentOS.

Run Crane

Run Crane with the run-crane.sh script found in this repository. You'll need to create a CRANE_FILE_URL and point it to a suitable Crane file for this to work (see below for more information).

The Crane file

The "Crane file" tells Crane how it should run your Docker application. It defines the image Crane should use, the ports that should be exposed, the volumes that should be mounted, etc.

A sample can be found in the examples in this repository. It'll deploy our "3 Tier Webapp".

scalr-docker's People

Contributors

krallin avatar sebastianstadil avatar

Watchers

Doug McIver avatar

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.