feat: change devbox to void linux
This commit is contained in:
parent
e05f690b61
commit
6aaf6e7842
3 changed files with 19 additions and 19 deletions
|
|
@ -65,7 +65,7 @@ jobs:
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
context: "{{defaultContext}}:${{ matrix.box.path }}"
|
context: "{{defaultContext}}:${{ matrix.box.path }}"
|
||||||
tags: |
|
tags: |
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,20 @@
|
||||||
FROM rust:alpine AS rust-builder
|
FROM rust:latest AS rust-builder
|
||||||
|
|
||||||
# setup cargo packages, prefer to use apk packages
|
# setup cargo packages, prefer to use apk packages
|
||||||
# to reduce build time and space
|
# to reduce build time and space
|
||||||
RUN \
|
RUN --mount=type=cache,target=/app/target/ \
|
||||||
--mount=type=cache,target=/var/cache/apk/ \
|
|
||||||
--mount=type=cache,target=/app/target/ \
|
|
||||||
--mount=type=cache,target=/usr/local/cargo/git/db \
|
--mount=type=cache,target=/usr/local/cargo/git/db \
|
||||||
--mount=type=cache,target=/usr/local/cargo/registry/ \
|
--mount=type=cache,target=/usr/local/cargo/registry/ \
|
||||||
apk add bash curl build-base openssl-dev \
|
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \
|
||||||
&& curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \
|
|
||||||
&& cargo binstall --no-confirm \
|
&& cargo binstall --no-confirm \
|
||||||
|
dotter
|
||||||
|
|
||||||
|
FROM ghcr.io/void-linux/void-glibc-full:latest
|
||||||
|
|
||||||
|
# Setup void packages
|
||||||
|
RUN --mount=type=cache,target=/var/cache/xbps/ \
|
||||||
|
xbps-install -Syu \
|
||||||
cocogitto \
|
cocogitto \
|
||||||
yazi-fm yazi-cli \
|
|
||||||
tealdeer
|
|
||||||
|
|
||||||
FROM quay.io/toolbx-images/alpine-toolbox:edge
|
|
||||||
|
|
||||||
# Setup alpine packages
|
|
||||||
RUN --mount=type=cache,target=/var/cache/apk/ \
|
|
||||||
apk update && apk upgrade && apk add \
|
|
||||||
build-base \
|
|
||||||
curl \
|
curl \
|
||||||
fd \
|
fd \
|
||||||
fzf \
|
fzf \
|
||||||
|
|
@ -27,12 +22,16 @@ RUN --mount=type=cache,target=/var/cache/apk/ \
|
||||||
lazygit \
|
lazygit \
|
||||||
neovim \
|
neovim \
|
||||||
nushell \
|
nushell \
|
||||||
openssh \
|
|
||||||
ripgrep \
|
ripgrep \
|
||||||
sd \
|
sd \
|
||||||
starship \
|
starship \
|
||||||
|
tealdeer \
|
||||||
tmux \
|
tmux \
|
||||||
tree-sitter-cli \
|
tree-sitter \
|
||||||
|
void-repo-multilib \
|
||||||
|
void-repo-multilib-nonfree \
|
||||||
|
void-repo-nonfree \
|
||||||
|
yazi \
|
||||||
zoxide \
|
zoxide \
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ root=false
|
||||||
start_now=true
|
start_now=true
|
||||||
|
|
||||||
additional_packages=""
|
additional_packages=""
|
||||||
|
additional_flags="--hostname devbox"
|
||||||
|
|
||||||
home="${HOME}/chroots/devbox"
|
home="${HOME}/chroots/devbox"
|
||||||
volume="${HOME}/.ssh:${HOME}/chroots/devbox/.ssh"
|
volume="${HOME}/.ssh:${HOME}/chroots/devbox/.ssh"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue