Closed Bug 1150261 Opened 10 years ago Closed 9 years ago

Create a docker container for cross-compiling Firefox for Mac on Linux

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: coop, Assigned: ted)

References

Details

(Whiteboard: [capacity][Q2 2015][docker])

With the move from buildbot to taskcluster imminent, it makes sense to package the libs, headers, and tools needed to cross-compile Firefox for Mac on Linux into its own docker image.
I think catlee and I talked about this in Toronto. We probably can't redistribute the OS X SDK bits that we need for a full build, but if you could provide a base image that has the toolchain and everything configured, and then maybe a script that can be run on an OS X machine to copy the SDK bits to the docker container that would be really useful. That way anyone who wanted to reproduce the environment locally could just pull down the docker container and run the script.
If possible, I'd like to tie this together with Morgan's plans for Firefox containers overall.
Summary: Create and a docker container for cross-compiling Firefox for Mac on Linux → Create a docker container for cross-compiling Firefox for Mac on Linux
(In reply to Chris Cooper [:coop] from comment #0) > With the move from buildbot to taskcluster imminent, it makes sense to > package the libs, headers, and tools needed to cross-compile Firefox for Mac > on Linux into its own docker image. I'm using Ubuntu at the moment for FF builds. Is there a specific distro/version that you expect to need here? If so, I'll use the same so that we can increase our odds of being able to share layers between our containers.
Flags: needinfo?(coop)
I haven't touched this yet, just getting a bug on file to track the quarterly goal. Right now I think there are two ways I can go here: 1) Replicate the build env used by froydnj & mshal in bug 921040 into a container, stripping out the non-distributable bits into tooltool (see comment #1). Looks like some steps may already have been taken to make this easier (https://bugzilla.mozilla.org/show_bug.cgi?id=921040#c131). Not sure what specific base OS was used, but :froydnj references both Ubuntu and Debian in https://bugzilla.mozilla.org/show_bug.cgi?id=921040#c55 2) Replicate the Tor browser cross-compilation environment as documented in https://bugzilla.mozilla.org/show_bug.cgi?id=921040#c109 and https://blog.torproject.org/blog/deterministic-builds-part-two-technical-details which is based on Ubuntu 12.04 In the absence of other constraints imposed by those processes, yes, let's align on Ubuntu.
Flags: needinfo?(coop)
Assignee: coop → nobody
Assignee: nobody → ted
I've been able to use the desktop-build image mostly as-is for the cross-compile, so I think we won't have to create a new image. We can put the toolchain and SDK in tooltool. I did have to undo a couple of the hacks that were put in place to make Linux builds work, so we'll need to fix those in bug 1164617 to share the same image.
Depends on: 1164617
Depends on: 1175651
I can work around bug 1164617, and aside from bug 1175651 I'm able to use the desktop-build container as-is, so I'm just going to call this FIXED.
Status: NEW → RESOLVED
Closed: 9 years ago
No longer depends on: 1164617
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.