Skip to content

Commit

Permalink
Merge pull request #6518 from jtpio/gitpod
Browse files Browse the repository at this point in the history
Add Gitpod files
  • Loading branch information
jtpio committed Aug 23, 2022
2 parents ef403e7 + 5829b41 commit c559e27
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .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 <<EOT > /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

0 comments on commit c559e27

Please sign in to comment.