Code Monkey home page Code Monkey logo

golang-on-dotcloud's Introduction

golang-on-dotcloud

Do you have a Go application that you want to run on dotCloud? If so, you have come to the right place. dotCloud doesn't support Go as a native service, but with this custom service recipe you can still use dotCloud for all of your Go needs.

If we get enough people to use this custom service, and show support for it, we might be able to convince dotCloud to add native support for Go. So let us know if you use it, and if you want dotCloud to offer a native Go service.

Status

This is still very early beta so use with caution, and let us know if you have any issues.

Version

Go v1.1.1

How to use

  1. Clone this repo:

    $  git clone git://github.com/kencochrane/golang-on-dotcloud.git
    
  2. Put your Go source code under the src directory.

  3. Change the dotcloud.yml
    1. Change the build_package config variable, to the name of your Go package
    2. Change the processes so that you can run the correct processes
    3. Add or remove ports depending on your application needs.
  4. Create a dotCloud application:

    $ dotcloud create -f sandbox mygoapp
    
  5. Push your code to your new dotCloud application:

    $ dotcloud push mygoapp .
    
  6. Enjoy!

What to watch out for

  • Make sure you don't push any of your files from your bin directory. You could have issues if you build something locally and push those to dotCloud, since those build environments are most likely not the same, and your binary file will not be able to run.

Helping

All suggestions and pull requests are welcome. If you have an idea or issues, please submit an issue. If you find a bug, or want to contribute, fork the repo, and send a pull request.

Contributors

Ken Cochrane < @KenCochrane >

golang-on-dotcloud's People

Contributors

elithrar avatar kencochrane avatar mkmik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

golang-on-dotcloud's Issues

File structure problem

I believe the file system in this repository is not representative of a good practice go file system. Or at least, not of what my code looks like.

In this project, the src/, pkg/ and bin/ directory are all under version control. Normally, only the code should be under version control and the code is suppose to be in $GOPATH/src/github.com/yourname/yourproject. Such a structure allows easy integration of dependencies.

To make a long story short, I modified the current script to better fit a good practice go file system. The code can be found on bitbucket

The dotcloud.yml installs all the dependencies found in the code, mux in the example, and serve some static files.

Maybe I am doing something totally wrong, so I wanted to have your impression on my script and why you have chosen to put all your file system under version control.

Cheers and many thanks for that script!

didier

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.