Skip to content

Commit f8a3c88

Browse files
committed
bump theia (to 1.58), node (to 22) and nvm (to 0.40.1) versions
1 parent 52c886c commit f8a3c88

File tree

5 files changed

+70
-23
lines changed

5 files changed

+70
-23
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
nvm_install_dir: /opt/nvm
1+
bibigrid_node_version: 22
22

3-
theia_version: "next"
4-
theia_ide_install_dir: /opt/theia-ide
5-
theia_ide_bind_address: localhost
6-
theia_ide_bind_port: 8181
3+
bibigrid_nvm_install_dir: /opt/nvm
4+
bibigrid_nvm_version: v0.40.1
5+
6+
bibigrid_theia_version: 1.58.1
7+
bibigrid_theia_ide_install_dir: /opt/theia-ide
8+
bibigrid_theia_ide_bind_address: localhost
9+
bibigrid_theia_ide_bind_port: 8181

resources/playbook/roles/bibigrid/tasks/900-theia.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939

4040
- name: Install nvm
4141
shell: |
42-
set -o pipefail && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | NVM_DIR={{ nvm_install_dir }} /bin/bash
42+
set -o pipefail && curl -o- https://raw.githubusercontent.com/creationix/nvm/{{ bibigrid_nvm_version }}/install.sh | NVM_DIR={{ bibigrid_nvm_install_dir }} /bin/bash
4343
args:
44-
creates: "{{ nvm_install_dir }}/nvm.sh"
44+
creates: "{{ bibigrid_nvm_install_dir }}/nvm.sh"
4545
executable: bash
4646
tags:
4747
- skip_ansible_lint
4848

49-
- name: Install node 16 and yarn
49+
- name: Install node and yarn
5050
shell: |
51-
source {{ nvm_install_dir }}/nvm.sh
52-
nvm install 16
51+
source {{ bibigrid_nvm_install_dir }}/nvm.sh
52+
nvm install {{ bibigrid_node_version }}
5353
npm install -g yarn
5454
args:
5555
executable: bash
@@ -61,42 +61,42 @@
6161
block:
6262
- name: Install prebuild theia
6363
shell: |
64-
curl -o- https://bibiserv.cebitec.uni-bielefeld.de/resources/bibigrid/plugins/theia-ide_node16.tar.gz | tar -xzf -
64+
curl -o- https://bibiserv.cebitec.uni-bielefeld.de/resources/bibigrid/plugins/theia-ide_node{{ bibigrid_node_version }}.tar.gz | tar -xzf -
6565
args:
6666
chdir: "/opt"
67-
creates: "{{ theia_ide_install_dir }}"
67+
creates: "{{ bibigrid_theia_ide_install_dir }}"
6868
tags:
6969
- skip_ansible_lint
7070

7171
- when: ide_conf.build|default(false)|bool
7272
block:
7373
- name: Create IDE build dir
7474
file:
75-
path: "{{ theia_ide_install_dir }}"
75+
path: "{{ bibigrid_theia_ide_install_dir }}"
7676
state: directory
7777
mode: "0o755"
7878

7979
- name: Copy IDE configuration to IDE build dir
8080
template:
8181
src: theia/package.json.j2
82-
dest: "{{ theia_ide_install_dir }}/package.json"
82+
dest: "{{ bibigrid_theia_ide_install_dir }}/package.json"
8383
mode: "0o644"
8484

8585
- name: Build ide
8686
shell: |
87-
source {{ nvm_install_dir }}/nvm.sh
87+
source {{ bibigrid_nvm_install_dir }}/nvm.sh
8888
yarn
8989
yarn theia build
9090
args:
91-
chdir: "{{ theia_ide_install_dir }}"
91+
chdir: "{{ bibigrid_theia_ide_install_dir }}"
9292
executable: bash
9393
tags:
9494
- skip_ansible_lint
9595

9696
- name: Generate IDE start skript to /usr/local/bin
9797
template:
9898
src: theia/theia-ide.sh.j2
99-
dest: "{{ theia_ide_install_dir }}/theia-ide.sh"
99+
dest: "{{ bibigrid_theia_ide_install_dir }}/theia-ide.sh"
100100
mode: "0o755"
101101

102102
- name: Generate systemd service

resources/playbook/roles/bibigrid/templates/theia/package.json.j2

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,71 @@
11
{
22
"private": true,
33
"dependencies": {
4+
"@theia/ai-anthropic": "{{ theia_version }}",
5+
"@theia/ai-chat": "{{ theia_version }}",
6+
"@theia/ai-chat-ui": "{{ theia_version }}",
7+
"@theia/ai-code-completion": "{{ theia_version }}",
8+
"@theia/ai-core": "{{ theia_version }}",
9+
"@theia/ai-history": "{{ theia_version }}",
10+
"@theia/ai-huggingface": "{{ theia_version }}",
11+
"@theia/ai-llamafile": "{{ theia_version }}",
12+
"@theia/ai-mcp": "{{ theia_version }}",
13+
"@theia/ai-ollama": "{{ theia_version }}",
14+
"@theia/ai-openai": "{{ theia_version }}",
15+
"@theia/ai-scanoss": "{{ theia_version }}",
16+
"@theia/ai-terminal": "{{ theia_version }}",
17+
"@theia/ai-workspace-agent": "{{ theia_version }}",
18+
"@theia/bulk-edit": "{{ theia_version }}",
419
"@theia/callhierarchy": "{{ theia_version }}",
20+
"@theia/collaboration": "{{ theia_version }}",
21+
"@theia/console": "{{ theia_version }}",
22+
"@theia/core": "{{ theia_version }}",
23+
"@theia/debug": "{{ theia_version }}",
24+
"@theia/dev-container": "{{ theia_version }}",
25+
"@theia/editor": "{{ theia_version }}",
26+
"@theia/editor-preview": "{{ theia_version }}",
27+
"@theia/external-terminal": "{{ theia_version }}",
528
"@theia/file-search": "{{ theia_version }}",
6-
"@theia/git": "{{ theia_version }}",
29+
"@theia/filesystem": "{{ theia_version }}",
30+
"@theia/getting-started": "{{ theia_version }}",
31+
"@theia/keymaps": "{{ theia_version }}",
732
"@theia/markers": "{{ theia_version }}",
33+
"@theia/memory-inspector": "{{ theia_version }}",
834
"@theia/messages": "{{ theia_version }}",
35+
"@theia/metrics": "{{ theia_version }}",
36+
"@theia/mini-browser": "{{ theia_version }}",
37+
"@theia/monaco": "{{ theia_version }}",
938
"@theia/navigator": "{{ theia_version }}",
1039
"@theia/outline-view": "{{ theia_version }}",
40+
"@theia/output": "{{ theia_version }}",
41+
"@theia/plugin-dev": "{{ theia_version }}",
42+
"@theia/plugin-ext": "{{ theia_version }}",
1143
"@theia/plugin-ext-vscode": "{{ theia_version }}",
1244
"@theia/preferences": "{{ theia_version }}",
13-
"@theia/preview": "{{ theia_version }}",
45+
"@theia/process": "{{ theia_version }}",
46+
"@theia/property-view": "{{ theia_version }}",
47+
"@theia/remote": "{{ theia_version }}",
48+
"@theia/scm": "{{ theia_version }}",
1449
"@theia/search-in-workspace": "{{ theia_version }}",
50+
"@theia/secondary-window": "{{ theia_version }}",
51+
"@theia/task": "{{ theia_version }}",
1552
"@theia/terminal": "{{ theia_version }}",
16-
"@theia/vsx-registry": "{{ theia_version }}"
53+
"@theia/timeline": "{{ theia_version }}",
54+
"@theia/toolbar": "{{ theia_version }}",
55+
"@theia/typehierarchy": "{{ theia_version }}",
56+
"@theia/userstorage": "{{ theia_version }}",
57+
"@theia/variable-resolver": "{{ theia_version }}",
58+
"@theia/vsx-registry": "{{ theia_version }}",
59+
"@theia/workspace": "{{ theia_version }}",
60+
"fs-extra": "^9.0.1"
1761
},
1862
"devDependencies": {
1963
"@theia/cli": "{{ theia_version }}"
2064
},
2165
"scripts": {
2266
"prepare": "yarn run clean && yarn build && yarn run download:plugins",
2367
"clean": "theia clean",
24-
"build": "theia build ",
68+
"build": "theia build --app-target=\"browser\"",
2569
"start": "theia start --plugins=local-dir:plugins",
2670
"download:plugins": "theia download:plugins"
2771
},

resources/playbook/roles/bibigrid/templates/theia/theia-ide.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Type=simple
88
Restart=always
99
RestartSec=1
1010
User={{ theia_ide_user }}
11-
ExecStart={{ theia_ide_install_dir }}/theia-ide.sh {{ theia_ide_workspace }} {{ theia_ide_bind_address }} {{ theia_ide_bind_port }}
11+
ExecStart={{ bibigrid_theia_ide_install_dir }}/theia-ide.sh {{ bibigrid_theia_ide_workspace }} {{ bibigrid_theia_ide_bind_address }} {{ bibigrid_theia_ide_bind_port }}
1212

1313
[Install]
1414
WantedBy=multi-user.target
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
source {{ nvm_install_dir }}/nvm.sh
3+
source {{ bibigrid_nvm_install_dir }}/nvm.sh
44
cd $(dirname ${0})
55
yarn theia start ${1} --hostname ${2} --port ${3}

0 commit comments

Comments
 (0)