feat: add project dirs
All checks were successful
Build container / base-build (push) Successful in 2m44s

This commit is contained in:
Job
2025-10-19 13:40:44 +02:00
parent 1056536891
commit a406a9cc00
5 changed files with 7 additions and 3 deletions

View File

@@ -15,8 +15,10 @@ RUN useradd -ms /bin/bash user && \
USER user
WORKDIR /home/user
RUN mkdir .config .local .cache
RUN git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
COPY --chown=user:user config/bashrc .bashrc
COPY --chown=user:user config/git .config/git/config
COPY config/bin /usr/local/bin
VOLUME /home/user

View File

@@ -4,8 +4,6 @@
export EDITOR=nvim \
WAYLAND_DISPLAY=wayland-0 \
XDG_RUNTIME_DIR=/run/user/1000 \
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock \
DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus" \
PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] " \
TZ="Europe/Amsterdam"

2
containers/go/config.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
arg "-v $HOME/Documents/devc/go:/home/user/projects"

View File

@@ -0,0 +1,2 @@
#!/bin/bash
arg "-v $HOME/Documents/devc/infra:/home/user/projects"

View File

@@ -49,6 +49,7 @@ param_args() {
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
arg "-v /run/user/$UID/bus:/tmp/bus"
arg "-e HOST_HOME=$HOME" # Use to translate paths.
arg "-e DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/bus'"
;;
*) # Use unknown arguments a podman arguments.
arg "$1" ;;
@@ -58,7 +59,6 @@ param_args() {
}
### MAIN ###
# Get container registry from DEVC_REGISTRY env variable.
if [ -n "${DEVC_REGISTRY:-}" ]; then
registry="$DEVC_REGISTRY"