Skip to content

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed Oct 31, 2024
1 parent 2e54be5 commit 4ec4a9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
run: nix build .#datomic-pro
- name: Build datomic-pro oci image
run: nix build .#datomic-pro-container -o container
- name: Build datomic-pro oci image unstable
run: nix build .#datomic-pro-container-unstable -o container
- name: Build datomic-pro-peer nix package
run: nix build .#datomic-pro-peer
- name: Run NixOS module tests
run: nix flake check

Expand Down
14 changes: 1 addition & 13 deletions pkgs/datomic-pro-container-image.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
cacert,
coreutils,
datomic-generate-properties,
datomic-pro,
Expand All @@ -24,10 +23,6 @@ let
mysql_jdbc
];
};
entrypointSmall = writeShellScriptBin "datomic-entrypoint" ''
#! ${runtimeShell}
${datomicBuild}/bin/datomic-transactor "$DATOMIC_TRANSACTOR_PROPERTIES_PATH"
'';
entrypoint = writeShellScriptBin "datomic-entrypoint" ''
#! ${runtimeShell}
set -e
Expand Down Expand Up @@ -72,21 +67,14 @@ dockerTools.buildLayeredImage {
contents = [
dockerTools.usrBinEnv
dockerTools.binSh
#cacert
#datomic-generate-properties
#datomicBuild
#entrypoint
#env-shim
#mysql_jdbc
#sqlite-jdbc
];
extraCommands = ''
mkdir -p tmp
chmod 1777 tmp
'';

config = {
Entrypoint = [ "${entrypointSmall}/bin/datomic-entrypoint" ];
Entrypoint = [ "${entrypoint}/bin/datomic-entrypoint" ];
Env = [
"DATOMIC_TRANSACTOR_PROPERTIES_PATH=/config/transactor.properties"
"LC_ALL=C.UTF-8"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/datomic-pro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ stdenv.mkDerivation (
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,lib,share}
cp *transactor*.jar $out/lib/
mv *transactor*.jar $out/lib/
rm -rf peer*.jar presto-server
mkdir -p $out/share/datomic-pro
cp -R * $out/share/datomic-pro/
Expand Down

0 comments on commit 4ec4a9e

Please sign in to comment.