fix: run podman as user and correct default command
This commit is contained in:
parent
ed3dc4bb8f
commit
bc7d65a24b
@ -41,9 +41,6 @@ ADD home.tar.gz $DEV_HOME
|
|||||||
RUN mkdir -p $DEV_HOME/.ssh && \
|
RUN mkdir -p $DEV_HOME/.ssh && \
|
||||||
ssh-keyscan -p 2222 10.88.0.1 >> $DEV_HOME/.ssh/known_hosts && \
|
ssh-keyscan -p 2222 10.88.0.1 >> $DEV_HOME/.ssh/known_hosts && \
|
||||||
ssh-keyscan -p 22 github.com >> $DEV_HOME/.ssh/known_hosts && \
|
ssh-keyscan -p 22 github.com >> $DEV_HOME/.ssh/known_hosts && \
|
||||||
podman system connection add my-remote --identity $DEV_HOME/.ssh/id_ed25519 \
|
|
||||||
ssh://$POD_USER@10.88.0.1/run/user/${POD_UID}/podman/podman.sock && \
|
|
||||||
podman system connection set-default my-remote && \
|
|
||||||
for d in $DEV_HOME/.local \
|
for d in $DEV_HOME/.local \
|
||||||
$DEV_HOME/.config/fish/completions \
|
$DEV_HOME/.config/fish/completions \
|
||||||
$DEV_HOME/.config/fish/functions \
|
$DEV_HOME/.config/fish/functions \
|
||||||
@ -61,4 +58,8 @@ RUN mkdir -p $DEV_HOME/.ssh && \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
USER $DEV_USER
|
USER $DEV_USER
|
||||||
|
|
||||||
|
RUN podman system connection add my-remote --identity $DEV_HOME/.ssh/id_ed25519 \
|
||||||
|
ssh://$POD_USER@10.88.0.1/run/user/${POD_UID}/podman/podman.sock && \
|
||||||
|
podman system connection default my-remote
|
||||||
|
|
||||||
CMD ["/home/devuser/start.sh"]
|
CMD ["/home/devuser/start.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user