Skip to content

Commit

Permalink
cleanup: update files
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed Dec 3, 2023
1 parent 6540742 commit 93b8c7a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 25 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-rolling-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ env:
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

jobs:

build-rolling-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build the Rolling Docker image
run: docker image build -f configs/rolling/Debian-DockerFile -t ghcr.io/kbdharun/kasm-dev-debian-rolling:latest
run: docker image build -f configs/rolling/Debian-DockerFile -t ghcr.io/kbdharun/kasm-dev-debian-rolling:latest .

# Push the image to GHCR (Image Registry)
- name: Push Rolling To GHCR
Expand Down
29 changes: 17 additions & 12 deletions configs/rolling/Debian-DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,28 @@ WORKDIR $HOME
RUN apt-get update && \
apt-get install -y \
python3 python3-pip \
curl wget \
curl wget git \
flatpak \
g++ \
cmake \
g++ cmake \
meson \
ninja-build \
jupyter-notebook

# Install Snap
RUN apt-get install -y snapd && \
systemctl enable --now snapd.service

# Install Node.js using Snap
RUN snap install --classic node

# Install VSCode via Snap
RUN snap install code --classic
# Install dependencies for NodeSource
RUN apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

# Add NodeSource repository and install Node.js
RUN NODE_MAJOR=20 && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs

# Download and install VSCode
RUN curl -o /tmp/vscode.deb -L 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' && \
dpkg -i /tmp/vscode.deb && \
apt-get install -f

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Expand Down
29 changes: 17 additions & 12 deletions configs/static/Debian-DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,28 @@ WORKDIR $HOME
RUN apt-get update && \
apt-get install -y \
python3 python3-pip \
curl wget \
curl wget git \
flatpak \
g++ \
cmake \
g++ cmake \
meson \
ninja-build \
jupyter-notebook

# Install Snap
RUN apt-get install -y snapd && \
systemctl enable --now snapd.service

# Install Node.js using Snap
RUN snap install --classic node

# Install VSCode via Snap
RUN snap install code --classic
# Install dependencies for NodeSource
RUN apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

# Add NodeSource repository and install Node.js
RUN NODE_MAJOR=20 && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs

# Download and install VSCode
RUN curl -o /tmp/vscode.deb -L 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' && \
dpkg -i /tmp/vscode.deb && \
apt-get install -f

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Expand Down

0 comments on commit 93b8c7a

Please sign in to comment.