Skip to content

Commit 28fb57a

Browse files
committed
fix: use Dockerfile to resolve Codespaces registry resolution bug
1 parent a00b342 commit 28fb57a

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM fedora:rawhide
2+
3+
# Install MiOS Toolchain
4+
RUN dnf install -y just fastfetch btop podman buildah skopeo jq yq rsync git nodejs npm sudo zsh findutils grep sed gawk && dnf clean all
5+
6+
# Install Gemini CLI
7+
RUN npm install -g @google/gemini-cli
8+
9+
# Setup vscode user for Codespaces parity
10+
RUN useradd -m -s /usr/bin/zsh vscode && echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode
11+
12+
USER vscode
13+
WORKDIR /workspaces/MiOS

.devcontainer/devcontainer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"name": "Fedora MiOS Dev",
3-
"image": "registry.fedoraproject.org/fedora:rawhide",
2+
"name": "Fedora MiOS Dev (Rawhide)",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
47
"features": {
58
"ghcr.io/devcontainers/features/common-utils:2": {
69
"configureZshAsDefaultShell": true
710
},
8-
"ghcr.io/devcontainers/features/node:1": {
9-
"version": "lts"
10-
},
11-
"ghcr.io/devcontainers/features/podman:1": {}
11+
"ghcr.io/devcontainers/features/docker-in-docker:1": {
12+
"version": "latest",
13+
"moby": true
14+
}
1215
},
13-
"postCreateCommand": "sudo dnf install -y just fastfetch btop jq yq rsync bash-completion tar gzip xz python3 findutils grep sed gawk && npm install -g @google/gemini-cli",
1416
"customizations": {
1517
"vscode": {
1618
"settings": {

0 commit comments

Comments
 (0)