Skip to content

Commit 8536992

Browse files
committed
MiOSv0.2.0 - DevContainer Alignment
1 parent f8eea02 commit 8536992

2 files changed

Lines changed: 25 additions & 14 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
FROM fedora:rawhide
1+
FROM fedora:latest
22

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
3+
# 1. Install MiOS Toolchain + Upstream Packages
4+
RUN dnf install -y just fastfetch btop podman buildah skopeo jq yq rsync git nodejs npm sudo zsh findutils grep sed gawk policycoreutils && dnf clean all
55

6+
# 2. Install Gemini CLI to root
7+
RUN npm install -g @google/gemini-cli
68

7-
# Setup vscode user for Codespaces parity
8-
RUN useradd -m -s /usr/bin/zsh vscode && echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode
9+
# 3. Setup MiOS Development User
10+
RUN useradd -m -s /usr/bin/zsh mios-dev && echo "mios-dev ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/mios-dev
911

10-
USER vscode
11-
WORKDIR /workspaces/MiOS
12+
# 4. Mirror MiOS Pattern: Working Directory is the repository root
13+
WORKDIR /mios
14+
USER mios-dev
15+
16+
# 5. Environment Metadata
17+
ENV MIOS_DEVCONTAINER=1
18+
ENV MIOS_VERSION=0.2.0
19+
20+
CMD ["/usr/bin/zsh"]

.devcontainer/devcontainer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"name": "Fedora MiOS Dev (Rawhide)",
2+
"name": "MiOS Development Environment",
33
"build": {
44
"dockerfile": "Dockerfile",
55
"context": ".."
66
},
77
"features": {
88
"ghcr.io/devcontainers/features/common-utils:2": {
9-
"configureZshAsDefaultShell": true
10-
},
11-
"ghcr.io/devcontainers/features/docker-in-docker:1": {
12-
"version": "latest",
13-
"moby": true
9+
"username": "mios-dev",
10+
"userUid": "1000",
11+
"userGid": "1000"
1412
}
1513
},
1614
"customizations": {
@@ -27,5 +25,9 @@
2725
]
2826
}
2927
},
30-
"remoteUser": "vscode"
28+
"remoteUser": "mios-dev",
29+
"workspaceFolder": "/mios",
30+
"mounts": [
31+
"source=${localWorkspaceFolder},target=/mios,type=bind,consistency=cached"
32+
]
3133
}

0 commit comments

Comments
 (0)