update makefile
This commit is contained in:
parent
3c5af220e7
commit
68f86e0586
3 changed files with 27 additions and 5 deletions
11
Makefile
11
Makefile
|
|
@ -1,2 +1,13 @@
|
||||||
all:
|
all:
|
||||||
|
git submodule update --init
|
||||||
|
cd server && git submodule update --init
|
||||||
|
cd server && make dev-setup
|
||||||
|
cd server && make build-js
|
||||||
|
cd server && npm run sass
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm nixos.qcow2
|
||||||
|
|
||||||
|
|
||||||
|
run:
|
||||||
QEMU_NET_OPTS="hostfwd=tcp::8080-:80,hostfwd=tcp::1433-:143,hostfwd=tcp::5877-:587" nixos-shell vm-nextcloud.nix
|
QEMU_NET_OPTS="hostfwd=tcp::8080-:80,hostfwd=tcp::1433-:143,hostfwd=tcp::5877-:587" nixos-shell vm-nextcloud.nix
|
||||||
|
|
|
||||||
13
README.md
13
README.md
|
|
@ -1,9 +1,16 @@
|
||||||
To run development environment simply execute
|
Build test environment
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/onny/nixos-nextcloud-testumgebung.git
|
git clone https://github.com/onny/nixos-nextcloud-testumgebung.git
|
||||||
cd nixos-nextcloud-testumgebung
|
cd nixos-nextcloud-testumgebung
|
||||||
git submodule update --init
|
|
||||||
nix develop
|
nix develop
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
on NixOS :)
|
|
||||||
|
Run virtual machine
|
||||||
|
|
||||||
|
```
|
||||||
|
make run
|
||||||
|
```
|
||||||
|
|
||||||
|
Requires NixOS :)
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,15 @@
|
||||||
# Remove first run wizard and password policy check from Nextcloud
|
# Remove first run wizard and password policy check from Nextcloud
|
||||||
# package
|
# package
|
||||||
nextcloud25 = super.nextcloud25.overrideAttrs (oldAttrs: rec {
|
nextcloud25 = super.nextcloud25.overrideAttrs (oldAttrs: rec {
|
||||||
|
patches = [];
|
||||||
src = ./server;
|
src = ./server;
|
||||||
installPhase = oldAttrs.installPhase + ''
|
installPhase = oldAttrs.installPhase + ''
|
||||||
rm -r $out/apps/firstrunwizard
|
mkdir -p $out/
|
||||||
rm -r $out/apps/password_policy
|
cp -R . $out/
|
||||||
|
#rm -r $out/apps/firstrunwizard
|
||||||
|
#rm -r $out/apps/password_policy
|
||||||
'';
|
'';
|
||||||
|
dontBuild = true;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue