Commit Graph

42 Commits

Author SHA1 Message Date
Sam Alba
57dfa96bee stdlib: implemented generic kubectl apply + fixes in eks
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 08:46:06 -07:00
Andrea Luzzardi
fbdfe27103 stdlib: netlify: export the deployUrl and logsUrl
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-18 18:37:45 -07:00
Sam Alba
eb6fe17df3
Merge pull request #188 from dagger/example-aws-eks
Example for deploying containers to AWS EKS
2021-03-18 16:37:29 -07:00
Sam Alba
dd5e5684b2 stdlib: moved kubeconfig to #Secret
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 16:26:38 -07:00
Sam Alba
13fa947062 stdlib: cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 16:09:43 -07:00
Sam Alba
54251f88b4 stdlib: share aws config cli
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 15:53:26 -07:00
Sam Alba
ea02b579d6 stdlib: implemented aws/eks
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-18 15:51:56 -07:00
Sam Alba
d282180ae6 stdlib: fixed deprecation error in cloudformation.cue
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-17 15:30:14 -07:00
Tony Worm
13198f8560 fix TitleCase error
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 16:59:32 -04:00
Tony Worm
aebf466b14 cuefmt
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 15:20:29 -04:00
Tony Worm
7ec96c45f8 add missing ops to #Op in stdlib/llb
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 13:56:35 -04:00
Solomon Hykes
54a2fe4393 stdlib package: llb
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-15 22:25:18 -07:00
Tony Worm
b1b534992a fix lint errors
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-15 22:08:54 -07:00
Tony Worm
0e32bc68f8 add file ops
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-15 22:08:54 -07:00
Tony Worm
472070d7f8 add #WriteFile and #Mkdir to #Op
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-15 22:08:54 -07:00
Solomon Hykes
6460a5c9fc Rename dagger.#Dir to dagger.#Artifact
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-13 00:11:59 -08:00
Solomon Hykes
be64c1576b stdlib package: git
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-12 18:10:36 -08:00
Solomon Hykes
41c973ba04 stdlib package: docker
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-12 18:10:36 -08:00
Andrea Luzzardi
c923e5042b cleanup: solver/fs
- Solver: Encapsulates all access to Buildkit. Can solve plain LLB, invoke external frontends (for DockerBuild) and export (for ContainerPush)
- FS (now BuildkitFS) implements the standard Go 1.16 io/fs.FS interface and provides a read-only filesystem on top of a buildkit result. It can be used with built-ins such as fs.WalkDir (no need to have our own Walk functions anymore)
- Moved CueBuild into compiler.Build since it no longer depends on Buildkit. Instead it relies on the io/fs.FS interface, which is used both for the base config and the stdlib (go:embed also uses io/fs.FS). Overlaying base and the stdlib is now done by the same code.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-12 13:38:49 -08:00
Andrea Luzzardi
c35eca99e1 push container support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-11 16:41:19 -08:00
Sam Alba
a546582388
Merge pull request #167 from dagger/secrets
Add dagger.#Secret to dagger spec
2021-03-10 15:21:20 -08:00
Andrea Luzzardi
db2184262c Add dagger.#Secret to dagger spec.
This currently does nothing and is only useful for flagging secrets.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-10 15:14:39 -08:00
Sam Alba
3f55f4cd1d ported tests + examples to new syntax
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-10 13:51:03 -08:00
Tony Worm
3e5df44a1d cue/fmt: stdlib/dagger
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-08 11:11:29 -05:00
Tony Worm
3a7a21326a fixes perf with dogfood
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-08 10:09:21 -05:00
Solomon Hykes
7a77466a66 DX: change "#dagger: compute: " to "#compute: "
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-03-06 19:39:22 -08:00
Sam Alba
aef0139920 implemented tmpfs mount test
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-04 14:06:48 -08:00
Sam Alba
5fed74bc55
Merge pull request #153 from dagger/example-aws-monitoring
AWS Cloudformation + HTTP monitoring example
2021-03-03 18:36:30 -08:00
Sam Alba
bac3ff4f68 stdlib: cuefmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-03 18:08:43 -08:00
Sam Alba
64ab495c82 implemented aws.#Config and aws/cloudformation packages in stdlib
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-03 17:33:19 -08:00
Sam Alba
98a06c67d2 add support for sub-dirs packages in stdlib
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-03 17:24:45 -08:00
Sam Alba
ee7bb3c3f5 implemented "write-file" and "mkdir" ops
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-03 17:24:21 -08:00
Andrea Luzzardi
eaf897352a stdlib: relax stdlib requirements
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-03 11:35:48 -08:00
Andrea Luzzardi
4bd0ffd3fc FetchContainer: Inject Docker image metadata into LLB
Fixes #130

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-25 14:47:46 -08:00
Andrea Luzzardi
bc2dae7e32 docker build support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-22 14:14:51 -08:00
Andrea Luzzardi
8fadaf419e stdlib: go: mount source rather than copying
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-19 14:35:01 -08:00
Andrea Luzzardi
d5830fbaca
Merge pull request #131 from dagger/dogfood-example
example: Dogfood
2021-02-19 12:12:07 -08:00
Andrea Luzzardi
60ce946950 stdlib: go support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-19 01:25:41 -08:00
Andrea Luzzardi
272f387737 stdlib: add alpine
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-18 18:32:42 -08:00
Andrea Luzzardi
3ab0563e80 cue module is now dagger.io
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 13:21:41 -08:00
Andrea Luzzardi
5ba6dd1617 embedded stdlib
This PR embeds the stdlib into the dagger binary itself for convenience.
Long term we will want to source the stdlib directly from git.

- Updated go to 1.16 to use the new built-in embedding functionality
- The `stdlib` go package now contains an embed of the stdlib

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 10:08:56 -08:00
Solomon Hykes
e8527ddcf5 No more runtime spec validation
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:30:46 +00:00