chore(gitpod): 🧑‍💻 add Gitpod config for testing RPC in Gitpod workspaces

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-03-14 16:32:05 +00:00
parent fdcb58af13
commit e356d84785
3 changed files with 26 additions and 1 deletions

12
.gitpod.Dockerfile vendored Normal file
View File

@ -0,0 +1,12 @@
FROM gitpod/workspace-full-vnc
# Install Discord stuff behind the scenes
WORKDIR /home/gitpod
RUN wget "https://discord.com/api/download?platform=linux&format=tar.gz" -O /tmp/discord.tar.gz \
&& mkdir -p ~/.local/lib && tar xvf /tmp/discord.tar.gz && mv ~/Discord ~/.local/lib/discord \
&& rm /tmp/discord.tar.gz \
&& sudo chown root:root ~/.local/lib/discord/chrome-sandbox && sudo chmod 4755 ~/.local/lib/discord/chrome-sandbox
# Then install Xfce4 goodies and deps for Electron-based apps
RUN sudo install-packages xfce4 xfce4-goodies libnss3 xubuntu-default-settings xubuntu-icon-theme firefox dbus dbus-x11 libgbm-dev
ENV WINDOW_MANAGER=startxfce4

12
.gitpod.yml Normal file
View File

@ -0,0 +1,12 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.
image:
file: .gitpod.Dockerfile
tasks:
- name: Start Discord
command: ~/.local/lib/discord/Discord
ports:
- port: 5900
onOpen: ignore

View File

@ -7,6 +7,7 @@
"typescript.enablePromptUseWorkspaceTsdk": true,
"conventionalCommits.scopes": [
"global",
"defaultActivity"
"defaultActivity",
"gitpod"
]
}