Andrea Luzzardi
3dba19d9a0
Merge pull request #352 from TomChv/tests-aws-s3
...
Test AWS S3
2021-04-22 12:29:31 -07:00
Andrea Luzzardi
8cadd97c60
Merge pull request #344 from aluzzardi/registry-auth
...
support registry auth
2021-04-22 12:14:59 -07:00
Sam Alba
877b12fe4b
Revert "stdlib: dagger.io/dagger/op: stricter typing for load, mount, copy"
...
This reverts commit 3e2b46bf3a
.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-22 12:08:08 -07:00
Tom Chauveau
226be80d56
Fix directory upload on AWS s3
...
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-22 20:56:06 +02:00
Sam Alba
5be4ac1a1d
stdlib/rds: fixed error management
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-22 09:44:18 -07:00
Solomon Hykes
3e2b46bf3a
stdlib: dagger.io/dagger/op: stricter typing for load, mount, copy
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-21 20:41:00 -07:00
Andrea Luzzardi
692bd72095
support registry auth
...
HACK: the way buildkit works, we can only supply an Auth Provider for the entirety of the build session (`dagger up`). Therefore, we start by scanning all auth in the entire Cue tree and supply an auth provider for all of them.
Drawbacks:
- As soon as you add `auth` in a Pipeline for a registry, all other Pipelines have access to the same registry
- You can't use different credentials for the same registry
Fixes #301
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-20 15:28:33 -07:00
Sam Alba
468ac1220a
added comment about always
flag + cue fmt
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-15 12:34:15 -07:00
Sam Alba
3a195afa31
stdlib/aws/elb: RulePriority compute can now safely bypass the cache
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-15 12:12:01 -07:00
Tom Chauveau
32d523aa71
tests(stdlib/k8s/helm): test basic helm chart
...
tests(stdlib/k8s/helm): add verification
style(tests/): rename helper into verify to confirm that deployments works
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-15 14:24:42 +02:00
Vasek - Tom C
726e91962c
fix(stdlib/kubernetes): sourceInline
...
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-15 12:37:32 +02:00
Sam Alba
5d22e9ed43
stdlib: updated alpine base image and fixed pkg dependencies in sub libs
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-14 14:06:51 -07:00
Sam Alba
8e5024db37
fix alpine test + only select major versions for aws pkgs
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-14 13:54:21 -07:00
Sam Alba
413017f7cb
stdlib/aws: implemented s3
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-14 13:42:54 -07:00
Sam Alba
41f78d948e
stdlib/js/react: removed debug msg
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:14:44 -07:00
Sam Alba
c06f2aa55e
stdlib/aws: don't cache cloudformation
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
d320916e9f
stdlib/git: added subdir arg
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
89882dbe81
stdlib/js/react, stdlib/netlify: removed docker.#Container abstraction (gh issue #319 )
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
0b3395b9e8
stdlib/aws: implemented rds
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
d26ed13d88
fixed invalid references
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
b13ac200f3
cue fmt
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
9d6551e0bf
stdlib/aws: implemented elb helper to get a free RulePriority from a load balancer
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
bd49171455
stdlib/aws: implemented ecs run-task script to invoke containers on ecs
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
80b8e014b0
stdlib/aws: implemented ecr helper to get registry credentials
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Sam Alba
ec0e00e029
stdlib/aws: implemented #Script abstraction
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-13 14:13:11 -07:00
Frederick F. Kautz IV
0458c0a838
* add support for --input-file in dagger compute
...
* secrets now supports bytes
* error reporting for unhandled content data types in WriteFile
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-11 16:18:59 -07:00
Sam Alba
d0c5796c21
stdlib/kubernetes: removed left-over debug msgs
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-09 09:21:15 -07:00
Solomon Hykes
2d778ea2a7
stdlib: docker: default image for simple use cases
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-08 19:00:57 -07:00
Solomon Hykes
00710fe387
stdlib: netlify: use docker.#Container
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-08 19:00:57 -07:00
Solomon Hykes
4318aeb323
stdlib: docker: option "export" field
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-08 19:00:57 -07:00
Andrea Luzzardi
ae0ef42556
Merge pull request #290 from dagger/fix-kube-example
...
stdlib/kubernetes: split source with dagger.#Artifact and string
2021-04-07 17:00:06 -07:00
Solomon Hykes
ee621590ff
stdlib: dagger.io/js/react
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-07 16:28:39 -07:00
Sam Alba
464c4177d7
stdlib/kubernetes: split source with dagger.#Artifact and sourceInline (string) fixes #263
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-06 20:57:45 -07:00
Solomon Hykes
647e4c898b
stdlib: improved Docker package
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 15:41:36 -07:00
Solomon Hykes
299a38c6b1
Simplify "dev dagger with dagger" example
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 13:41:21 -07:00
Solomon Hykes
6673ae69b3
stdlib: rename dagger.io/llb to dagger.io/dagger/op
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 10:28:40 -07:00
Andrea Luzzardi
5afc762096
stdlib: go: set GOMODCACHE directory
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-05 14:37:00 -07:00
Andrea Luzzardi
c16455249e
cue files: #compute -> #up
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:08:15 -07:00
Andrea Luzzardi
8a4aa4d42b
pipeline: #compute -> #up
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:08:15 -07:00
Andrea Luzzardi
1a3dc3debc
dagger spec: fix Artifact definition
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-31 14:20:31 -07:00
Sam Alba
ca613ea50b
fix linting errors
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 09:36:19 -07:00
Sam Alba
a3513ed479
stdlib: helm: fixed typo + moved helm install to own exec to optimize caching
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 09:30:57 -07:00
Sam Alba
2daff0ee74
example: added kubernetes example with Helm
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 08:46:06 -07:00
Sam Alba
cbb4f325bf
stdlib: implemented kubernetes/helm
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 08:46:06 -07:00
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