Граф коммитов

43 Коммитов

Автор SHA1 Сообщение Дата
Danny Coates 8bb2cc910f
Merge pull request #10558 from mozilla/rmrfmf
feat(services): remove fxa-auth-db-mysql, fxa-email-event-proxy, and fxa-email-service
2022-01-13 17:07:48 -08:00
Danny Coates 50e124b518
feat(services): remove fxa-auth-db-mysql, fxa-email-event-proxy, and fxa-email-service
and fxa-metrics-processor
2022-01-13 16:23:22 -08:00
Danny Coates 89850b99e6
chore(deps): update docker images to node 16 2022-01-13 10:37:48 -08:00
Danny Coates dfb1cd9517
feat(event-broker): wire up events from auth-server through event-broker to webhooks in local dev 2021-12-15 16:00:50 -08:00
jackyzy823 0c8cc56c36
chore(dev): update dev docker-compose mysql server to 5.7 (#11173)
Because:

* db-migrations script failed to work on mysql 5.6

This commit:

* update mysql server to 5.7

issue #10526
2021-12-13 12:28:58 -08:00
Danny Coates 1ea7fdd312
chore(dev): wait for containers on 'yarn start' (#11119)
On M1 we currently sometimes need to 'yarn restart services' after a 'yarn start' before things start working. Maybe if we wait for the containers to be responsive before starting services we can avoid this. The important one seems to be mysql.
2021-11-22 16:58:30 -08:00
Danny Coates 60ca05cb81
chore(deps): update typescript to 4.5.2
* refactor(ts): use builtin Awaited type

* maybe make tests more stable
2021-11-18 23:25:28 -08:00
Danny Coates aa1dc5b026
revert(node): revert CI and Docker images to node 14
Test stability has dropped with the change to node 16. Until we can resolve it we're reverting to 14. Local dev will continue on 16 in order to be able to fix the problems.
2021-11-01 13:50:43 -07:00
Danny Coates 9eaa80e1d6
chore(ci): update circleci with new base images (#10818)
As part of updating to node v16 we found the "normal" upgrade path for mozilla/fxa-circleci to be problematic.

CircleCI has also changed their recommended base image to be cimg/node.

Our mozilla/fxa-circleci image has shrunk over time to now be a thin wrapper over circleci/node that adds firefox esr. Instead of maintaining our own image the recommended circleci/browser-tools orb can take care of firefox version for us.
2021-10-26 09:00:06 -07:00
Danny Coates 17e06a38d2
chore(node): upgrade to node 16 (#10799) 2021-10-22 16:10:22 -07:00
Danny Coates 45a399e8cf
feat(dev): add firebase emulator ui visit http://localhost:9299 2021-10-15 16:48:06 -07:00
Danny Coates 6ab822f7af
feat(auth): enable nodemailer SES transport (#10532)
The nodemailer SES transport will replace fxa-email-service.

The AWS config is set by the environment and is used when no SMTP user:password are set.
2021-09-29 12:38:20 -07:00
yogita aaa8f1da23
feat(fxa-auth-server): Setup CSS solution for emails 2021-07-16 21:38:25 +05:30
Josef Weldemariam 1e5952aa1f
fix long device name layout issue
Before, a long device name in the "disconect from
Sync" confirmation panel caused an overflow.
This commit fix that.
2021-05-31 23:35:11 +02:00
Danny Coates 781b5d5e9a
Merge pull request #8202 from eNote-GmbH/bugfix/docker-image-contents
[docker] Include the ping command
2021-04-08 15:15:16 -07:00
Michael Kane Juncker 6a348d23a2
[_dev] Include package for 'ping' command - refs #7539 2021-04-08 13:28:12 +02:00
Jared Hirsch 56333f19d9
fix(ci): The docker image should get pip from apt, not easy_install 2021-04-07 11:57:43 -07:00
Jared Hirsch 3af5adb05a
fix(ci): use the latest version of Firefox ESR in browser testing 2021-04-07 11:02:20 -07:00
Danny Coates f4dc15a81d
refactor(auth): use direct db connection for reads
see #7652 and #7832
2021-04-06 10:29:49 -07:00
Michael Kane Juncker 67b6c486ed
Add documentation for docker build-time environment variables 2021-01-08 11:06:01 +01:00
Danny Coates 6c2b253c11
chore(deps): update node version to 14 2020-10-27 10:21:05 -07:00
Vijay Budhram e477435b18
chore(test): Remove custom firefox build fore pairing 2020-10-09 12:08:13 -04:00
Danny Coates bfee9b658f
chore(docker): added /app/version.json to fxa-mono 2020-09-17 11:16:04 -07:00
Danny Coates 6e9d4eaea5
refactor(profile): replaced graphicsmagick with sharp
because I'm tired of the extra hoops to maintain gm
2020-09-16 13:59:51 -07:00
Jody Heavener 3f4e292bc0
fix(config): disable incremental compilation in base ts config
Because:

- Because it's in the base config shared across all tsconfigs in the repo, the incremental property is clashing with other properties, which is leading to failures in circle ci

This commit:

- Removes it. Ben said it's okay to disable for now.
2020-09-02 11:41:19 -04:00
Ben Bangert 553bb238df
feat(event-broker): migrate to NestJS
Because:

* We are using NestJS for application architecture on new projects.

This commit:

* Moves the event-broker to a NestJS architecture.

Closes #6238
2020-08-31 12:59:54 -07:00
Danny Coates 2742c1d07a
feat(docker): publish fxa-mono docker image
because we want to transition from an image per service to one image for all services
2020-08-28 10:10:14 -07:00
Danny Coates 3266e312db
fix(edge): fxa failed on Edge
because the preset-env didn't transpile various spread (...) operations

this adds all the preset-env config required to transform for Edge. interestingly, setting the target version for edge is not enough to transform them properly and seems like a bug in the loader.
2020-07-29 17:53:56 -07:00
Danny Coates f6aff29419
fix(docker): added openssl to fxa-node docker image. fixes #5669 2020-06-25 16:02:15 -07:00
Jared Hirsch 20a0acf8b0
chore(docs): Replace 'master' with 'main' throughout
Certain references to 'master' haven't been removed yet, see
issue #5698, issue #5699, issue #5700 for more complex followups.
2020-06-25 13:44:28 -07:00
Jody Heavener e6fafda68b
feat(storybook): allow Tailwind scss compilation support
Because:

* Currently fxa-settings imports SCSS into a Tailwind file, but outside of Create React App (which handles SCSS compilation in the React app itself) SCSS is not compiled.

This commit:

* Updates both Tailwind and Storybook's setup so that you can now compile down to CSS or SCSS depending on your needs, and ensure Storybook's SCSS loader picks it up
2020-06-08 09:57:09 -04:00
Lauren Zugai d22db34b48
style(settings): UnitRow, UnitRowWithAvatar, & Modal styles + Storybook, allow postcss imports
Because:
* Now that Tailwind is configured, we can style existing Settings components and the current layout.

This commit:
* Changes UnitRowWithImage to UnitRowWithAvatar because we likely will not reuse it
* Styles Modal, UnitRow, and UnitRowWithAvatar across mobile, tablet, & desktop
* Adds Modal, UnitRow, and UnitRowWithAvatar to Storybook
* Adds postcss-import and sets a convention for shared class styles with Tailwind with ctas.scss, UnitRow.scss, and .link-blue
* Modifies the shared close.svg

fixes #5394
2020-06-02 16:57:20 -05:00
Danny Coates 21fe09b720
fix(build): fix paths to fxa-shared
fxa-shared is a mix of typescript and javascript. When we started using workspace:* references I converted all of our require paths for fxa-shared to remove the ../../ relative paths. In doing so I also changed some requires that looked like require('fxa-shared').l10n.localizeTimestamps to require('fxa-shared/l10n/localizeTimestamps'). The problem with that isn't immediately clear because in local development and CI it works fine because of ts-node/register. The problem is that localizeTimestamps is typescript and production doesn't use ts-node so it has no idea how to load it. Going through the object chain on require('fxa-shared') works because 'fxa-shared' resolves to the compiled 'dist/index.js'. The other way resolves to the source directory where there is no js file. Ok, so we should always do require('fxa-shared').whatever, well, no. There's currently cases where we have to go the other way. It's inconsistent, and we should fix it.

This commit fixes those require paths.

It also fixes a runtime path issue with our docker images. Our current production configuration expects each app to be located at /app, but now after switching to yarn most of our dependencies live two directories up from the app code, and the way that our internal dependencies, like fxa-shared, are accessed is via a relative symlink setup by yarn. So there's not room for these paths without changes. Instead of copying things like before, this change creates a root /fxa directory with the whole project and creates a symlink to /app for whichever service it's for.
2020-05-28 19:07:52 -07:00
Danny Coates e565285b7e
refactor(tsconfig): consolidate common tsconfig options
To reduce duplication and encourage consistency in our
typescript builds this extracts most of the options
into two base configs, one for node and one for browsers.

Also, in order to better utilize workspaces the require
paths to fxa-shared and fxa-react were updated throughout.
2020-05-26 12:18:51 -07:00
Danny Coates cc595fc2b4
chore(format): mass reformat with prettier 2 and single config 2020-05-24 10:51:57 -07:00
Jody Heavener 9e1104c05e
refactor(lint-staged): replace sass-lint with stylelint
remove sass-lint from all packages
2020-05-21 21:25:48 -04:00
Danny Coates 81575019a9
refactor(packages): use workspace references 2020-05-21 10:57:21 -07:00
Danny Coates 0725d8ee4f
fix(docker): add graphicsmagick to base node image
fixes #5194
2020-05-04 10:18:46 -07:00
Danny Coates b88a0e2cff
refactor(fxa-circleci): moved fxa-circleci image source
Including fxa-circleci in the /packages folder was awkward
since it isn't part of the deployment and needed some special
handling in the test/build process.

This attempts to make that better.
2020-04-30 17:04:51 -07:00
Danny Coates 4dd0b00076
feat(build): add a default dockerfile template to build.sh
This reduces the boilerplate when all your package
needs is to copy the contents of it's own directory to /app
and a pm2.config.js file exists

To allow more packages to use the default, /fxa-geodb and
/fxa-shared are included in the fxa-node base image.

Custom images can still be made by having a Dockerfile as before.
2020-04-23 07:40:31 -07:00
Danny Coates d4da8a3606
feat(docker): created fxa-builder docker image
This adds a base node image and builder image so
that all our service images can share the same
common base, be smaller, and require less customization.
2020-04-22 16:27:22 -07:00
Danny Coates 3a054dfc3f
refactor(pm2): restructure our pm2 configs
why: several reasons...

- to have a unified approach and pattern for:
  - debugging
  - fs watching for local dev
  - running services in dev
  - configuring services in dev

- to improve the initial clone and subsequent `npm ci` experience
- to make future work on tooling easier
2020-04-14 14:38:38 -07:00
Danny Coates a4b3996349
refactor(npm-scripts): refactored npm scripts for better ergonomics
1. renamed _scripts/*.sh to use kebab-case
2. linted _scripts with shellcheck
3. added _dev directory and moved pm2 json files there
4. added nps and package-scripts.js
  - this allows us to do nice things like: `npm start debug firefox`
  - I'd like to expand this further but it's a start
5. refactored the install scripts to make `npm install` nicer
6. renamed pm2 process names for easier control
  - can use `pm2 logs auth` instead of the id
2020-04-13 16:17:36 -07:00