Reproducible build recipes for GHC development VMs?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Ryan Newton
Hi all,

Returning to the topic discussed by Simon M. and others here:


http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html

This is my attempt at a script for bootstrapping a GHC-validating VM:


http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html

Let me know if there's a better way, or if you'd like to help get this kind
of thing into an even more accessible form (Amazon AMI, Chef recipe, etc).

Cheers,
  -Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130821/42b259a9/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Luite Stegeman
We've been using Vagrant and puppet for building GHC HEAD with some patches
and GHCJS on 32 and 64 bit ubuntu. This way, rebuilding the whole VM from
scratch is just one command (vagrant up), the VM can either copy files to
the host, through a shared filesystem, or just use the network to report
results.

I'd be happy to help setting this up for GHC

https://github.com/ghcjs/ghcjs-build


On Wed, Aug 21, 2013 at 4:44 PM, Ryan Newton <rrnewton at gmail.com> wrote:

> Hi all,
>
> Returning to the topic discussed by Simon M. and others here:
>
>
> http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html
>
> This is my attempt at a script for bootstrapping a GHC-validating VM:
>
>
> http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html
>
> Let me know if there's a better way, or if you'd like to help get this
> kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
> etc).
>
> Cheers,
>   -Ryan
>
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130821/74ae5185/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Austin Seipp-4
In reply to this post by Ryan Newton
There has been some talk of some similar stuff in the IRC channel.

This would for example, be fantastic in combination with Vagrant[1], to
immediately provision a machine you can begin working with even on Windows.
Then you could have a GHC development environment up in minutes.

On a related note, I also have some (non public) Ansible playbooks that
will set up a Haskell development environment for Linux, but it's fairly
primitive and doesn't quite set up a working GHC checkout (yet.)

[1]: http://www.vagrantup.com/


On Wed, Aug 21, 2013 at 9:44 AM, Ryan Newton <rrnewton at gmail.com> wrote:

> Hi all,
>
> Returning to the topic discussed by Simon M. and others here:
>
>
> http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html
>
> This is my attempt at a script for bootstrapping a GHC-validating VM:
>
>
> http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html
>
> Let me know if there's a better way, or if you'd like to help get this
> kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
> etc).
>
> Cheers,
>   -Ryan
>
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>
>


--
Regards,
Austin - PGP: 4096R/0x91384671
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130821/661353cd/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Ryan Newton
In reply to this post by Luite Stegeman
Luite,

Neat!  That sounds perfect.  If it can build/install the compiler, then
it's also ready to go for validation of patches.

I've never used vagrant myself but I'll give it a try.  Is this the
absolute easiest thing for people to do?  Or should I just put a (sadly
multi GB) virtual box image on my website?

  -Ryan



On Wed, Aug 21, 2013 at 10:51 AM, Luite Stegeman <stegeman at gmail.com> wrote:

> We've been using Vagrant and puppet for building GHC HEAD with some
> patches and GHCJS on 32 and 64 bit ubuntu. This way, rebuilding the whole
> VM from scratch is just one command (vagrant up), the VM can either copy
> files to the host, through a shared filesystem, or just use the network to
> report results.
>
> I'd be happy to help setting this up for GHC
>
> https://github.com/ghcjs/ghcjs-build
>
>
> On Wed, Aug 21, 2013 at 4:44 PM, Ryan Newton <rrnewton at gmail.com> wrote:
>
>> Hi all,
>>
>> Returning to the topic discussed by Simon M. and others here:
>>
>>
>> http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html
>>
>> This is my attempt at a script for bootstrapping a GHC-validating VM:
>>
>>
>> http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html
>>
>> Let me know if there's a better way, or if you'd like to help get this
>> kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
>> etc).
>>
>> Cheers,
>>   -Ryan
>>
>>
>>
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs at haskell.org
>> http://www.haskell.org/mailman/listinfo/ghc-devs
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130821/55140212/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Luite Stegeman
Vagrant is pretty easy to get up and running, with downloadable installers
for Windows and OS X (install VirtualBox first), and it can be apt-get
installed on ubuntu. Vagrant starts with a base VM image (~300MB I think,
hosted on their servers), and lets you run a script or more elaborate
provisioner to configure it to your needs.

You configure the settings of the VM (networking, cpu's, shared filesystem)
through the Vagrantfile script. Unfortunately there are some
incompatibilities between the scripts of Vagrant 1.0 and 1.2, and I haven't
made the GHCJS scripts backwards compatible with 1.0 yet (Ubuntu 12.04
comes with vagrant 1.0 in the repositories, so it would be nice to support
that out of the box, instead of requiring users to download an updated .deb
package)

A user only has to run `vagrant up' in the directory containing the
Vagrantfile. `vagrant provision` reruns the installation script, and
`vagrant destroy' removes the VM.  `vagrant ssh` (from this directory) logs
into the vm without a password.

luite



On Wed, Aug 21, 2013 at 4:55 PM, Ryan Newton <rrnewton at gmail.com> wrote:

> Luite,
>
> Neat!  That sounds perfect.  If it can build/install the compiler, then
> it's also ready to go for validation of patches.
>
> I've never used vagrant myself but I'll give it a try.  Is this the
> absolute easiest thing for people to do?  Or should I just put a (sadly
> multi GB) virtual box image on my website?
>
>   -Ryan
>
>
>
> On Wed, Aug 21, 2013 at 10:51 AM, Luite Stegeman <stegeman at gmail.com>wrote:
>
>> We've been using Vagrant and puppet for building GHC HEAD with some
>> patches and GHCJS on 32 and 64 bit ubuntu. This way, rebuilding the whole
>> VM from scratch is just one command (vagrant up), the VM can either copy
>> files to the host, through a shared filesystem, or just use the network to
>> report results.
>>
>> I'd be happy to help setting this up for GHC
>>
>> https://github.com/ghcjs/ghcjs-build
>>
>>
>> On Wed, Aug 21, 2013 at 4:44 PM, Ryan Newton <rrnewton at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Returning to the topic discussed by Simon M. and others here:
>>>
>>>
>>> http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html
>>>
>>> This is my attempt at a script for bootstrapping a GHC-validating VM:
>>>
>>>
>>> http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html
>>>
>>> Let me know if there's a better way, or if you'd like to help get this
>>> kind of thing into an even more accessible form (Amazon AMI, Chef recipe,
>>> etc).
>>>
>>> Cheers,
>>>   -Ryan
>>>
>>>
>>>
>>> _______________________________________________
>>> ghc-devs mailing list
>>> ghc-devs at haskell.org
>>> http://www.haskell.org/mailman/listinfo/ghc-devs
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130821/841da56c/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Simon Marlow-7
In reply to this post by Ryan Newton
On 21/08/13 15:44, Ryan Newton wrote:

> Hi all,
>
> Returning to the topic discussed by Simon M. and others here:
>
> http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html
>
> This is my attempt at a script for bootstrapping a GHC-validating VM:
>
> http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html
>
> Let me know if there's a better way, or if you'd like to help get this
> kind of thing into an even more accessible form (Amazon AMI, Chef
> recipe, etc).

I do this occasionally with an Amazon VM.  Incidentally, why did you
download the GHC 7.6.3 tarball rather than apt-get install ghc?  The
current GHC on Ubuntu is 7.4 which is enough to bootstrap GHC HEAD.

Cheers,
        Simon





Reply | Threaded
Open this post in threaded view
|

Reproducible build recipes for GHC development VMs?

Ryan Newton
Oh, good question.  It was Ubuntu 12.04 LTS so I just assumed it would be
too old without checking.



On Thu, Aug 22, 2013 at 3:38 AM, Simon Marlow <marlowsd at gmail.com> wrote:

> On 21/08/13 15:44, Ryan Newton wrote:
>
>> Hi all,
>>
>> Returning to the topic discussed by Simon M. and others here:
>>
>> http://projects.haskell.org/**pipermail/haskell-platform/**
>> 2009-July/000572.html<http://projects.haskell.org/pipermail/haskell-platform/2009-July/000572.html>
>>
>> This is my attempt at a script for bootstrapping a GHC-validating VM:
>>
>> http://parfunk.blogspot.com/**2013/08/zero-to-ghc-**
>> development-in-ubuntu-vm-in.**html<http://parfunk.blogspot.com/2013/08/zero-to-ghc-development-in-ubuntu-vm-in.html>
>>
>> Let me know if there's a better way, or if you'd like to help get this
>> kind of thing into an even more accessible form (Amazon AMI, Chef
>> recipe, etc).
>>
>
> I do this occasionally with an Amazon VM.  Incidentally, why did you
> download the GHC 7.6.3 tarball rather than apt-get install ghc?  The
> current GHC on Ubuntu is 7.4 which is enough to bootstrap GHC HEAD.
>
> Cheers,
>         Simon
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130822/09bfc698/attachment.htm>