Giter VIP home page Giter VIP logo

servicestack.hello's Introduction

ServiceStack on Linux - Docker Image

This repo builds a Docker image that hosts the ServiceStack Hello World example application (extracted from ServiceStack/ServiceStack.Examples) using Linux/Nginx/Mono FastCGI.

This image can be used as, according to need,

  • a proof of concept, used to evaluate Linux based .Net web app hosting
  • a ServeStack dev or qa environment, or
  • a base upon which to build a Docker image for another .Net web app.

How to Use the Image

In your host machine with docker installed, run the image as follows:

vagrant@precise64:~$ sudo docker pull marfarma/servicestack.hello

vagrant@precise64:~$ sudo docker run marfarma/servicestack.hello
 * Starting nginx nginx
   ...done.

In a second terminal running on the same host as above, use the docker ps command to determine the port that nginx is using. In the example below, it's 49181.

vagrant@precise64:~$ sudo docker ps
ID                  IMAGE                                COMMAND                CREATED             STATUS              PORTS
21b021cf47b7        marfarma/servicestack.hello:latest   /var/www/hello/start   27 seconds ago      Up 27 seconds       49181->80
3976891e4e44        shykes/couchdb:2013-05-03            /bin/sh -e /usr/bin/   9 days ago          Up 9 days           49153->5984

To see the service running in the docker container, you would use the port from the ps command and, using your browser, visit:

To stop the server just hit "Control+C" in the first terminal.

Known Issues

The setup largely follows this tutorial, http://jokecamp.wordpress.com/2013/06/30/servicestack-api-with-fastcgi-mono-server-and-nginx-hosted-on-digitalocean/ and also exhibits the same bug:

With every request, even successful requests I see the below message logged in the console. I do not know the source of this but the API should still be working fine and returning results.

Error Failed to process connection. Reason: The object was used after being disposed.

License

MIT

servicestack.hello's People

Contributors

marfarma avatar

Watchers

James Cloos avatar Henry avatar  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.