Deploying modern web apps (apt vs pip/rvm)
Mark Mims
mark.mims at canonical.com
Fri Jan 25 19:40:36 UTC 2013
We've been working hard to improve this very problem on Ubuntu Server.
Take a look at juju (juju.ubuntu.com) which lets you manage your
application stacks consistently. In particular, take a look at
jujucharms.com/charms/precise/rails,
jujucharms.com/charms/precise/node-app, and
jujucharms.com/charms/precise/python-django.
On Wed, Jan 16, 2013 at 09:28:41AM +0800, Adon Metcalfe wrote:
> Hi Ahmed,
>
> We are similar, we run ubuntu, and use pip, npm, rvm as alternate package
> managers. We basically decide if the project is stable/changes less than
> quarterly, use the apt-get package, otherwise use whatever package manager
> for the language you're using as they will almost always be more up to
> date. To ensure consistency between environments, all servers have a base
> set of pip/npm/rvm packages that are managed just like apt packages (i.e.
> when we run upgrades we do them as well for the system), and everything
> else is managed in isolated containers per application. This means we can
> pick up an app from any of our app servers and it will run on any other
> one, but also lets apps run newer/different versions of packages if
> required. Virtualenv's/node local packages are very useful for sorting this
> out (we have a lot less ruby than python/js so the one app now just uses
> system packages).
>
> Kind Regards,
> Adon
>
>
> On Wed, Jan 16, 2013 at 1:37 AM, Ahmed Kamal <kim0 at ubuntu.com> wrote:
>
> > Hi there,
> >
> > We're building (and deploying) a large scale app (python+rails+mongodb)
> > and others. Now developers are running rampant install python dependencies
> > from pip, and ruby stuff with rvm...etc. Some of the packages needed, are
> > in apt repos, some are older versions, and some are not there at all.
> >
> > Now I'd like to pick the pool of expertise here:
> > - Where do we draw the line, between using OS packages vs pip/rvm
> > - How do we best ensure same environment on dev env, vs production env
> > - What are the best practices here
> >
> > Thanks for sharing
> >
> > --
> > ubuntu-server mailing list
> > ubuntu-server at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> > More info: https://wiki.ubuntu.com/ServerTeam
> >
>
>
>
> --
> Regards,
>
> Adon Metcalfe
> --
> ubuntu-server mailing list
> ubuntu-server at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
--
Mark Mims, Ph.D.
Ubuntu Server Team
Canonical Ltd.
mark.mims at canonical.com
+1(512)981-6467
More information about the ubuntu-server
mailing list