-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile created and the user creation is currently commented. The rootfs file is available only for test purpose.
- Loading branch information
Showing
6 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
rootfs/limawolfi.tar filter=lfs diff=lfs merge=lfs -text |
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,32 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM cgr.dev/chainguard/wolfi-base:latest | ||
|
||
# Install extra packages | ||
COPY wsl-files/extra-packages / | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
grep -v '^#' /extra-packages | xargs apk add | ||
RUN rm /extra-packages | ||
|
||
# Add systemd symlink to init | ||
RUN ln -s /usr/lib/systemd/systemd /sbin/init | ||
|
||
# Add wsl.conf file | ||
COPY wsl-files/wsl.conf /etc/wsl.conf | ||
|
||
# # Create user | ||
# ARG USERNAME=${username:-lima} | ||
# ARG PASSWORD=${password:-lima} | ||
# ARG USER_ID=1000 | ||
# ARG GROUP_ID=1000 | ||
|
||
# RUN addgroup -g $GROUP_ID $USERNAME && \ | ||
# adduser -D -u $USER_ID -G $USERNAME $USERNAME && \ | ||
# echo "$USERNAME:$PASSWORD" | chpasswd && \ | ||
# echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
|
||
# # Update wsl.conf file | ||
# RUN sed -i "s/root/$USERNAME/g" /etc/wsl.conf | ||
|
||
# # Fix su-exec permissions | ||
# RUN chmod u+s /sbin/su-exec |
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 @@ | ||
Repo for Wolfi distro to be used with LIMA on Windows (WSL2) |
Git LFS file not shown
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,4 @@ | ||
systemd | ||
mount | ||
umount | ||
bash |
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,17 @@ | ||
[automount] | ||
enabled = true | ||
options = "metadata,umask=0022,fmask=11,case=off" | ||
mountFsTab = true | ||
crossDistro = true | ||
|
||
[user] | ||
default = root | ||
|
||
[network] | ||
hostname = limawolfi | ||
generateHosts = true | ||
generateResolvConf = true | ||
|
||
[boot] | ||
systemd = true | ||
command = mount --make-shared / |