generated from Templates/Baseline
Compare commits
6 Commits
v0.3.1
...
46fc34c191
Author | SHA1 | Date | |
---|---|---|---|
46fc34c191 | |||
c55408b4b3 | |||
c6e65b7782 | |||
33f8bc90c0 | |||
8c9c9e5138 | |||
5922aabe3d |
@ -6,9 +6,11 @@
|
||||
|
||||
> :bulb: Select your test plan for the code changes.
|
||||
|
||||
- [x] CI pipeline tests
|
||||
- [ ] Custom test
|
||||
- [ ] No test plan
|
||||
| Choice | Test Method |
|
||||
| :----: | :----------- |
|
||||
| ✅ | CI pipeline tests |
|
||||
| | Custom test |
|
||||
| | No test plan |
|
||||
|
||||
##### Details / Justification
|
||||
|
||||
|
1
.vscode/dictionaries/project-words.txt
vendored
1
.vscode/dictionaries/project-words.txt
vendored
@ -22,3 +22,4 @@ srv
|
||||
tbd
|
||||
traefik
|
||||
tuanpham
|
||||
volta
|
||||
|
10
CHANGELOG.md
10
CHANGELOG.md
@ -70,3 +70,13 @@
|
||||
|
||||
* 🤖 DEPENDENCIES
|
||||
* Update quay.io/linuxserver.io/code-server Docker tag to v4.14.1 (#47)
|
||||
|
||||
## [v0.4.0](https://gitea.ocram85.com/CodeServer/arkanum/releases/tag/v0.4.0) - 2023-07-19
|
||||
|
||||
* 🐛 BUGFIXES
|
||||
* Disable starship python module (#52)
|
||||
* ✨ FEATURES
|
||||
* Add docker-cli (#54)
|
||||
* Adds Volta as default version manager for NodeJs (#53)
|
||||
* 🛠️ ENHANCEMENTS
|
||||
* Bump go version (#49)
|
||||
|
11
README.md
11
README.md
@ -173,11 +173,13 @@ This helps reducing the image size.
|
||||
code-server container environment.
|
||||
|
||||
Syntax: arkanum RUNTIME ...
|
||||
RUNTIME [dotnet|golang|nodejs|powershell]
|
||||
RUNTIME [docker-cli|dotnet|gitea|golang|nodejs|volta|powershell]
|
||||
docker-cli Installs the latest docker-ce cli.
|
||||
dotnet Installs latest LTS dotnet core sdk + runtime.
|
||||
gitea Installs gitea tools like the changelog generator.
|
||||
golang Installs golang 1.19.3.
|
||||
nodejs Installs latest NodeJs LTS version.
|
||||
nodejs Installs latest NodeJs LTS version using Volta.
|
||||
volta Installs Volta as NodeJs version manager.
|
||||
powershell Installs latest PowerShell LTS version.
|
||||
--disable-motd Disables hint in new bash terminal.
|
||||
--install-extensions Installs predefined recommended extensions.
|
||||
@ -218,6 +220,11 @@ Additionally we install these extensions on container startup:
|
||||
|
||||
## 💣 Known Issues
|
||||
|
||||
### Starship.rs
|
||||
|
||||
Starship detects workspaces as active python projects. It always appends the prompt
|
||||
fragment `via 🐍 (lsiopy)`. For now I disabled the python module in starship.
|
||||
|
||||
### 🐛 Default extensions installation timing error
|
||||
|
||||
If the automatic installation of the default extension fails, you can always retry he installation with the
|
||||
|
58
arkanum
58
arkanum
@ -8,11 +8,13 @@ function showHelp() {
|
||||
code-server container environment.
|
||||
|
||||
Syntax: arkanum RUNTIME ...
|
||||
RUNTIME [dotnet|golang|nodejs|powershell]
|
||||
RUNTIME [docker-cli|dotnet|gitea|golang|nodejs|volta|powershell]
|
||||
docker-cli Installs the latest docker-cli.
|
||||
dotnet Installs latest LTS dotnet core sdk + runtime.
|
||||
gitea Installs gitea tools like the changelog generator.
|
||||
golang Installs golang 1.19.3.
|
||||
nodejs Installs latest NodeJs LTS version.
|
||||
nodejs Installs latest NodeJs LTS version using Volta.
|
||||
volta Installs Volta as NodeJS version manager.
|
||||
powershell Installs latest PowerShell LTS version.
|
||||
--disable-motd Disables hint in new bash terminal.
|
||||
--install-extensions Installs predefined recommended extensions.
|
||||
@ -48,6 +50,34 @@ function sayE() {
|
||||
fi
|
||||
}
|
||||
|
||||
function sayW() {
|
||||
if [[ -n "$2" ]]; then
|
||||
echo -e "🧙 \e[33markanum\e[0m \e[34m[⚒️ $2]\e[0m: $1" 1>&2
|
||||
else
|
||||
echo -e "🧙 \e[33markanum\e[0m: $1" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
function instDockerCLI() {
|
||||
say "Installing docker-cli..." "docker-cli"
|
||||
say "Getting requires packages..." "docker-cli"
|
||||
sudo -E apt-get update > /dev/null
|
||||
sudo -E apt-get install ca-certificates curl gnupg
|
||||
say "Setting up docker repository..." "docker-cli"
|
||||
sudo -E install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo -E gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
sudo -E chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
say "Installing docker-ce-cli package" "docker-cli"
|
||||
sudo -E apt-get update > /dev/null
|
||||
sudo -E apt-get install --no-install-recommends -y \
|
||||
docker-ce-cli
|
||||
say "docker-cli done." "docker-cli"
|
||||
}
|
||||
|
||||
function instDotNet() {
|
||||
say "Installing dotnet requirements..." "dotnet"
|
||||
sudo -E apt-get update > /dev/null
|
||||
@ -73,7 +103,7 @@ function instDotNet() {
|
||||
|
||||
function instGoLang() {
|
||||
if [[ -z "$1" ]]; then
|
||||
GOVERSION="1.19.3"
|
||||
GOVERSION="1.20.6"
|
||||
else
|
||||
GOVERSION="$1"
|
||||
fi
|
||||
@ -107,6 +137,18 @@ function instNodeJs() {
|
||||
say "done." "NodeJs"
|
||||
}
|
||||
|
||||
function instNodeJS2() {
|
||||
say "Installing NodeJS LTS via Volta..." "NodeJS"
|
||||
volta install node@lts
|
||||
say "done." "NodeJS"
|
||||
}
|
||||
|
||||
function instVolta() {
|
||||
say "Installing Volta as NodeJS version manager..." "Volta"
|
||||
curl -#fSl https://get.volta.sh | bash
|
||||
say "done." "Volta"
|
||||
}
|
||||
|
||||
function instPwsh() {
|
||||
say "Installing PowerShell requirements..." "PowerShell"
|
||||
sudo -E apt-get install --no-install-recommends -y \
|
||||
@ -206,12 +248,22 @@ function main() {
|
||||
if [[ "$1" == "-h" ]]; then
|
||||
showHelp
|
||||
exit 0
|
||||
elif [[ "$i" == "docker-cli" ]]; then
|
||||
instDockerCLI
|
||||
elif [[ "$i" == "dotnet" ]]; then
|
||||
instDotNet
|
||||
elif [[ "$i" == "golang" ]]; then
|
||||
instGoLang
|
||||
elif [[ "$i" == "nodejs" ]]; then
|
||||
if [[ "$2" == "--legacy" ]]; then
|
||||
sayW "Installing NodeJS with legacy function" "Arkanum"
|
||||
instNodeJs
|
||||
else
|
||||
instVolta
|
||||
instNodeJS2
|
||||
fi
|
||||
elif [[ "$i" == "volta" ]]; then
|
||||
instVolta
|
||||
elif [[ "$i" == "powershell" ]]; then
|
||||
instPwsh
|
||||
elif [[ "$i" == "gitea" ]]; then
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
complete -W "--disable-motd --install-extensions --reset-codesetting dotnet gitea golang nodejs powershell -h" arkanum
|
||||
complete -W "--disable-motd --install-extensions --reset-codesetting docker-cli dotnet gitea golang nodejs volta powershell -h" arkanum
|
||||
|
@ -59,6 +59,9 @@ symbol = " "
|
||||
[package]
|
||||
symbol = " "
|
||||
|
||||
[python]
|
||||
disabled = true
|
||||
|
||||
[rust]
|
||||
symbol = " "
|
||||
|
||||
|
Reference in New Issue
Block a user