{"id":20324965,"url":"https://github.com/dagger/examples","last_synced_at":"2025-05-08T01:30:39.907Z","repository":{"id":59609621,"uuid":"516845556","full_name":"dagger/examples","owner":"dagger","description":null,"archived":true,"fork":false,"pushed_at":"2023-11-21T20:12:36.000Z","size":1022,"stargazers_count":52,"open_issues_count":0,"forks_count":16,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-30T23:52:58.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dagger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-22T18:08:40.000Z","updated_at":"2025-02-03T07:03:10.000Z","dependencies_parsed_at":"2023-11-21T18:49:03.093Z","dependency_job_id":null,"html_url":"https://github.com/dagger/examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagger%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagger%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagger%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dagger%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dagger","download_url":"https://codeload.github.com/dagger/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252981405,"owners_count":21835421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T19:38:18.504Z","updated_at":"2025-05-08T01:30:38.752Z","avatar_url":"https://github.com/dagger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATION NOTICE\n\nThis repository is deprecated and will be removed on 21 Nov 2023. Dagger SDK examples in this repository have been migrated to the [primary Dagger repository](https://github.com/dagger/dagger) and work will continue in the new locations below:\n\n- [Go SDK examples](https://github.com/dagger/dagger/tree/main/examples/sdk/go)\n- [Node.js SDK examples](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs)\n- [Python SDK examples](https://github.com/dagger/dagger/tree/main/examples/sdk/python)\n- [CLI examples](https://github.com/dagger/dagger/tree/main/examples/cli)\n\n# Dagger Examples\n\n## Core Concepts\n\n### Mounting source files to a container\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/db-service/main.go#L37)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/db-service/build.js#L19)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/db-service/pipeline.py#L28)\n\n### Multi-stage build\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/multistage/main.go#L31)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/multistage/build.js#L14)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/multistage/pipeline.py#L19)\n\n### Multi-platform build\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/multiplatform/main.go#L30)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/multiplatform/build.js#L16)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/multiplatform/pipeline.py#L19)\n\n### Cache mounts\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/multiplatform/main.go#L34)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/multiplatform/build.js#L20)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/multiplatform/pipeline.py#L23)\n\n### Concurrency\n\nNote: While the DAG is constructed serially, the engine will execute the full DAG when the build artifacts directory is exported. Since each platform's build doesn't depend on the others, the engine will execute each build concurrently.\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/multiplatform/main.go#L29)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/multiplatform/build.js#L15)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/multiplatform/pipeline.py#L17)\n\n### Container publishing\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/multistage/main.go#L41)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/multistage/build.js#L23)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/multistage/pipeline.py#L30)\n\n### Secrets\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/secrets/main.go#L21)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/secrets/ci.js#L6)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/secrets/pipeline.py#L9)\n\n### Services\n\n- [Go](https://github.com/dagger/dagger/blob/main/examples/sdk/go/db-service/main.go#L22)\n- [NodeJS](https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/db-service/build.js#L6)\n- [Python](https://github.com/dagger/dagger/blob/main/examples/sdk/python/db-service/pipeline.py#L10)\n\n## By Language\n\n### Go\n\n- [multiarch build](https://github.com/dagger/dagger/tree/main/examples/sdk/go/multiarch-build/)\n- [npm build](https://github.com/dagger/dagger/tree/main/examples/sdk/go/npm-build/)\n- [yarn build](https://github.com/dagger/dagger/tree/main/examples/sdk/go/yarn-build/)\n- [gradle build](https://github.com/dagger/dagger/tree/main/examples/sdk/go/gradle-build/)\n- [services](https://github.com/dagger/dagger/tree/main/examples/sdk/go/db-service/)\n- [secrets](https://github.com/dagger/dagger/tree/main/examples/sdk/go/secrets/)\n- [multiplatform](https://github.com/dagger/dagger/tree/main/examples/sdk/go/multiplatform/)\n- [multistage](https://github.com/dagger/dagger/tree/main/examples/sdk/go/multistage/)\n- [replace dockerfile](https://github.com/dagger/dagger/tree/main/examples/sdk/go/replace-dockerfile/)\n- [aws cdk](https://github.com/dagger/dagger/tree/main/examples/sdk/go/aws-cdk/)\n\n### Python\n\n- [basic example](https://github.com/dagger/dagger/tree/main/examples/sdk/python/basic-example/)\n- [services](https://github.com/dagger/dagger/tree/main/examples/sdk/python/db-service/)\n- [secrets](https://github.com/dagger/dagger/tree/main/examples/sdk/python/secrets/)\n- [multiplatform](https://github.com/dagger/dagger/tree/main/examples/sdk/python/multiplatform/)\n- [multistage](https://github.com/dagger/dagger/tree/main/examples/sdk/python/multistage/)\n\n### Node.js (Typescript/Javascript)\n\n- [react build](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs/react-build/)\n- [services](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs/db-service/)\n- [secrets](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs/secrets/)\n- [multiplatform](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs/multiplatform/)\n- [multistage](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs/multistage/)\n- [Pulumi](https://github.com/dagger/dagger/tree/main/examples/sdk/nodejs/pulumi/)\n\n### Bash with Dagger CLI and GraphQL\n\n- [git build](https://github.com/dagger/dagger/tree/main/examples/cli/git-build/)\n\n### GraphQL queries\n\n- TODO. [API Reference here](https://docs.dagger.io/api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagger%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdagger%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagger%2Fexamples/lists"}