From 46272cf0e2d304fd02c72a2d3cd5df58ff9f885a Mon Sep 17 00:00:00 2001 From: OCram85 Date: Fri, 21 Oct 2022 20:42:44 +0200 Subject: [PATCH] add basic container setup --- .dockerignore | 8 +++++ Dockerfile | 29 +++++++++++++++++ starship.toml | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 starship.toml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2b72aa6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +.gitea +.vscode +assets +.editorconfig +.gitatributes +.gitignore +.gitlocal +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dcf7537 --- /dev/null +++ b/Dockerfile @@ -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/* diff --git a/starship.toml b/starship.toml new file mode 100644 index 0000000..281af7b --- /dev/null +++ b/starship.toml @@ -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"