-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: start vsc workspace, bug fixes in admin dash, format code
- Loading branch information
1 parent
b6e5e4b
commit 107c08e
Showing
7 changed files
with
88 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## This is currently broken | ||
|
||
FROM debian:bookworm | ||
LABEL org.opencontainers.image.source=https://github.com/spaceness/stardust | ||
WORKDIR /opt/stardust | ||
ENV USER=stardust | ||
ENV PNPM_HOME="/home/stardust/.local/share/pnpm" | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY ./scripts /opt/stardust/scripts | ||
# idk if all of these are needed someone fix this - @incognitotgt | ||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
xfonts-75dpi xvfb passwd sudo dbus dbus-x11 libxrandr2 libxext-dev libxrender-dev libxtst-dev imagemagick x11-apps build-essential pulseaudio gstreamer1.0* fonts-noto-color-emoji \ | ||
python3 python3-pip xterm git procps python3-numpy xfwm4 xfce4-terminal xfce4-session xfconf xfce4-notifyd \ | ||
wget gpg curl inetutils-ping tigervnc-tools tigervnc-standalone-server tigervnc-common | ||
|
||
COPY ./vscode/install.sh /opt/stardust/scripts/vscode-install.sh | ||
|
||
RUN bash /opt/stardust/scripts/prepare.sh | ||
USER stardust | ||
RUN bash /opt/stardust/scripts/vscode-install.sh | ||
COPY ./vscode/xstartup /opt/stardust/xstartup | ||
RUN bash /opt/stardust/scripts/vnc-setup.sh | ||
|
||
WORKDIR /home/stardust | ||
CMD ["bash", "/opt/stardust/scripts/start.sh"] | ||
EXPOSE 5901 4713 6080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
download_url="https://code.visualstudio.com/sha/download?build=stable&os=linux-$(dpkg-architecture -q DEB_BUILD_ARCH)" | ||
echo "Installing VSCode..." | ||
echo "Downloading" | ||
echo $download_url | ||
curl -fSL $download_url -o /tmp/vscode.tar.gz | ||
echo "Extracting" | ||
mkdir -p /home/stardust/.local/share/vscode | ||
tar --strip-components=1 -xzf /tmp/vscode.tar.gz -C /home/stardust/.local/share/vscode | ||
echo "Success!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
xrdb $HOME/.Xresources | ||
export DISPLAY=":1" | ||
startxfce4 & | ||
sleep 1 | ||
sudo service dbus start | ||
echo "while : | ||
do | ||
/home/stardust/.local/share/vscode/bin/code --no-sandbox --verbose --wait | ||
sleep 2 | ||
done | ||
" | bash |