incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Om <bigosma...@gmail.com>
Subject Re: updating ApacheFlexSDK URL in Om's installer
Date Thu, 26 Jul 2012 19:28:01 GMT
On Jul 26, 2012 8:53 AM, "Nicholas Kwiatkowski" <nicholas@spoon.as> wrote:
>
> Om, et. all,
>
> I'm set to work on getting something like this to work this evening.  I've
> got a custom CGI script that will make the entire "select a mirror" thing
> easier, but I needs some debugging (I'm waiting for log files).  I will
> make sure we have something in place for this.
>
> Is something as simple as just returning the URL to the download enough?

Thanks Nick.

Thinking about this more, I think a generic service that takes in the path
of the required binary file (ex.
/incubator/flex/4.8.0-incubating/binaries/apache-flex-sdk-4.8.0-incubating-bin.zip
) , and returns a fully qualified  url of the preferred mirror site would
be the perfect solution.

We can add this service's url to the config xml.  The installer app will
first make a call to this service to get the correct mirror url.

Also, if we end up hosting the installer binary in the same way as other
Apache binaries, the badge swf (that lets you download the installer) can
use the same service to resolve the preferred mirror to download the
installer binary from.
Furthermore, I guess such a service would benefit other Apache projects as
well.

Thanks,
Om

>  We can't use the CMS as suggested because it will automatically add in
the
> header / footer/ etc. which will need to be parsed out.
>
> -Nick
>
> On Wed, Jul 25, 2012 at 10:53 PM, Om <bigosmallm@gmail.com> wrote:
>
> > Erik,
> >
> > This is the closest we have come in terms of a solution to this problem
> > :-)  Lets try to figure out a way to implement and test this.
> >
> > If you don't mind, can you please post this approach on
> > infrastructure-dev@apache.org and see if there are any objections?
> >
> > Nick, do you think you can implement this on the server?  The steps
seem to
> > be relatively straightforward.   If needed, I can try to get access and
try
> > it out.
> >
> > Thanks,
> > Om
> > On Jul 25, 2012 3:37 PM, "Erik de Bruin" <erik@ixsoftware.nl> wrote:
> >
> > > Hi,
> > >
> > > I think I have the solution figured out, but I have no way of testing
it.
> > >
> > > I'm posting my findings ("steps to reproduce" ;-)) here and attaching
> > > my patches to FLEX-33106, for lack of a better 'location'. Here goes:
> > >
> > > 1. Create 'single-mirror-url.cgi' in the root of the site (i.e.
> > > http://incubator.apache.org/flex/single-mirror-url.cgi) with these
> > > three lines:
> > >
> > > #!/bin/sh
> > > # Wrapper around the standard mirrors.cgi script
> > > exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*
> > >
> > > 2. Create 'single-mirror-url.html' (.mdtext?) next to the .cgi from
> > > step 1., with only this line:
> > >
> > > [preferred]
> > >
> > > 3. Set CGI script permissions to executable
> > >
> > > % chmod a+x single-mirror-url.cgi
> > >
> > > 4. In 'ApacheFlexConfig.xml', change the 'path' attribute of the
> > > 'ApacheFlexSDK' node to "/incubator/flex/4.8.0-incubating/binaries/"
> > > and the 'file' attribute to
> > > "apache-flex-sdk-4.8.0-incubating-bin.zip". Note: the application
> > > (when patched) will take care of the addition of the mirror domain to
> > > complete the URL.
> > >
> > > 5. Apply patches to InstallApacheFlex source
> > >
> > >     InstallApacheFlex.txt for InstallApacheFlex.mxml
> > >     ViewResourceConstants.txt for ViewResourceConstants.as
> > >     RuntimeLocale.txt for RuntimeLocale.as
> > >
> > > HTH and that I understood the rules and regulations for patching etc.
> > > correctly (if not, please tell me and I'll behave better next time),
> > >
> > > Regards,
> > >
> > > EdB
> > >
> > >
> > >
> > > On Wed, Jul 25, 2012 at 7:36 PM, Om <bigosmallm@gmail.com> wrote:
> > > > On Wed, Jul 25, 2012 at 10:02 AM, Erik de Bruin <erik@ixsoftware.nl>
> > > wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> I might be able to help with this. Can you host PHP (which is the
> > > >> language I'm most familiar with)?
> > > >>
> > > >> I can call the 'closer-cgi' (whatever that is, I'd have to read up
a
> > > >> bit on the intended functionality) from PHP and return the config
XML.
> > > >>
> > > >> I can create a patch for the app as well, allowing it to handle the
> > > >> call to the web service instead of reading the config XML from
local
> > > >> system.
> > > >>
> > > >> EdB
> > > >>
> > > >
> > > > Erik,
> > > >
> > > > That would be awesome!  Here is some documentation regarding this:
> > > > http://www.apache.org/dev/mirrors.html
> > > > http://www.apache.org/dev/release-download-pages.html
> > > >
> > > > Here is config file that the installer app loads:
> > > >
> > >
> >
http://people.apache.org/~bigosmallm/installapacheflex/ApacheFlexConfig.xml
> > > >
> > > > In this xml, the element: <file name="ApacheFlexSDK" path="
> > > >
> > >
> >
http://people.apache.org/~cframpton/ApacheFlexRC/release_candidate_3/binaries/
> > > "
> > > > file="apache-flex-sdk-4.8.0-incubating-bin.zip"/>
> > > >
> > > > needs to updated dynamically with the 'preferred mirror' url from
the
> > > > closer.cgi script.
> > > >
> > > > I hope this info is sufficient for you to start.  You might want to
> > jump
> > > on
> > > > to infrastructure-dev@apache.org (public list) if you need expert
> > > advice.
> > > >
> > > > Thanks for volunteering :-)
> > > >
> > > > Om
> > >
> > >
> > >
> > > --
> > > Ix Multimedia Software
> > >
> > > Jan Luykenstraat 27
> > > 3521 VB Utrecht
> > >
> > > T. 06-51952295
> > > I. www.ixsoftware.nl
> > >
> > >
> > >
> > > P.S. I would like everybody to know that as of this morning I broke my
> > > personal record for days lived.
> > >
> >

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message