mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 03:26:27 +02:00
Use Docker volumes and nodemon in development
This commit is contained in:
parent
c238ff6254
commit
a013613a59
5 changed files with 712 additions and 34 deletions
|
@ -42,6 +42,12 @@ with pkgs; rec {
|
|||
gnugrep
|
||||
rename
|
||||
util-linux
|
||||
nodejs-16_x
|
||||
yarn
|
||||
python3
|
||||
gcc
|
||||
gnumake
|
||||
gnused
|
||||
];
|
||||
|
||||
extraCommands = ''
|
||||
|
@ -53,6 +59,9 @@ with pkgs; rec {
|
|||
echo "nixbld$i:x:$(( $i + 30000 )):30000:Nix build user $i:/var/empty:/run/current-system/sw/bin/nologin" >> etc/passwd
|
||||
done
|
||||
|
||||
mkdir -p usr/bin
|
||||
ln -s /bin/env usr/bin/env
|
||||
chmod -R 1777 usr
|
||||
chmod 1777 {,var/}tmp/
|
||||
'';
|
||||
|
||||
|
@ -86,4 +95,4 @@ with pkgs; rec {
|
|||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue