generated from Templates/Baseline
add basic container setup
This commit is contained in:
parent
bab903d7d0
commit
46272cf0e2
8
.dockerignore
Normal file
8
.dockerignore
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.gitea
|
||||||
|
.vscode
|
||||||
|
assets
|
||||||
|
.editorconfig
|
||||||
|
.gitatributes
|
||||||
|
.gitignore
|
||||||
|
.gitlocal
|
||||||
|
README.md
|
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
FROM linuxserver/code-server:4.7.1
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** install starshipt prompt ****" && \
|
||||||
|
curl -sS https://starship.rs/install.sh | sh && \
|
||||||
|
echo "eval \"\$(starship init bash)\"" >> /etc/bash.bashrc
|
||||||
|
|
||||||
|
ENV STARSHIP_CONFIG=/etc/starship.tom
|
||||||
|
|
||||||
|
COPY staship.toml /etc/starship.toml
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
"**** setup git ****" && \
|
||||||
|
git config --system credential.helper store
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** install dev runtimes ****" && \
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
nodejs \
|
||||||
|
golang-go &&\
|
||||||
|
echo "**** clean up ****" && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf \
|
||||||
|
/config/* \
|
||||||
|
/tmp/* \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/var/tmp/*
|
90
starship.toml
Normal file
90
starship.toml
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
[aws]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[buf]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[container]
|
||||||
|
symbol = " "
|
||||||
|
format = "[$symbol]($style)"
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
read_only = " "
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
# [git_branch]
|
||||||
|
# symbol = " "
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[hg_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[memory_usage]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[package]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
# Custom Prompt
|
||||||
|
[git_branch]
|
||||||
|
format = " [$symbol$branch]($style) "
|
||||||
|
symbol = "🍣 "
|
||||||
|
style = "bold yellow"
|
||||||
|
|
||||||
|
[git_commit]
|
||||||
|
commit_hash_length = 8
|
||||||
|
style = "bold white"
|
||||||
|
|
||||||
|
[git_state]
|
||||||
|
format = '[\($state( $progress_current of $progress_total)\)]($style) '
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
conflicted = "⚔️ "
|
||||||
|
ahead = "🏎️💨 ×${count}"
|
||||||
|
behind = "🐢 ×${count}"
|
||||||
|
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
|
||||||
|
untracked = "🛤️ ×${count}|"
|
||||||
|
stashed = "📦 "
|
||||||
|
modified = "📝 ×${count}|"
|
||||||
|
staged = "🗃️ ×${count}|"
|
||||||
|
renamed = "📛 ×${count}|"
|
||||||
|
deleted = "🗑️ ×${count}|"
|
||||||
|
style = "bright-white"
|
||||||
|
format = "$all_status$ahead_behind"
|
Loading…
Reference in New Issue
Block a user