mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
5f1ab5ff74
* chore(dockerfile): make docker build multistage The built image is >4GB uncompressed atm, I'm pretty sure there is a lot of cruft. Plan is to split out the django, frontend, plugin-server builds and hopefully get some gains in there to not include build deps. * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix dockerfile lints * cache from branch * add load :true * Update production.Dockerfile Co-authored-by: James Greenhill <fuziontech@gmail.com> * Update production.Dockerfile * update to use compressed size from remote repo * tag with branch and sha * add ref on pull_request events * install python * be a bit more lax with python version * fix image size calc * hardcode lower case image name * use @ * only add sha on master branch, add master tag on master * chore: use docker image in e2e tests This is to try to add some guarantees to the docker image without having to manually test it, so we can be a bit more aggressive with improvements without, e.g. having to push to the playground or run locally. * wip * add to summary * wip * chore: put cypress tests after docker build I couldn't figure out a way to get workflow_run to run without merging in, so I'm just putting after the build. * wip * wip * wip * remove quotes * remove separate cypress install * wip * wip * wip * add gunicorn.config.py * ci: run docker image build on master as well This way we get the caching from the master build. * wip * wip Co-authored-by: James Greenhill <fuziontech@gmail.com>
13 lines
601 B
Bash
Executable File
13 lines
601 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cp node_modules/rrweb/dist/record/rrweb-record.min.js frontend/dist/recorder.js
|
|
cp node_modules/rrweb/dist/record/rrweb-record.min.js.map frontend/dist/recorder.js.map
|
|
sed -i -e s/rrweb-record.min.js.map/recorder.js.map/ frontend/dist/recorder.js
|
|
|
|
cat node_modules/rrweb/dist/plugins/console-record.min.js >> frontend/dist/recorder.js
|
|
cp node_modules/rrweb/dist/plugins/console-record.min.js.map frontend/dist/console-record.min.js.map
|
|
|
|
sed -i -e 's/\/\/\# sourceMappingURL=recorder/window.rrweb = {record: rrwebRecord}\n\/\/# sourceMappingURL=recorder/g' frontend/dist/recorder.js
|