Skip to content

Commit

Permalink
attempt to replace vscode w/ vscodium
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Sep 11, 2024
1 parent 2f31d51 commit f94d4e3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt update && apt -y install software-properties-common && add-apt-repositor

# run Ansible commands
COPY ./requirements.yaml ./playbook.yaml ./
RUN ansible-galaxy install -r requirements.yaml && ansible-playbook -i,localhost playbook.yaml --tags "install_oshw_tools, install_firefox" && rm -f ./*.yaml
RUN ansible-galaxy install -r requirements.yaml && ansible-playbook -i,localhost playbook.yaml --tags "install_oshw_tools, install_firefox, install_vscodium" && rm -f ./*.yaml

# Custom Desktop Background - replace bg_custom.png on disk with your own background image
COPY ./bg_custom.png /usr/share/extra/backgrounds/bg_default.png
Expand Down
64 changes: 44 additions & 20 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,10 @@
# install sudo for the vs-code role below
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_vscodium

tasks:
- name: Install Sudo
apt:
Expand All @@ -718,6 +722,9 @@
# add dev user to give vs code somewhere to install extensions
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_vscodium
tasks:
- name: Add dev user
user:
Expand All @@ -728,34 +735,51 @@
# install the remainder of the tools
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_vscodium

environment:
DONT_PROMPT_WSL_INSTALL: 1
roles:
- role: gantsign.visual-studio-code
users:
- username: "dev"
visual_studio_code_extensions:
- ms-python.python
- James-Yu.latex-workshop
visual_studio_code_settings_overwrite: yes
visual_studio_code_settings: {
"extensions.ignoreRecommendations": true,
"update.mode": "none",
"extensions.autoUpdate": false,
"extensions.autoCheckUpdates": false,
"terminal.integrated.profiles.linux": {
"bash (login)": {
"path": "bash",
"args": ["-l"]
}
},
"terminal.integrated.defaultProfile.linux": "bash (login)"
}

# - role: gantsign.visual-studio-code
# users:
# - username: "dev"
# visual_studio_code_extensions:
# - ms-python.python
# - James-Yu.latex-workshop
# visual_studio_code_settings_overwrite: yes
# visual_studio_code_settings: {
# "extensions.ignoreRecommendations": true,
# "update.mode": "none",
# "extensions.autoUpdate": false,
# "extensions.autoCheckUpdates": false,
# "terminal.integrated.profiles.linux": {
# "bash (login)": {
# "path": "bash",
# "args": ["-l"]
# }
# },
# "terminal.integrated.defaultProfile.linux": "bash (login)"
# }

- role: ansible-vscodium-installer
vscode_marketplace: true
vscodium_extensions:
- ms-python.python
- James-Yu.latex-workshop
vscodium_settings: /home/kasm-user/.config/Code/User/settings.json
# vscodium_keybindings: /path/to/code/bindings
# vscodium_tasks: /path/to/code/tasks
-
# Copy VS Code changes to kasm-default-profile and lean up (remove) dev user now that vs code is installed
hosts: localhost
connection: local
gather_facts: yes
tags:
- install_vscodium

tasks:
- name: Copy VS Code changes to kasm-default-profile
shell:
Expand Down
3 changes: 2 additions & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
- andrewrothstein.pandoc # https://galaxy.ansible.com/andrewrothstein/pandoc
- staticdev.firefox # https://galaxy.ansible.com/staticdev/firefox
#- geerlingguy.pip # https://galaxy.ansible.com/geerlingguy/pip
- gantsign.visual-studio-code # https://galaxy.ansible.com/gantsign/visual-studio-code
#- gantsign.visual-studio-code # https://galaxy.ansible.com/gantsign/visual-studio-code
- guillermodotn.vscodium # https://galaxy.ansible.com/ui/standalone/roles/guillermodotn/vscodium/
...

0 comments on commit f94d4e3

Please sign in to comment.