Updates Readme content (#7)
ci/woodpecker/push/test Pipeline was successful Details
ci/woodpecker/push/next Pipeline was successful Details
ci/woodpecker/push/master Pipeline was successful Details

#### 📖 Summary

<!-- Provide a summary of your changes. Describe the why and not how. -->

#### 📑 Test Plan

> 💡 Select your test plan for the code changes.

- [x] Tested via Drone.io pipeline
- [ ] Custom test
- [ ] No test plan

##### Details / Justification

<!-- Add your test details or justification for missing tests here. -->

#### 📚 Additional Notes

<!-- A place for additional detail notes. -->

Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Reviewed-on: CodeServer/Container#7
This commit is contained in:
OCram85 2022-11-09 15:31:07 +01:00
parent 494f236ca7
commit e316a96190
4 changed files with 48 additions and 6 deletions

View File

@ -1,7 +1,7 @@
FROM quay.io/linuxserver.io/code-server:4.8.3
RUN \
echo "**** install starshipt prompt ****" && \
echo "**** install starship prompt ****" && \
curl -sS https://starship.rs/install.sh | sh -s -- -f && \
echo "eval \"\$(starship init bash)\"" >> /etc/bash.bashrc

View File

@ -13,19 +13,61 @@
</p>
<h1 align="center">
Container
Code-Server as Container 📦
</h1>
<p align="center">
This project optimizes the Code-Server container image from linuxserver.io.
</p>
<p align="center">
<a href="https://drone.ocram85.com/CodeServer/Container">
<img src="https://drone.ocram85.com/api/badges/CodeServer/Container/status.svg" alt="Master Branch Build Status">
<a href="https://ci.ocram85.com/CodeServer/Container">
<img src="https://ci.ocram85.com/api/badges/CodeServer/Container/status.svg" alt="Master Branch Build Status">
</a>
</p>
## :book: General
> :bulb: tbd...
The container is based on the latest `linuxserver/code-server` image.
### 🚀 Starship prompt
The [Starship](starship.rs) prompt is added an enabled as default. Default config uses Emojis and FiraCode icons.
### 🔱 git config
Adds default system config with:
- enabled plain credential store for remote.
- enabled bash completion for git command.
- added git log helper `lg1` + `lg2`
> 💡 See [gitconfig-system](./gitconfig-system) for details.
### 🧙 Added `install-devruntime` helper script
Added `install-devruntime` to help installing common runtime in container.
This helps reducing the image size.
```
install-devruntime is used to install optional runtimes for developing in a
code-server container environment.
Syntax: install-devruntime RUNTIME ...
RUNTIME [dotnet|golang|nodejs|powershell]
dotnet Installs latest LTS dotnet core sdk + runtime.
golang Installs golang 1.19.3.
nodejs Installs latest NodeJs LTS version.
powershell Installs latest PowerShell LTS version.
-h Prints this help messagee.
disablemotd Disables hint in new bash terminal
setcode Sets VS Code user setting with basic (Fira Code)
Example 1: install-devruntime dotnet
Example 2: install devruntime golang nodejs
```
## 💳 Credits
- Photo by <a href="https://unsplash.com/@frankiefoto?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">frank mckenna</a> on <a href="https://unsplash.com/s/photos/container?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB