0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/.github/workflows
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
..
automerge.yml
benchmark.yml Simplify cohort filters (#6277) 2021-10-08 10:51:11 +03:00
ci-backend.yml Solve weird CI cache issue 2021-11-03 11:33:16 +02:00
ci-frontend.yml fix jest tests action (#6986) 2021-11-09 15:00:54 +00:00
codespaces.yml Reimplement codespaces support (#7234) 2021-11-23 08:34:51 +00:00
cypress-component.yml Plugin server tests CI (#6897) 2021-11-04 15:03:28 -07:00
docker-image-publish.yml GH actions for FOSS (#6645) 2021-10-25 14:59:31 -07:00
docker-image-test.yml Split Dockerfile lint to dedicated GH action (#6468) 2021-10-18 12:51:46 +00:00
docker-release-image-publish.yml Build FOSS release to Docker Hub (#6584) 2021-10-21 07:49:25 -07:00
docker-unstable-image.yml GH actions for FOSS (#6645) 2021-10-25 14:59:31 -07:00
dockerfile-lint.yml Split Dockerfile lint to dedicated GH action (#6468) 2021-10-18 12:51:46 +00:00
e2e_matrix.json Disable Cypress parallelization on forks (#6792) 2021-11-03 11:41:37 +00:00
e2e.yml Remove BackTo (#7238) 2021-11-22 10:48:00 +01:00
foss-release-image-publish.yml Build FOSS release to Docker Hub (#6584) 2021-10-21 07:49:25 -07:00
foss-sync.yml GH actions for FOSS (#6645) 2021-10-25 14:59:31 -07:00
new-pr.yml
plugin-server-ci.yml Use monorepo plugin server (#6784) 2021-11-13 11:52:00 -08:00
prod-container.yml GH actions for FOSS (#6645) 2021-10-25 14:59:31 -07:00
stale.yaml
storybook-chromatic.yml Disable Cypress parallelization on forks (#6792) 2021-11-03 11:41:37 +00:00
storybook-deploy.yml GH actions for FOSS (#6645) 2021-10-25 14:59:31 -07:00