Compare commits

..

No commits in common. "main" and "dev_flutter" have entirely different histories.

4 changed files with 4 additions and 12 deletions

View file

@ -1,6 +1,6 @@
# My Awesome Flutter Docker # My Awesome Flutter Docker
it be a docker that allows to use the flutter software without it shall be a docker that allows to use the flutter software without
installing anything else than docker on the computer installing anything else than docker on the computer
## Install ## Install

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if ( docker start myawesomeflutterdocker > /dev/null ); then if ( docker start myawesomeflutterdocker > /dev/null ); then
docker exec -it myawesomeflutterdocker execin "/files/$PWD" "$(id -u)" "$(id -g)" flutter $* docker exec -it myawesomeflutterdocker execin /files/$PWD flutter $*
else else
echo "can't start myawesomeflutterdocke u.u" echo "can't start myawesomeflutterdocke u.u"
echo "maybe you need to reinstall myawesomeflutterdocker y.u" echo "maybe you need to reinstall myawesomeflutterdocker y.u"

View file

@ -2,7 +2,4 @@ FROM instrumentisto/flutter
COPY execin /bin/ COPY execin /bin/
RUN flutter --disable-analytics && flutter config --no-analytics # fuck you google
RUN flutter upgrade
CMD ["sleep", "infinity"] CMD ["sleep", "infinity"]

View file

@ -1,10 +1,5 @@
#!/bin/bash #!/bin/bash
cd $1 cd $1
NEWUID=$2 shift
NEWGID=$3 $*
shift 3
export NEWHOME="/home/user${NEWUID}_${NEWGID}/"
mkdir -p $NEWHOME
chown $NEWUID:$NEWGID $NEWHOME
HOME=$NEWHOME setpriv --reuid=$NEWUID --regid=$NEWGID --keep-groups $*