Skip to content

Commit ea5547c

Browse files
Add nix stuff
1 parent 8a80003 commit ea5547c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

sbin/buildNativeContainer.sh

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#!/bin/bash
2-
./gradlew server:imageBuild -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.container-image.name=server-native
2+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
3+
pushd $SCRIPT_DIR/..
4+
nix-shell --run './gradlew server:app:imageBuild -Dquarkus.package.type=native -Dquarkus.native.container-build=true -Dquarkus.container-image.name=server-native'
5+
popd

sbin/startDocusaurus.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
3+
pushd $SCRIPT_DIR/..
4+
nix-shell --run './gradlew docsite:npm_run_start'
5+
popd

shell.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
with (import <nixpkgs> {});
2+
mkShell {
3+
buildInputs = [
4+
jdk11
5+
];
6+
}

0 commit comments

Comments
 (0)