feature/tech #3
@ -177,7 +177,7 @@ ENV USER_ID "1000"
|
|||||||
ENV GROUP_ID "1000"
|
ENV GROUP_ID "1000"
|
||||||
ENV MEMBERS ""
|
ENV MEMBERS ""
|
||||||
|
|
||||||
RUN echo "HELLO!?!?"
|
RUN echo "HELLO!?!?1"
|
||||||
CMD exec /bin/bash -c "echo \"$MEMBERS\" | sed 's/ /\n/g' | xargs -n 2 /usr/sbin/groupadd -g; \
|
CMD exec /bin/bash -c "echo \"$MEMBERS\" | sed 's/ /\n/g' | xargs -n 2 /usr/sbin/groupadd -g; \
|
||||||
/usr/sbin/useradd -u $USER_ID -g $USER $USER; \
|
/usr/sbin/useradd -u $USER_ID -g $USER $USER; \
|
||||||
echo \"$MEMBERS\" | sed 's/ [0-9]\+ /,/g' | sed 's/[0-9]\+ //g' | xargs -I{} /usr/sbin/usermod -aG {} $USER; \
|
echo \"$MEMBERS\" | sed 's/ [0-9]\+ /,/g' | sed 's/[0-9]\+ //g' | xargs -I{} /usr/sbin/usermod -aG {} $USER; \
|
||||||
|
@ -25,7 +25,7 @@ bcli() {
|
|||||||
fi
|
fi
|
||||||
rmdir $HOME/tech
|
rmdir $HOME/tech
|
||||||
elif [ "$#" -eq 0 ]; then
|
elif [ "$#" -eq 0 ]; then
|
||||||
docker exec -u $(id -u):$(id -g) -it "bcli-$USER" /bin/bash
|
docker exec -u $(id -u) -it "bcli-$USER" /bin/bash
|
||||||
else
|
else
|
||||||
if [ "$1" != "--help" ]; then
|
if [ "$1" != "--help" ]; then
|
||||||
echo "error: unrecognized command '$1'"
|
echo "error: unrecognized command '$1'"
|
||||||
|
Loading…
Reference in New Issue
Block a user