-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,028 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
run/ | ||
cache/ | ||
lib/ | ||
log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "dagger", | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,279 @@ | ||
{ | ||
"lockfile-version": 1, | ||
"manifest": { | ||
"version": 1, | ||
"install": { | ||
"coreutils": { | ||
"pkg-path": "coreutils" | ||
}, | ||
"dagger": { | ||
"flake": "github:dagger/nix#dagger" | ||
} | ||
}, | ||
"vars": {}, | ||
"hook": { | ||
"on-activate": "\n# TODO: check that docker is running using `docker info`\n\nexport DAGGER_VERSION=$(dagger version | cut -d 'v' -f 2 | cut -d ' ' -f 1)\nexport DAGGER_ENGINE_IMAGE=\"registry.dagger.io/engine:v$DAGGER_VERSION\"\nexport DAGGER_ENGINE_NAME=\"flox-dagger-engine-$DAGGER_VERSION\"\nexport _EXPERIMENTAL_DAGGER_RUNNER_HOST=\"docker-container://$DAGGER_ENGINE_NAME\"\n" | ||
}, | ||
"profile": { | ||
"common": "# TODO: tell how to use dagger\n" | ||
}, | ||
"options": { | ||
"systems": [ | ||
"aarch64-darwin", | ||
"aarch64-linux", | ||
"x86_64-darwin", | ||
"x86_64-linux" | ||
], | ||
"allow": { | ||
"licenses": [] | ||
}, | ||
"semver": {} | ||
}, | ||
"services": { | ||
"dagger-engine": { | ||
"command": "# For more see: https://docs.dagger.io/configuration/custom-runner\ndocker run \\\n --rm \\\n --privileged \\\n -v dagger-engine:/var/lib/dagger \\\n --name $DAGGER_ENGINE_NAME \\\n $DAGGER_ENGINE_IMAGE\n", | ||
"vars": null, | ||
"is-daemon": null, | ||
"shutdown": null, | ||
"systems": null | ||
} | ||
}, | ||
"build": {} | ||
}, | ||
"packages": [ | ||
{ | ||
"attr_path": "coreutils", | ||
"broken": false, | ||
"derivation": "/nix/store/vfg938b84ynz7csm2skx674fx2xh7b5q-coreutils-9.5.drv", | ||
"description": "GNU Core Utilities", | ||
"install_id": "coreutils", | ||
"license": "GPL-3.0-or-later", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"name": "coreutils-9.5", | ||
"pname": "coreutils", | ||
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"rev_count": 692963, | ||
"rev_date": "2024-10-14T06:48:30Z", | ||
"scrape_date": "2024-10-16T03:55:11Z", | ||
"stabilities": [ | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "9.5", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"info": "/nix/store/8rnzj25fishm1d6z4y8b5lb86s45bkm1-coreutils-9.5-info", | ||
"out": "/nix/store/b7j95xd7yccclshfln10k843q2qf20yg-coreutils-9.5" | ||
}, | ||
"system": "aarch64-darwin", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "coreutils", | ||
"broken": false, | ||
"derivation": "/nix/store/wdai1c4vx0yr6avk96fjpsh27nq2h0fw-coreutils-9.5.drv", | ||
"description": "GNU Core Utilities", | ||
"install_id": "coreutils", | ||
"license": "GPL-3.0-or-later", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"name": "coreutils-9.5", | ||
"pname": "coreutils", | ||
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"rev_count": 692963, | ||
"rev_date": "2024-10-14T06:48:30Z", | ||
"scrape_date": "2024-10-16T03:55:11Z", | ||
"stabilities": [ | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "9.5", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"debug": "/nix/store/05xfc02h42y6xs1giwgnvmkwp8x136hl-coreutils-9.5-debug", | ||
"info": "/nix/store/gv411q70m9qx6754zvzpaw7vfnk37wrn-coreutils-9.5-info", | ||
"out": "/nix/store/cqnb5spmpzvc32h16568s028frzvz8hs-coreutils-9.5" | ||
}, | ||
"system": "aarch64-linux", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "coreutils", | ||
"broken": false, | ||
"derivation": "/nix/store/3ckxxi4h62fc70rb676cq7866v4qivqm-coreutils-9.5.drv", | ||
"description": "GNU Core Utilities", | ||
"install_id": "coreutils", | ||
"license": "GPL-3.0-or-later", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"name": "coreutils-9.5", | ||
"pname": "coreutils", | ||
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"rev_count": 692963, | ||
"rev_date": "2024-10-14T06:48:30Z", | ||
"scrape_date": "2024-10-16T03:55:11Z", | ||
"stabilities": [ | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "9.5", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"info": "/nix/store/x900szhk9vk50swrlj41wbpm1bzmpbj5-coreutils-9.5-info", | ||
"out": "/nix/store/k8pmb9qpypmip7ph667abbs6rllfd1f1-coreutils-9.5" | ||
}, | ||
"system": "x86_64-darwin", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"attr_path": "coreutils", | ||
"broken": false, | ||
"derivation": "/nix/store/9vqf51lf53y47mjxg58b66j3vzhpqgjg-coreutils-9.5.drv", | ||
"description": "GNU Core Utilities", | ||
"install_id": "coreutils", | ||
"license": "GPL-3.0-or-later", | ||
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"name": "coreutils-9.5", | ||
"pname": "coreutils", | ||
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", | ||
"rev_count": 692963, | ||
"rev_date": "2024-10-14T06:48:30Z", | ||
"scrape_date": "2024-10-16T03:55:11Z", | ||
"stabilities": [ | ||
"unstable" | ||
], | ||
"unfree": false, | ||
"version": "9.5", | ||
"outputs_to_install": [ | ||
"out" | ||
], | ||
"outputs": { | ||
"debug": "/nix/store/faxmahlbgdg3mz3mbgnmnn6sf5hsvcb8-coreutils-9.5-debug", | ||
"info": "/nix/store/kb44yznfd4w4asrr6rsc3x4zm99nz426-coreutils-9.5-info", | ||
"out": "/nix/store/ph44jcx3ddmlwh394mh1wb7f1qigxqb1-coreutils-9.5" | ||
}, | ||
"system": "x86_64-linux", | ||
"group": "toplevel", | ||
"priority": 5 | ||
}, | ||
{ | ||
"install_id": "dagger", | ||
"locked-url": "github:dagger/nix/ddf4f5a9c2506235119d527a9461014aff39b11a", | ||
"flake-description": "Dagger NUR repository", | ||
"locked-flake-attr-path": "packages.aarch64-darwin.dagger", | ||
"derivation": "/nix/store/15kiy2zw3nsdcy59rqsvldkknlnq8b67-dagger-0.13.5.drv", | ||
"outputs": { | ||
"out": "/nix/store/7s8839iyvryqqmkq1fnn02rvfyalbyr7-dagger-0.13.5" | ||
}, | ||
"output-names": [ | ||
"out" | ||
], | ||
"outputs-to-install": [ | ||
"out" | ||
], | ||
"package-system": "aarch64-darwin", | ||
"system": "aarch64-darwin", | ||
"name": "dagger-0.13.5", | ||
"pname": "dagger", | ||
"version": "0.13.5", | ||
"description": "Dagger is an integrated platform to orchestrate the delivery of applications", | ||
"licenses": [ | ||
"Apache-2.0" | ||
], | ||
"broken": false, | ||
"unfree": false, | ||
"priority": 5 | ||
}, | ||
{ | ||
"install_id": "dagger", | ||
"locked-url": "github:dagger/nix/ddf4f5a9c2506235119d527a9461014aff39b11a", | ||
"flake-description": "Dagger NUR repository", | ||
"locked-flake-attr-path": "packages.aarch64-linux.dagger", | ||
"derivation": "/nix/store/jg79s0jxhh3sa0lyqjmdcbpbw88cili6-dagger-0.13.5.drv", | ||
"outputs": { | ||
"out": "/nix/store/q90cd3l6sl9ih9cfkafyr84c3a1yn6fv-dagger-0.13.5" | ||
}, | ||
"output-names": [ | ||
"out" | ||
], | ||
"outputs-to-install": [ | ||
"out" | ||
], | ||
"package-system": "aarch64-linux", | ||
"system": "aarch64-linux", | ||
"name": "dagger-0.13.5", | ||
"pname": "dagger", | ||
"version": "0.13.5", | ||
"description": "Dagger is an integrated platform to orchestrate the delivery of applications", | ||
"licenses": [ | ||
"Apache-2.0" | ||
], | ||
"broken": false, | ||
"unfree": false, | ||
"priority": 5 | ||
}, | ||
{ | ||
"install_id": "dagger", | ||
"locked-url": "github:dagger/nix/ddf4f5a9c2506235119d527a9461014aff39b11a", | ||
"flake-description": "Dagger NUR repository", | ||
"locked-flake-attr-path": "packages.x86_64-darwin.dagger", | ||
"derivation": "/nix/store/ckplnjw5jnjsg1wzwr1l3rv2nycyvk9k-dagger-0.13.5.drv", | ||
"outputs": { | ||
"out": "/nix/store/ljvf569pzkijvk2rcjly2spdysbpgl0y-dagger-0.13.5" | ||
}, | ||
"output-names": [ | ||
"out" | ||
], | ||
"outputs-to-install": [ | ||
"out" | ||
], | ||
"package-system": "x86_64-darwin", | ||
"system": "x86_64-darwin", | ||
"name": "dagger-0.13.5", | ||
"pname": "dagger", | ||
"version": "0.13.5", | ||
"description": "Dagger is an integrated platform to orchestrate the delivery of applications", | ||
"licenses": [ | ||
"Apache-2.0" | ||
], | ||
"broken": false, | ||
"unfree": false, | ||
"priority": 5 | ||
}, | ||
{ | ||
"install_id": "dagger", | ||
"locked-url": "github:dagger/nix/ddf4f5a9c2506235119d527a9461014aff39b11a", | ||
"flake-description": "Dagger NUR repository", | ||
"locked-flake-attr-path": "packages.x86_64-linux.dagger", | ||
"derivation": "/nix/store/40jyfkxp1igi2cvz2905imrrs6jkfkph-dagger-0.13.5.drv", | ||
"outputs": { | ||
"out": "/nix/store/9asx0x59pwp0y4p2ml9qkp5r3ays2kg2-dagger-0.13.5" | ||
}, | ||
"output-names": [ | ||
"out" | ||
], | ||
"outputs-to-install": [ | ||
"out" | ||
], | ||
"package-system": "x86_64-linux", | ||
"system": "x86_64-linux", | ||
"name": "dagger-0.13.5", | ||
"pname": "dagger", | ||
"version": "0.13.5", | ||
"description": "Dagger is an integrated platform to orchestrate the delivery of applications", | ||
"licenses": [ | ||
"Apache-2.0" | ||
], | ||
"broken": false, | ||
"unfree": false, | ||
"priority": 5 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version = 1 | ||
|
||
[install] | ||
coreutils.pkg-path = "coreutils" | ||
dagger.flake = "github:dagger/nix#dagger" | ||
|
||
[vars] | ||
# Get token from -> https://dagger.cloud/traces/setup | ||
# DAGGER_CLOUD_TOKEN = "your-token-here" | ||
|
||
|
||
[hook] | ||
on-activate = ''' | ||
# TODO: check that docker is running using `docker info` | ||
export DAGGER_VERSION=$(dagger version | cut -d 'v' -f 2 | cut -d ' ' -f 1) | ||
export DAGGER_ENGINE_IMAGE="registry.dagger.io/engine:v$DAGGER_VERSION" | ||
export DAGGER_ENGINE_NAME="flox-dagger-engine-$DAGGER_VERSION" | ||
export _EXPERIMENTAL_DAGGER_RUNNER_HOST="docker-container://$DAGGER_ENGINE_NAME" | ||
''' | ||
|
||
[profile] | ||
common = ''' | ||
# TODO: tell how to use dagger | ||
''' | ||
|
||
[services] | ||
dagger-engine.command = ''' | ||
# For more see: https://docs.dagger.io/configuration/custom-runner | ||
docker run \ | ||
--rm \ | ||
--privileged \ | ||
-v dagger-engine:/var/lib/dagger \ | ||
--name $DAGGER_ENGINE_NAME \ | ||
$DAGGER_ENGINE_IMAGE | ||
''' | ||
|
||
[options] | ||
systems = [ | ||
"aarch64-darwin", | ||
"aarch64-linux", | ||
"x86_64-darwin", | ||
"x86_64-linux", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/sdk/** linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/sdk | ||
/.venv | ||
/**/__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "dagger", | ||
"sdk": "python", | ||
"engineVersion": "v0.13.5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[project] | ||
name = "main" | ||
version = "0.1.0" | ||
requires-python = ">=3.12" | ||
dependencies = ["dagger-io"] | ||
|
||
[tool.uv.sources] | ||
dagger-io = { path = "sdk", editable = true } | ||
|
||
[build-system] | ||
requires = ["hatchling==1.25.0"] | ||
build-backend = "hatchling.build" |
Oops, something went wrong.