dev-cli (sha256:cfd3ce62937c29c121dd807fba005ee63b12906d9dd9cc889ca0e6d27bcbe5c9)
Published 2025-12-12 01:24:05 +00:00 by will
Installation
docker pull git.happyvertical.com/will/dev-cli@sha256:cfd3ce62937c29c121dd807fba005ee63b12906d9dd9cc889ca0e6d27bcbe5c9sha256:cfd3ce62937c29c121dd807fba005ee63b12906d9dd9cc889ca0e6d27bcbe5c9Image layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:ddf1aa62235de6657123492b19d27d937c25668011b5ebf923a3f019200f8540 in / |
| CMD ["/bin/bash"] |
| ARG USERNAME=will |
| ARG USER_UID=1000 |
| ARG USER_GID=1000 |
| ARG NIXOS_CONFIG_REF=master |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c apt-get update && apt-get install -y curl xz-utils sudo git ca-certificates locales openssh-client && rm -rf /var/lib/apt/lists/* && locale-gen en_US.UTF-8 # buildkit |
| ENV LANG=en_US.UTF-8 |
| ENV LC_ALL=en_US.UTF-8 |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c set -e && if ! getent group ${USER_GID} >/dev/null; then groupadd --gid ${USER_GID} ${USERNAME}; fi && if ! id -u ${USERNAME} >/dev/null 2>&1; then if id -u ${USER_UID} >/dev/null 2>&1; then existing_user=$(id -nu ${USER_UID}); usermod -l ${USERNAME} -d /home/${USERNAME} -m "$existing_user"; else useradd --uid ${USER_UID} --gid ${USER_GID} -m -s /bin/bash ${USERNAME}; fi; fi && echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && mkdir -p /home/${USERNAME}/.local/bin && chown -R ${USER_UID}:${USER_GID} /home/${USERNAME} # buildkit |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c mkdir -p /nix && chown -R ${USER_UID}:${USER_GID} /nix # buildkit |
| USER will |
| WORKDIR /home/will |
| COPY --chown=will:will shared/install-nix.sh /tmp/install-nix.sh # buildkit |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c chmod +x /tmp/install-nix.sh && /tmp/install-nix.sh # buildkit |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c if [ -f /run/secrets/repo_user ] && [ -f /run/secrets/repo_pass ]; then REPO_USER=$(cat /run/secrets/repo_user) && REPO_PASS=$(cat /run/secrets/repo_pass) && git clone --depth 1 -b ${NIXOS_CONFIG_REF} "https://${REPO_USER}:${REPO_PASS}@git.happyvertical.com/will/nixos-config.git" /home/${USERNAME}/.nixos-config; else git clone --depth 1 -b ${NIXOS_CONFIG_REF} https://git.happyvertical.com/will/nixos-config.git /home/${USERNAME}/.nixos-config; fi # buildkit |
| COPY --chown=will:will shared/setup-home-manager.sh /tmp/setup-home-manager.sh # buildkit |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c chmod +x /tmp/setup-home-manager.sh # buildkit |
| ENV USER=will |
| ENV HOME=/home/will |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c . ~/.nix-profile/etc/profile.d/nix.sh && /tmp/setup-home-manager.sh cli # buildkit |
| COPY --chown=will:will cli/entrypoint.sh /entrypoint.sh # buildkit |
| RUN |4 USERNAME=will USER_UID=1000 USER_GID=1000 NIXOS_CONFIG_REF=master /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| ENV SHELL=/home/will/.nix-profile/bin/zsh |
| ENTRYPOINT ["/entrypoint.sh"] |
| CMD ["zsh"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2025-12-12T01:24:01.175Z |
| org.opencontainers.image.description | |
| org.opencontainers.image.licenses | |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.revision | 1c11bc18c86bf78587747c41279a94ad1bba0f9c |
| org.opencontainers.image.source | https://git.happyvertical.com/will/nixos-config |
| org.opencontainers.image.title | nixos-config |
| org.opencontainers.image.url | https://git.happyvertical.com/will/nixos-config |
| org.opencontainers.image.version | latest |
Details
2025-12-12 01:24:05 +00:00
Versions (6)
View all
Container
1
OCI / Docker
linux/amd64
2.1 GiB