Compare commits

..

3 commits

Author SHA1 Message Date
zy
87fd989a7b s 2025-06-06 13:36:23 +02:00
zy
e35a504e57 fix: typo 2025-04-15 01:23:23 +02:00
zy
37276b401a add: flutter 2025-04-15 01:21:59 +02:00
4 changed files with 12 additions and 4 deletions

View file

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

View file

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

View file

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

View file

@ -1,5 +1,10 @@
#!/bin/bash
cd $1
shift
$*
NEWUID=$2
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 $*