Closed
Bug 1459667
Opened 8 years ago
Closed 7 years ago
Setup a pushbox dev/stage deployment
Categories
(Cloud Services :: Operations: Miscellaneous, task)
Cloud Services
Operations: Miscellaneous
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pjenvey, Assigned: oremj)
Details
https://github.com/mozilla-services/pushbox
pushbox's a http://rocket.rs based rust web app backed by mysql. Its db migrations are embedded and ran on startup. Its basic deployment will be very similar to megaphone's: https://bugzilla.mozilla.org/show_bug.cgi?id=1450803
Please setup automatic deployments on new latest tags.
(the code in the github repo is currently a lambda function, the rust version temporarily lives over @ https://github.com/mozilla-services/rustbox which will be merged when we're ready for automatic deployments)
Configuration is (mostly) via environment variables, you'll need:
ROCKET_ENV={one of development or dev, staging or stage, production or prod}
ROCKET_DATABASE_URL=mysql://
RUST_BACKTRACE=1 # for now (for development)
ROCKET_FXA_HOST=oauth.stage.mozaws.net
ROCKET_SERVER_TOKEN="Some_FxA-Server_to_Service_token"
| Reporter | ||
Updated•8 years ago
|
Assignee: nobody → oremj
| Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(oremj)
Comment 1•8 years ago
|
||
:oremj Is there any progress we can get on this?
| Assignee | ||
Comment 2•8 years ago
|
||
I can start working on it this week. We need to include version.json for example: https://github.com/mozilla-services/autopush-rs/commit/9dd3f33ec5670b0f262471fe3d982450024a56ee#diff-3254677a7917c6c01f55212f86c57fbf
Flags: needinfo?(oremj) → needinfo?(pjenvey)
| Reporter | ||
Comment 3•8 years ago
|
||
The version.json's been taken care of and the latest pushbox now supports dockerflow style health checks like megaphone does.
:oremj let me know when dev looks good and I'll tag a release for stage
Flags: needinfo?(pjenvey) → needinfo?(oremj)
| Assignee | ||
Comment 4•8 years ago
|
||
jbuck, are the FXA SQS queues ready to go?
Flags: needinfo?(oremj) → needinfo?(jbuckley)
Comment 5•7 years ago
|
||
:oremj now they are
https://sqs.us-east-1.amazonaws.com/927034868273/pushbox-account-change-dev
https://sqs.us-east-1.amazonaws.com/142069644989/pushbox-account-change-stage
https://sqs.us-west-2.amazonaws.com/361527076523/pushbox-account-change-prod
I don't think the dev queue is pointing at the right sns topic, but we can figure that out after
Flags: needinfo?(jbuckley)
Comment 6•7 years ago
|
||
:oremj, :jbuck; What's the status on deploying these servers to stage/production?
If they're deployed, what address can dev use to contact these servers?
Flags: needinfo?(oremj)
Flags: needinfo?(jbuckley)
| Assignee | ||
Comment 7•7 years ago
|
||
The envs will be located at:
https://pushbox-default.dev.mozaws.net/ and
https://pushbox-default.stage.mozaws.net/
I've made pretty good progress, just need to add the SQS queues and it should be ready to go.
Flags: needinfo?(jbuckley)
| Assignee | ||
Comment 8•7 years ago
|
||
https://pushbox-default.dev.mozaws.net/ is now UP.
Flags: needinfo?(oremj)
Comment 9•7 years ago
|
||
:jrgm, I talked to RFK yesterday and we have a plan to get the testing done with SoftVision on time before the Firefox release.
Here's the plan:
1. Point **FxA stage** to **Pushbox dev** (https://pushbox-default.dev.mozaws.net/)
2. Let SoftVision test the functionality. They would use a Firefox profile with FxA stage configured. Testing plan is available from :eoger already.
3. After testing is done clear all data on Pushbox and FxA Stage that is related to Pushbox.
4. SQS queues for account deletions only, so those should not affect the testing in any way.
What do you think?
Flags: needinfo?(jrgm)
Comment 10•7 years ago
|
||
If the stage pushbox were up, I'd prefer to use that. But if needed, we can probably work out something like the above.
Flags: needinfo?(jrgm)
| Assignee | ||
Comment 11•7 years ago
|
||
I can set up stage Monday morning, if that is not too late.
Comment 12•7 years ago
|
||
(In reply to Jeremy Orem [:oremj] from comment #11)
> I can set up stage Monday morning, if that is not too late.
Let's try that! :+1:
| Assignee | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
(In reply to Jeremy Orem [:oremj] from comment #13)
> https://pushbox-default.stage.mozaws.net/ is UP.
Could we please get v0.1.1 deployed in both stage and dev https://github.com/mozilla-services/pushbox/releases/tag/0.1.1 ?
Flags: needinfo?(oremj)
| Assignee | ||
Comment 15•7 years ago
|
||
v0.1.1 has been deployed to stage. Dev is running latest.
Flags: needinfo?(oremj)
| Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•