Skip to content

Commit

Permalink
Provide a minio server for development
Browse files Browse the repository at this point in the history
- The server can be started with `nix run .#start-services start`
- Inside the `nix develop` environment, the AWS sdk will be properly
  configured to point at our local minio instance (and with valid
  credentials)
  • Loading branch information
thufschmitt committed Nov 3, 2023
1 parent e053238 commit 439cf92
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion project.ncl
@@ -1,6 +1,8 @@
let inputs = import "./nickel.lock.ncl" in
let organist = inputs.organist in

let minio_port = 9031 in

{
shells = organist.shells.Python310,

Expand All @@ -9,6 +11,20 @@ let organist = inputs.organist in
},

shells.dev = {
env = {
AWS_ENDPOINT_URL = "http://localhost:%{std.to_string minio_port}",
AWS_ACCESS_KEY_ID = "minioadmin",
AWS_SECRET_ACCESS_KEY = "minioadmin",
},
},

services = {
minio = nix-s%"
%{organist.import_nix "nixpkgs#minio"}/bin/minio server --address :%{std.to_string minio_port} ./.minio-data
"%,
},
}
| organist.OrganistExpression
| (
organist.OrganistExpression
& organist.services.Schema
)

0 comments on commit 439cf92

Please sign in to comment.