feat: add project dirs
All checks were successful
Build container / base-build (push) Successful in 2m44s
All checks were successful
Build container / base-build (push) Successful in 2m44s
This commit is contained in:
@@ -15,8 +15,10 @@ RUN useradd -ms /bin/bash user && \
|
|||||||
USER user
|
USER user
|
||||||
WORKDIR /home/user
|
WORKDIR /home/user
|
||||||
RUN mkdir .config .local .cache
|
RUN mkdir .config .local .cache
|
||||||
|
|
||||||
RUN git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
|
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/bashrc .bashrc
|
||||||
COPY --chown=user:user config/git .config/git/config
|
COPY --chown=user:user config/git .config/git/config
|
||||||
COPY config/bin /usr/local/bin
|
COPY config/bin /usr/local/bin
|
||||||
|
|
||||||
VOLUME /home/user
|
VOLUME /home/user
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
export EDITOR=nvim \
|
export EDITOR=nvim \
|
||||||
WAYLAND_DISPLAY=wayland-0 \
|
WAYLAND_DISPLAY=wayland-0 \
|
||||||
XDG_RUNTIME_DIR=/run/user/1000 \
|
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\] " \
|
PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] " \
|
||||||
TZ="Europe/Amsterdam"
|
TZ="Europe/Amsterdam"
|
||||||
|
|
||||||
|
|||||||
2
containers/go/config.sh
Normal file
2
containers/go/config.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
arg "-v $HOME/Documents/devc/go:/home/user/projects"
|
||||||
2
containers/infra/config.sh
Normal file
2
containers/infra/config.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
arg "-v $HOME/Documents/devc/infra:/home/user/projects"
|
||||||
2
devc.sh
2
devc.sh
@@ -49,6 +49,7 @@ param_args() {
|
|||||||
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
|
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
|
||||||
arg "-v /run/user/$UID/bus:/tmp/bus"
|
arg "-v /run/user/$UID/bus:/tmp/bus"
|
||||||
arg "-e HOST_HOME=$HOME" # Use to translate paths.
|
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.
|
*) # Use unknown arguments a podman arguments.
|
||||||
arg "$1" ;;
|
arg "$1" ;;
|
||||||
@@ -58,7 +59,6 @@ param_args() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
|
|
||||||
# Get container registry from DEVC_REGISTRY env variable.
|
# Get container registry from DEVC_REGISTRY env variable.
|
||||||
if [ -n "${DEVC_REGISTRY:-}" ]; then
|
if [ -n "${DEVC_REGISTRY:-}" ]; then
|
||||||
registry="$DEVC_REGISTRY"
|
registry="$DEVC_REGISTRY"
|
||||||
|
|||||||
Reference in New Issue
Block a user