fix(build): remove /opt/secure directory from image builder script
This commit is contained in:
parent
37892e4c0a
commit
fcda25b36b
@ -6,7 +6,6 @@ IMG_NAME="analytics-backend-workspace"
|
||||
DEV_USER=devuser
|
||||
DEV_UID=1001
|
||||
DEV_GID=1001
|
||||
SECURE=/opt/secure
|
||||
DEV_HOME=/home/$DEV_USER
|
||||
|
||||
ctr=$(buildah from archlinux)
|
||||
@ -16,12 +15,11 @@ buildah run "$ctr" -- bash -c "\
|
||||
nodejs python podman fzf fd ripgrep jdk-openjdk fisher yazi less buildah \
|
||||
lazygit luarocks python-pynvim npm bash-completion tree-sitter-cli kitty-terminfo \
|
||||
lua51 openssh && pacman -Scc --noconfirm && groupadd secproc && groupadd -g $DEV_GID $DEV_USER && \
|
||||
useradd -ms /bin/fish -G secproc -u $DEV_UID -g $DEV_GID $DEV_USER && mkdir -m 511 -p $SECURE
|
||||
useradd -ms /bin/fish -G secproc -u $DEV_UID -g $DEV_GID $DEV_USER
|
||||
"
|
||||
|
||||
# copy start script, neovim, tmux setup and ssh setup
|
||||
buildah copy --chown $DEV_USER:$DEV_USER "$ctr" ./home/. $DEV_HOME
|
||||
buildah copy "$ctr" 00-allow-git.conf /etc/ssh/ssh_config.d/
|
||||
|
||||
# configure lazyvim
|
||||
# shellcheck disable=SC2016
|
||||
|
Loading…
x
Reference in New Issue
Block a user