Closed Bug 993730 Opened 10 years ago Closed 10 years ago

[tarako] Stand up staging server for offline Marketplace

Categories

(Cloud Services :: Operations: Marketplace, task, P1)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: cvan, Assigned: oremj)

References

Details

I've been using stackato for my prototype. But I'd like to move to something more permanent.

Requirements:

    * node >=0.10.x
    * npm >=1.1.x

Repo:

    https://github.com/mozilla/darjeeling

Build scripts:

    https://github.com/mozilla/darjeeling/blob/master/stackato.yml
    https://github.com/mozilla/darjeeling/blob/master/deploy.sh
Jason: can you help us with this?  The eventual plan is lite.marketplace.firefox.com

This is a tarako blocker and the current schedule is live/tested by Apr 14th.  Let us know if that's a problem.  Marking critical to get attention, feel free to lower after ack.
Assignee: nobody → server-ops-amo
Severity: normal → critical
Component: Consumer Pages → Server Operations: AMO Operations
Flags: needinfo?(jthomas)
Product: Marketplace → mozilla.org
QA Contact: oremj
Version: 1.0 → other
Flags: needinfo?(cvan)
(In reply to Jeremy Orem [:oremj] from comment #2)
> What is this: https://github.com/mozilla/darjeeling/blob/master/deploy.sh#L9

It generates our offline database: https://github.com/mozilla/darjeeling/blob/master/app.js#L38-L79

I will make this a single node script and use promises so know when it's done, so we can continue onto the minification, etc.

Is it possible to write the deploy script in node?

As for the domain, we could have it actually live at https://marketplace.firefox.com/lite/ - that would solve our origin issues so we wouldn't have to have an `iframe` marketplace.firefox.com and do `postMessage` logic to handle installs for apps with bad `installs_allowed_from` values (bug 965964).
Flags: needinfo?(cvan)
Depends on: 993788
https://github.com/mozilla/darjeeling/blob/master/Gruntfile.js#L154

Just run `grunt minify` and you got an offline database + images + appcache + minified assets + src/prod.html.

Let me know if there's anything else I can help with to make this more deployable.
Flags: needinfo?(jthomas)
Assignee: server-ops-amo → oremj
https://github.com/mozilla/darjeeling/pull/4

Also, I do need to run the node process on all of the webservers and proxy from nginx?
Flags: needinfo?(cvan)
Still blocked on docs for static set up. I'll sync up with cvan Monday morning.
https://github.com/mozilla/darjeeling/commit/0f57e5c


Note: when offline, appcache is definitely not working:
    
    http://cl.ly/image/0w0D1S43233N
    
And I think it's this Firefox bug:
    
    https://bugzilla.mozilla.org/show_bug.cgi?id=983871
Flags: needinfo?(cvan)
Also, manifest.appcache is being generated in /src and not into /src/lite. Right now I put a symlink to unblock this however it needs to be generated in the correct location.
Severity: critical → major
Severity: major → normal
Closing this out. Approved by clouserw.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in before you can comment on or make changes to this bug.