Skip to content

Commit

Permalink
clean docker andnote in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FloSch62 committed Dec 3, 2024
1 parent f3d9a1f commit cacf9c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt install -y \
sudo \
wget \
nano \
vim \
jq

RUN apt install -y --no-install-recommends \
Expand Down Expand Up @@ -43,8 +44,13 @@ ENV USER=clab
USER clab
WORKDIR /home/clab

# Install Containerlab
RUN curl -sL https://containerlab.dev/setup | sudo -E bash -s "all"

# Install gNMIc and gNOIc
RUN bash -c "$(curl -sL https://get-gnmic.openconfig.net)" && \
bash -c "$(curl -sL https://get-gnoic.kmrd.dev)"

# Create SSH key for vscode user to enable passwordless SSH to devices
RUN ssh-keygen -t ecdsa -b 256 -N "" -f ~/.ssh/id_ecdsa

Expand All @@ -61,5 +67,4 @@ COPY --chown=clab:clab ./zsh/.p10k.zsh /home/clab/.p10k.zsh
COPY --chown=clab:clab ./zsh/install-zsh-plugins.sh /tmp/install-zsh-plugins.sh
COPY --chown=clab:clab ./zsh/install-tools-completions.sh /tmp/install-tools-completions.sh
RUN chmod +x /tmp/install-zsh-plugins.sh /tmp/install-tools-completions.sh
USER clab
RUN bash -c "/tmp/install-zsh-plugins.sh && /tmp/install-tools-completions.sh"
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Ensure [WSL 2.4.4](https://github.com/microsoft/WSL/releases/tag/2.4.4) is installed.

Clone the repo and build using the build script
Clnoe the repo and build use the build script

```
./build.sh
Expand Down Expand Up @@ -48,7 +48,16 @@ As of [WSL 2.4.4](https://github.com/microsoft/WSL/releases/tag/2.4.4) you can e
wsl --install --from-file clab.wsl
```

After installation, close and reopen your terminal to ensure proper font rendering and appearance settings are applied correctly. This step is necessary for the terminal to recognize and use the newly installed WSL distribution's display configurations.

We recommend using Windows Terminal for the best experience:
- Windows 11 users: Windows Terminal is installed by default
- Windows 10 users: Download Windows Terminal from the Microsoft Store: [Terminal](https://aka.ms/terminal)




# Sources

https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro#export-the-tar-from-a-container
https://learn.microsoft.com/en-us/windows/wsl/build-custom-distro
https://learn.microsoft.com/en-us/windows/wsl/build-custom-distro

0 comments on commit cacf9c4

Please sign in to comment.