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
[35m1:[0m connect | |
[35m1:[0m > in [34minit[0m | |
[35m1:[0m starting engine | |
[35m1:[0m starting engine [90m[0.26s][0m | |
Connected to engine 1212deac927f (version devel ()) | |
[35m1:[0m starting session | |
[35m1:[0m [0.26s] !!! STARTING SESSION | |
[35m1:[0m [0.27s] Failed to connect; retrying... name:"error" value:"make request: Post \"http://dagger/query\": rpc error: code = Unknown desc = server \"2ugkzmj3sxy6y1fzwz7rnpndx\" not found" | |
[35m1:[0m [0.41s] OK! | |
[35m1:[0m starting session [90m[0.15s][0m |
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
import sys | |
import anyio | |
import dagger | |
async def test(): | |
async with dagger.Connection(dagger.Config(log_output=sys.stderr)) as client: | |
src = client.host().directory(".") |
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
#!/bin/bash | |
set -eoux pipefail | |
default_state_dir=/var/lib/dagger | |
engine_version=${1:-v0.6.0} | |
dagger_cache="dagger-cache" | |
dagger_runner="dagger" | |
podman volume create $dagger_cache || true |
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
// on-push-or-pull-request executes the Dagger CI/CD pipeline | |
// for every push or pull request to any branch within this repo. | |
// | |
// It performs the following steps: | |
// - TBD | |
package main | |
import ( | |
"context" | |
"fmt" |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"dagger.io/dagger" | |
) |
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
query { | |
git(url: "https://github.com/dagger/dagger") { | |
branch(name: "main") { | |
tree { | |
readme: file(path: "README.md") { | |
contents | |
size | |
} | |
license: file(path: "LICENSE") { | |
contents |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"time" | |
"dagger.io/dagger" | |
) |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"time" | |
"dagger.io/dagger" | |
) |
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
# AWS CodeBuild | |
version: 0.2 | |
phases: | |
build: | |
commands: | |
- docker run --rm --privileged public.ecr.aws/eks-distro-build-tooling/binfmt-misc:qemu-v6.1.0 --install all | |
- go run ci/main.go test | |
- tail -n +1 output/*/*/*.out | |
NewerOlder