* Fix Docker build:
- get correct Image ID from the build.
- set docker tag correctly supporting tag and digest
- add concurrency limit to github action ci jobs
* TMP: remove easy way to get build digest as it is not really intended for local dev
* Update .circleci/config.yml
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* TMP: recomment build
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* Infer superuser credentials from git config
* Load service data via portable and persistent data volumes
Load storage via persistent data volume (host bound)
Make up/down commands to easily recreate local environments
* TMP: add redis volume too
* TMP: better control over volume state
* TMP: remove dead code
* TMP: more dead code gone
* TMP: add wait for mysql before restoring snapshots
* Generate version.json as part of docker build:
- remove git dependency from version.json generation
- use only version.json file for sentry release with soft/hard fail
* TMP: remove invalid comment
* TMP: Prefix branch tags
* TMP: re-comment the ci build in circle
* local docker build command
* Move copy . to after installing packages (prevents always re-installing)
* Enable buildkit cache mount to cache pip/npm dependencies
- cache npm/pip dependencies across builds
- add clear logging to npm install for cache hit/miss
- move copy npm files to update_assets
* Split build into stages
- splitting to stages offers better caching of layers and more efficient use of disk/time
- The initial gains will be with better caching of locale compilation, but will expand as we can move more logic from the final stage
TODO: split up apt depedencies to specific stages, move update_assets to pre-final stage to prevent re-running on every build with a * file change.
* Document the docker file and build process
* update docs
Fixes#8597
This should make our CI and docker builds a bit faster. Next step would be to automate syncing product details as part of our l10n process. #8779 takes care of that.
Trying to fake our way in doesn't work because when formatting later
we'll need the locale data, which Babel will fail to load. We could
load data preventively... but then we might as well just return the
english Locale directly.
We now have something like that:
- /
-- src/
--------- olympia/
-------------- {access,accounts,amo,addons,...}
-------------- wsgi.py
-------------- urls.py
-------------- migrations/
-------------- libs/
...
Which generally feels more django-like again and makes porting
our sys.path hacks to django 1.7 and it's app-refactoring
a lot easier.
* Update setup.py to bring it to a more modern format
* Update gitignore
Last move was unfinished
Added .idea folder to gitignore
Prevent adding of jetbrains IDEs configs
Added a forgotten semi-colon
Maybe something to do to declare globally undefined variable format
Not needed comma
Unused variable
Unused variable
Unused params
Could be confusing
Unused params
Could be confusing
JShint validation
JSON dot notation
+
Strict compare between integers
+
Missing semi-colon
+
Unused variables
+
Unused params
Fixing migration from config.json to .jshintrc
Last move was unfinished
Added .idea folder to gitignore
Prevent adding of jetbrains IDEs configs
Added a forgotten semi-colon
Maybe something to do to declare globally undefined variable format
Not needed comma
Unused variable
Unused variable
Unused params
Could be confusing
Unused params
Could be confusing