Compare commits
2 commits
805d018187
...
e93303d232
| Author | SHA1 | Date | |
|---|---|---|---|
| e93303d232 | |||
| a2cf29be34 |
1 changed files with 39 additions and 4 deletions
43
devenv.nix
43
devenv.nix
|
|
@ -7,7 +7,11 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [
|
||||||
|
./nix/kafka.nix
|
||||||
|
];
|
||||||
|
# https://devenv.sh/basics/
|
||||||
|
# env.GREET = "devenv";
|
||||||
|
|
||||||
# https://devenv.sh/packages/
|
# https://devenv.sh/packages/
|
||||||
packages = [
|
packages = [
|
||||||
|
|
@ -49,14 +53,45 @@
|
||||||
"distributed-ticketing"
|
"distributed-ticketing"
|
||||||
"distributed-test"
|
"distributed-test"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
# initialDatabases =
|
||||||
|
# map
|
||||||
|
# (n: rec {
|
||||||
|
# name = n;
|
||||||
|
# user = "flexinale";
|
||||||
|
# pass = "flexinale";
|
||||||
|
# schema = pkgs.writeText "${name}.sql" ''
|
||||||
|
# CREATE DATABASE "${name}";
|
||||||
|
# GRANT ALL PRIVILEGES ON DATABASE "${name}" TO "${user}";
|
||||||
|
# '';
|
||||||
|
# })
|
||||||
|
# [
|
||||||
|
# "monolith"
|
||||||
|
# "modulith-1"
|
||||||
|
# "modulith-2"
|
||||||
|
# "distributed-backoffice"
|
||||||
|
# "distributed-besucherportal"
|
||||||
|
# "distributed-ticketing"
|
||||||
|
# "distributed-test"
|
||||||
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://devenv.sh/scripts/
|
# https://devenv.sh/scripts/
|
||||||
scripts.monolith-load.exec = ''
|
scripts.hello.exec = ''
|
||||||
cd ${config.env.DEVENV_ROOT}/flex-training-flexinale
|
echo hello from $GREET
|
||||||
mvn test -Dtest=testdata.TestDataLoader -pl flexinale-monolith -am
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# enterShell = ''
|
||||||
|
# hello
|
||||||
|
# git --version
|
||||||
|
# '';
|
||||||
|
|
||||||
|
# https://devenv.sh/tasks/
|
||||||
|
# tasks = {
|
||||||
|
# "myproj:setup".exec = "mytool build";
|
||||||
|
# "devenv:enterShell".after = [ "myproj:setup" ];
|
||||||
|
# };
|
||||||
|
|
||||||
# https://devenv.sh/tests/
|
# https://devenv.sh/tests/
|
||||||
enterTest = ''
|
enterTest = ''
|
||||||
echo "Running tests"
|
echo "Running tests"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue