From 5829b41bcc98cc96a509ef5a70d49cd616119787 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 19 Aug 2022 21:46:01 +0000 Subject: [PATCH] Add .gitpod.yml --- .gitpod.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..f79fc6f4b --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,41 @@ +github: + prebuilds: + master: true + pullRequests: true + pullRequestsFromForks: true + addCheck: false + addComment: false + addBadge: false + addLabel: false +tasks: + - name: setup + init: | + pushd /workspace + wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba + popd + # bootstrap activation commands for other tasks to reuse + cat < /workspace/bin/activate-env.sh + export MAMBA_ROOT_PREFIX=/workspace/.micromamba + export MAMBA_EXE=/workspace/bin/micromamba + $(/workspace/bin/micromamba shell hook --shell=bash) + export JUPYTER_PREFER_ENV_PATH=1 + micromamba activate + EOT + source /workspace/bin/activate-env.sh + echo "source /workspace/bin/activate-env.sh" >> ~/.bashrc + micromamba install -n base -y -c conda-forge python=3.10 nodejs=14 yarn + python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop + gp sync-done setup + command: | + gp sync-done setup + source /workspace/bin/activate-env.sh + jupyter notebook --no-browser --JupyterNotebookApp.token='' --JupyterNotebookApp.allow_origin=* --JupyterNotebookApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}' + + - name: watch + command: | + gp sync-await setup + source /workspace/bin/activate-env.sh + jlpm watch + +ports: + - port: 8888