0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00
Commit Graph

16 Commits

Author SHA1 Message Date
Sandy Spicer
23a789d9fe
chore: upgrade python to 3.11 🐍 (#22932)
🐍
2024-06-21 16:45:42 +00:00
Vladislav Supalov
f643ef32d0
chore(dev): Pin devcontainer pnpm version (#22023)
* fix: pin pnpm version

* fix: use corepack for correct pnpm version

---------

Co-authored-by: Vladislav Supalov <mail@vsupalov.com>
2024-05-03 13:31:41 +02:00
Harry Waye
7b86fae6b0
chore(codespaces): add deps for running bin/start, plus GH cli (#15067)
Need brotli and netcat for it to work.

Also, install the GH client to make creating prs from the command line
easier.
2023-04-13 09:58:46 +00:00
Paul D'Ambra
eb04734131
chore(ci): try and successfully install pnpm in the code spaces build (#14832) 2023-03-20 21:27:19 +00:00
Harry Waye
01da91d1e2
test: remove explicit dependencies from functional tests (#14471)
* test: remove explicit dependencies from functional tests

* Install pnpm in devcontainer
2023-03-01 12:03:54 +00:00
Harry Waye
3c962ecb14
dev(codespaces): update to python3.10 (#14449)
Was updated elsewhere, but not here. Some people are reporting issues
with not being able to run the app with Python3.10 so I wanted to make
sure I could!
2023-02-28 15:48:18 +00:00
Guido Iaquinti
9acbb57623
chore(NodeJS): use Node.js v18 (#12650) 2022-12-12 15:02:33 +01:00
Harry Waye
a70b4b28c6
chore(web): add django-prometheus exposed on /_metrics (#11000)
* chore(web): add django-prometheus exposed on /_metrics

This exposes a number of metrics, see
97d5748664/documentation/exports.md
for details. It includes histogram of timings by viewname before and
after middleware.

I'm not particularly interested in these right now, but rather would
like to expose Kafka Producer metrics as per
https://github.com/PostHog/posthog/pull/10997

* Refactor to use gunicorn server hooks

* also add expose to dockerfile

* wip
2022-07-27 20:37:44 +01:00
Harry Waye
328534b9fd
chore(codespaces): add env vars for running codespaces dev (#10923)
* chore(codespaces): add env vars for running codespaces dev

These will be used by vscode and any terminals spawned

* Use default python interpreter

* chore(codespaces): add env vars for running codespaces dev

These will be used by vscode and any terminals spawned

* Use default python interpreter

* add kafka to hosts

* fix hosts

* add to hosts on docker run

* keep python path

* wip
2022-07-25 15:21:00 +01:00
Guido Iaquinti
cda6b83148
chore(Dockerfile): remove dev.Dockerfile (#10529) 2022-06-28 13:50:57 +02:00
Harry Waye
8dad49d75f
chore(codespaces): use Dockerfile not docker-compose (#9659)
* dev(codespaces): use Dockerfile not docker-compose

I wasn't so confident around the updating of the docker-compose file to
include minio, and the workflow around it. I'd rather just drop into
something with docker-in-docker and run docker-compose myself.

Also finally added some extensions I'm using so I don't need to enable
them all the time.

TODO: update docker-compose file to work with docker-in-docker. At the
moment I don't think the networking will be correct.

* Merge remote-tracking branch 'origin/master' into hackaton_session_rec

* add new line

* remove yarn install, it will be overwritten by the codespaces mount

* revert compose formatting

* format with prettier
2022-05-05 14:05:56 +00:00
Harry Waye
2e9a3954bb
ci(codespaces): install node 16 in codespaces image (#9030)
We've updated node elsewhere and increased the requirements, so we need
to also update in codespaces.
2022-03-15 12:24:39 +00:00
Paolo D'Amico
655c1ce9a4
refactor(enteprise): Removes conditional SAML dependencies (#8952) 2022-03-10 07:14:30 -06:00
Harry Waye
aafad724ea
fix(codespaces): only pin versions to major versions (#8318)
* fix: don't pin docker.io, avoid package install issues

* pin to major versions
2022-01-28 11:23:17 +00:00
Paolo D'Amico
c1af8f377f
Fix codespaces build (#7587) 2021-12-08 15:21:28 -07:00
Harry Waye
71fa440394
Reimplement codespaces support (#7234)
* dev(codespaces): add "lean in" docker configuration for codespaces

This changes creates a dedicated `docker-compose.yml` and `Dockerfile`
for codespaces and doesn't attempt to have compatability with the
existing docker config files. This is intentional and is designed to be
a close to what codespaces would consider the ideal, so as to understand
what great would look like.

At the moment it doesn't do, but could:

 1. install python and node packages in the image
 2. push this image up to dockerhub
 3. specify this image to be used for caching. There is a "cacheFrom"
    option in the [.devcontainer
    reference](https://code.visualstudio.com/docs/remote/devcontainerjson-reference)
    although I haven't checked how this works with using
    `docker-compose.yml`. Perhaps we just need to add the `image:`
    property to the `app` service :fingerscrossed:
 4. specify default extensions and settings to be used.

* Use python 3.9, not the latest python 3 codespaces supports

* Add some basic python default settings and extensions

* add github codespaces image build workflow

* chore: update docker-compose cache from :cache tag

* chore: use docker cache-to inline

* add codespaces platform comment

* temp run on branch

* chore: fix flatforms format

* chore: update qemu comment

* chore: codespaces build use master image

* chore: target x86_64

* chore: just use image for codespaces, don't try to build

* add in python, node requirements

* install node

* install node

* uncomment node deps install

* use app network stack for all services

* move .env to .dev.env and us in docker-compose

* set WORKDIR to workspace

* pin apt packages

* pin versions, remove apt-key

* add yarn cache clean

* Fix hadolint warnings

* make codespace build on master, or a PR with codespaces-build label

* add missing &&

* dont bother with clickhouse install, its huge

* dont be cute with the networks, just expose explicitly

* fix network

* create container zsh

* correct .env path

* point app to the clickhouse container

* Also install saml deps

* ignore .env again

* libxml already installed

* correct conditional workflow comment
2021-11-23 08:34:51 +00:00