-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitpod.yml
45 lines (36 loc) · 1.24 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (https://www.gitpod.io/docs/config-gitpod-file).
image:
file: .gitpod.dockerfile
tasks:
- name: main
# build with mamba in cwd (backed-up)
init: |
echo "Building development environment..."
mamba env create --prefix ./.moranpycess-dev
echo "Development environment ready!"
# adjust PS1 + activate dev. env.
# unset JAVA_TOOL_OPTIONS setting to not print unnecessary logs
command: |
conda config --set changeps1 False
conda config --append envs_dirs /workspace/moranpycess/
parse_git_branch() { git branch --show-current ; }
export PS1="\e[1;37m(\$(parse_git_branch)) \e[0;33m\w \e[1;37m$\e[0m "
echo "Activating the environment..."
conda activate ./.moranpycess-dev
echo "Ready to work!"
echo "Remember to switch to a feature branch before starting the development :)"
ports:
- port: 8888
name: JupyterLab
description: Testspace port
visibility: private
onOpen: ignore
- port: 1234
name: JupyterLab
description: Testspace port
visibility: private
onOpen: ignore
vscode:
extensions:
- njpwerner.autodocstring # docstrings for Python