Compare commits
1 Commits
main
...
86b7cdb31d
| Author | SHA1 | Date | |
|---|---|---|---|
|
86b7cdb31d
|
@@ -3,14 +3,11 @@ FROM quay.io/fedora/fedora:44
|
||||
# === install system packages ===
|
||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
dnf update -y && \
|
||||
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install \
|
||||
bash-completion git-core fzf curl awk jq fd-find rg unzip which \
|
||||
host-spawn wl-copy gcc
|
||||
|
||||
RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | jq -r .tag_name | sed 's/^v//') && \
|
||||
curl -sL "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_linux_x86_64.tar.gz" | tar xz -C /usr/local/bin lazygit && \
|
||||
curl -sL "https://github.com/jorgerojas26/lazysql/releases/latest/download/lazysql_Linux_x86_64.tar.gz" | tar xz -C /usr/local/bin lazysql && \
|
||||
curl -sL "https://github.com/neovim/neovim/releases/download/nightly/nvim-linux-x86_64.tar.gz" | tar xz -C /usr/local --strip-components=1
|
||||
dnf copr enable -y gierth/tools-golang && \
|
||||
dnf copr enable -y agriffis/neovim-nightly && \
|
||||
dnf -y --setopt=keepcache=1 --nodocs --setopt=install_weak_deps=False install bash-completion glibc-minimal-langpack \
|
||||
host-spawn dbus-launch \
|
||||
git npm neovim awk jq unzip lazygit lazydocker lazysql
|
||||
|
||||
COPY config/bin /usr/local/bin
|
||||
|
||||
|
||||
@@ -5,14 +5,13 @@ set -o vi
|
||||
bind -m vi-insert '"\C-l": clear-screen'
|
||||
|
||||
# === environment ===
|
||||
export PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] " \
|
||||
EDITOR="nvim" \
|
||||
export EDITOR="nvim" \
|
||||
WAYLAND_DISPLAY="wayland-0" \
|
||||
XDG_RUNTIME_DIR="/run/user/1000" \
|
||||
SSH_AUTH_SOCK="/run/user/1000/ssh-auth-sock" \
|
||||
TZ="Europe/Amsterdam" \
|
||||
FZF_CTRL_T_COMMAND="fd --type f --hidden --exclude .git --exclude Library --exclude .cache" \
|
||||
FZF_ALT_C_COMMAND="fd --type d --hidden --exclude .git --exclude Library --exclude .cache"
|
||||
TZ="Europe/Amsterdam"
|
||||
|
||||
PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] "
|
||||
|
||||
# === aliases and functions ===
|
||||
alias vi=nvim
|
||||
|
||||
@@ -2,9 +2,7 @@ ARG TAG
|
||||
FROM job79/base:${TAG}
|
||||
USER root
|
||||
|
||||
RUN GO_VERSION=$(curl -sL "https://go.dev/VERSION?m=text" | head -n 1 | tr -d '\r\n') && \
|
||||
curl -sL "https://go.dev/dl/${GO_VERSION}.linux-amd64.tar.gz" | tar xz -C /usr/local && \
|
||||
ln -sf /usr/local/go/bin/go /usr/local/bin/go && \
|
||||
ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt
|
||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
dnf -y --setopt=keepcache=1 install go
|
||||
|
||||
USER user
|
||||
|
||||
@@ -3,8 +3,7 @@ FROM job79/base:${TAG}
|
||||
USER root
|
||||
|
||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
dnf -y --setopt=keepcache=1 --setopt=install_weak_deps=False install \
|
||||
just kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r ".assets[] | select(.name | test(\"sops-.*.$(arch).rpm\$\")) | .browser_download_url")" && \
|
||||
dnf -y --setopt=keepcache=1 install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r ".assets[] | select(.name | test(\"sops-.*.$(arch).rpm\$\")) | .browser_download_url")" && \
|
||||
curl -sL https://talos.dev/install | sh && \
|
||||
curl -s https://fluxcd.io/install.sh | bash
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ FROM job79/base:${TAG}
|
||||
USER root
|
||||
|
||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
dnf -y --setopt=keepcache=1 install php composer npm && \
|
||||
dnf -y --setopt=keepcache=1 install php composer && \
|
||||
composer global require laravel/installer
|
||||
|
||||
USER user
|
||||
|
||||
7
devc.sh
7
devc.sh
@@ -12,10 +12,9 @@ default_args() {
|
||||
run_opts+=(
|
||||
"--name" "$name"
|
||||
"--hostname" "$name"
|
||||
"--pull=newer" # Update image.
|
||||
"--userns=keep-id" # Map host user.
|
||||
"-v" "$name:/home/user:copy" # Persistent home volume.
|
||||
"-v" "dnf-cache:/var/cache/libdnf5" # Cache dnf metadata.
|
||||
"--pull=newer" # Update image.
|
||||
"--userns=keep-id" # Map host user.
|
||||
"-v" "$name:/home/user:copy" # Persistent home volume.
|
||||
)
|
||||
|
||||
# Unix sockets require SELinux label disable.
|
||||
|
||||
Reference in New Issue
Block a user