Compare commits
No commits in common. "ff8812f09a6caf57284d2b8423f31ba3cb926b7e" and "a83eb631d638c94206f1060b3fcf81daf0efb0a9" have entirely different histories.
ff8812f09a
...
a83eb631d6
3 changed files with 22 additions and 63 deletions
|
|
@ -12,7 +12,7 @@ RUN yes | unminimize
|
|||
RUN apt-get update && apt-get install -y gpg sudo wget curl build-essential software-properties-common libssl-dev pkg-config libglew-dev git fish
|
||||
|
||||
# Install handy developer tools.
|
||||
RUN apt-get update && apt-get install -y iputils-ping postgresql-client git-delta jq sqlite3 neovim pipx ripgrep openssh-server fzf
|
||||
RUN apt-get update && apt-get install -y iputils-ping postgresql-client git-delta jq sqlite3 vim pipx ripgrep openssh-server
|
||||
|
||||
# Install and configure Podman.
|
||||
RUN apt-get update && apt-get install -y iptables podman
|
||||
|
|
@ -59,9 +59,6 @@ COPY --chown=$USERNAME ./assets/helix/ignore /home/$USERNAME/.config/helix/
|
|||
COPY --chown=$USERNAME ./assets/helix/snippets/*.toml /home/$USERNAME/.config/helix/snippets/
|
||||
COPY --chown=$USERNAME ./assets/helix/themes/*.toml /home/$USERNAME/.config/helix/themes/
|
||||
|
||||
RUN mkdir -p ~/.config/nvim
|
||||
COPY --chown=$USERNAME ./assets/nvim/init.lua /home/$USERNAME/.config/nvim/init.lua
|
||||
|
||||
ARG VCS_EMAIL
|
||||
ARG VCS_NAME
|
||||
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
vim.cmd [[colorscheme retrobox]]
|
||||
vim.cmd [[set splitright]]
|
||||
vim.cmd [[set splitbelow]]
|
||||
vim.cmd [[set number]]
|
||||
vim.cmd [[set expandtab]]
|
||||
vim.cmd [[set shiftwidth=2]]
|
||||
vim.cmd [[set smarttab]]
|
||||
vim.cmd [[set signcolumn=yes]]
|
||||
vim.cmd [[set clipboard+=unnamedplus]]
|
||||
|
||||
vim.cmd.packadd('nvim.undotree')
|
||||
vim.pack.add({ 'https://github.com/neovim/nvim-lspconfig' })
|
||||
vim.pack.add({ 'https://github.com/tpope/vim-fugitive' })
|
||||
vim.pack.add({ 'https://github.com/esmuellert/codediff.nvim' })
|
||||
vim.pack.add({ 'https://github.com/stevearc/aerial.nvim' })
|
||||
vim.pack.add({ 'https://github.com/junegunn/fzf' })
|
||||
vim.pack.add({ 'https://github.com/junegunn/fzf.vim' })
|
||||
|
||||
vim.lsp.enable('ts_ls')
|
||||
|
||||
require('aerial').setup()
|
||||
|
||||
vim.g.mapleader = ' '
|
||||
vim.keymap.set('n', '<leader><Space>', '<cmd>wincmd w<CR>')
|
||||
vim.keymap.set('n', '<leader>w', '<cmd>write<CR>')
|
||||
vim.keymap.set('n', '<leader>q', '<cmd>quit<CR>')
|
||||
vim.keymap.set('n', '<leader>a', '<cmd>AerialNavToggle<CR>')
|
||||
vim.keymap.set('n', '<leader>f', '<cmd>Files<CR>')
|
||||
vim.keymap.set('n', '<leader>b', '<cmd>Buffers<CR>')
|
||||
vim.keymap.set('n', '<leader>j', '<cmd>Jumps<CR>')
|
||||
vim.keymap.set('n', '<leader>v', '<cmd>vsplit<CR><cmd>Files<CR>')
|
||||
vim.keymap.set("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>")
|
||||
vim.keymap.set('n', 'd', 'x', { noremap = true })
|
||||
vim.keymap.set('n', 'x', 'V', { noremap = true })
|
||||
vim.keymap.set('v', 'x', 'j', { noremap = true })
|
||||
|
|
@ -5,7 +5,7 @@ set -f DEFAULT_BASE 'ubuntu:25.10'
|
|||
set -f DEFAULT_USERNAME brent
|
||||
set -f DEFAULT_FULL_NAME 'Brent Schroeter'
|
||||
|
||||
argparse -S 'b/base=' 't/tag=' 'u/username=' 'email=' 'full-name=' 'runtime=' no-cache -- $argv
|
||||
argparse -S 'b/base=' 't/tag=' 'u/username=' 'email=' 'full-name=' no-cache -- $argv
|
||||
or return 1
|
||||
|
||||
if not set -ql _flag_tag
|
||||
|
|
@ -24,31 +24,28 @@ if not set -ql _flag_email
|
|||
echo '--email is required for VCS configuration' >&2
|
||||
return 1
|
||||
end
|
||||
if not set -ql _flag_runtime
|
||||
set -f _flag_runtime container
|
||||
end
|
||||
if test "$_flag_runtime" != docker -a "$_flag_runtime" != container
|
||||
echo '--runtime must be one of "docker" or "container"'
|
||||
return 1
|
||||
end
|
||||
|
||||
echo "Build configuration:"
|
||||
echo " base = $_flag_base"
|
||||
echo " tag = $_flag_tag"
|
||||
echo " username = $_flag_username"
|
||||
echo " email = $_flag_email"
|
||||
echo " full name = $_flag_full_name"
|
||||
echo " container runtime = $_flag_runtime"
|
||||
echo " base = $_flag_base"
|
||||
echo " tag = $_flag_tag"
|
||||
echo " username = $_flag_username"
|
||||
echo " email = $_flag_email"
|
||||
echo " full_name = $_flag_full_name"
|
||||
|
||||
set -ef no_cache_opt
|
||||
if set -ql _flag_no_cache
|
||||
set -f no_cache_opt --no-cache
|
||||
container build --no-cache -t "$_flag_tag" \
|
||||
--build-arg "BASE_IMAGE=$_flag_base" \
|
||||
--build-arg "USERNAME=$_flag_username" \
|
||||
--build-arg "VCS_EMAIL=$_flag_email" \
|
||||
--build-arg "VCS_NAME=$_flag_full_name" \
|
||||
--build-arg "CACHEBUST=$(date +%s)" \
|
||||
.
|
||||
else
|
||||
container build -t "$_flag_tag" \
|
||||
--build-arg "BASE_IMAGE=$_flag_base" \
|
||||
--build-arg "USERNAME=$_flag_username" \
|
||||
--build-arg "VCS_EMAIL=$_flag_email" \
|
||||
--build-arg "VCS_NAME=$_flag_full_name" \
|
||||
--build-arg "CACHEBUST=$(date +%s)" \
|
||||
.
|
||||
end
|
||||
|
||||
$_flag_runtime build $no_cache_opt -t "$_flag_tag" \
|
||||
--build-arg "BASE_IMAGE=$_flag_base" \
|
||||
--build-arg "USERNAME=$_flag_username" \
|
||||
--build-arg "VCS_EMAIL=$_flag_email" \
|
||||
--build-arg "VCS_NAME=$_flag_full_name" \
|
||||
-f Containerfile \
|
||||
.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue