Commit Graph

398 Commits

Author SHA1 Message Date
Guillaume de Rouville
e3eee6068e Netlify: leverage --fail-with-body to finally print error's output
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-30 16:53:47 +02:00
Andrea Luzzardi
59281b38fc tests: gcs: force dependency between deploy and verify
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-30 16:41:50 +02:00
Guillaume de Rouville
4ad5434ce9 aws: force dependency between deploy and verify
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-30 16:31:06 +02:00
Andrea Luzzardi
c20c272940 tests: google-gcr: update CI keys
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-30 16:23:32 +02:00
Scott Lewis-Kelly
635b9306b8 stdlib: Add GCS support
The interface and behavior is identical to S3.

Signed-off-by: Scott Lewis-Kelly <slewiskelly@slewiskel.ly>
2021-06-30 16:23:32 +02:00
Tom Chauveau
34382fd497 Reduce the number of character from helm chart to avoid
bugs

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-30 13:42:19 +02:00
Andrea Luzzardi
02ed4d81ee
Merge pull request #749 from grouville/interactive_shell_loglevel_bug
Skip Docker.#Local in bats tests (not working) + fix stdout redirection leading to uncatched missing inputs
2021-06-30 12:34:01 +02:00
Andrea Luzzardi
cc1e0cd6dc
Merge pull request #747 from TomChv/parallel-compose-tests
Compose tests doesn't bind a special port anymore
2021-06-30 12:31:47 +02:00
Andrea Luzzardi
65b4dea949
Merge pull request #746 from samalba/netlify-build
Netlify build
2021-06-30 12:23:01 +02:00
Alvise
7776e6def3 Check if problem is linked with docker from docker
Signed-off-by: Alvise <vitalvise@gmail.com>
2021-06-29 16:26:31 +00:00
Andrea Luzzardi
6690aa411e tests: java-maven: use dagger-ci encryption key
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-29 18:10:34 +02:00
Alvise
f807314668 Add maven package in stdlib
Signed-off-by: Alvise <vitalvise@gmail.com>
2021-06-29 15:09:32 +02:00
Guillaume de Rouville
d5457d6d03 Skip Docker.#Local in bats tests (not working) + fix stdout redirection issue leading to warning loglevel and tests not failing on missing inputs
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-28 19:56:21 +02:00
Tom Chauveau
8e8438e464 Compose tests doesn't bind a special port anymore
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-28 17:36:01 +02:00
Sam Alba
745d1084be stdlib/netlify: added support for netlify build
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-28 16:22:29 +02:00
Sam Alba
6fb9690ecd stdlib/netlify: bump netlify-cli version
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-28 16:15:03 +02:00
Tom Chauveau
e1c72890ec Add random name generation to avoid orphans during parallel CI
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-26 16:18:18 +02:00
Tom Chauveau
020c458921 Add project management in compose.#App definition
I found an issue when during tests execution : there was orphan.
It's because #App doesn't give way to specify the compose project,
by default it's the directory where you launch your app but in our
definition, it will always be source.

The problem is that if we launch two differents docker-compose in the same
server, his project name will be source for both and it will create
orphans problems on cleanup (by docker-compose down).

This case is exactly what we do in tests so I've add the field name
to specify the projet name and avoid that issue.

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-26 16:07:14 +02:00
Andrea Luzzardi
ad1eb75893
Merge pull request #572 from TomChv/docker-compose
Add Docker compose package
2021-06-25 19:35:32 +02:00
Tom Chauveau
2fbb9e7744 Update import to alpha version
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 17:26:51 +02:00
Tom Chauveau
aaa6f8f351 Simplify tests
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 17:16:11 +02:00
Tom Chauveau
c99e39ec9c Move tests plan from dagger dir to universe
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 17:00:38 +02:00
Tom Chauveau
e4ac04c98c Update import to new alpha version
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 16:56:28 +02:00
Tom Chauveau
ae209ee090 Add compose.#Up test in universe
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 16:56:28 +02:00
Tom Chauveau
5029b5d815 Refactor compose.#Up definition to use docker.#Command
Add some feature to docker.#Command to :
- Copy artifact in the container
- Write files in the container
- Login to registries

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 16:56:28 +02:00
Tom Chauveau
f2d8cb39bd Fix network error on docker-compose
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 16:56:28 +02:00
Tom Chauveau
b6c8ef34b0 Add docker-compose tests
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 16:56:28 +02:00
Tom Chauveau
9270168f17 Add docker-compose package in stdlib
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 16:56:28 +02:00
Andrea Luzzardi
4596276944 tests: sanity-check: run from universe directory
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-25 16:41:16 +02:00
Andrea Luzzardi
898b0816be universe: add cue.mod
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-25 16:14:11 +02:00
Solomon Hykes
d7a805f42b stdlib: move all imports to alpha.dagger.io
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-25 10:31:22 +00:00
Solomon Hykes
aa6335246b os.#Container: mount secrets with a more consistent API
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-23 13:35:15 +02:00
Solomon Hykes
9d85bab9e7 os.#File: simplify API
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-23 12:56:27 +02:00
Andrea Luzzardi
9984edad09
Merge pull request #707 from samalba/fix-links
Adds support for stdlib Index
2021-06-23 11:24:17 +02:00
Sam Alba
af82c2c910 docs: adds package description to the stdlib Index
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-23 11:05:58 +02:00
Guillaume de Rouville
6ed3ab712d Complete refacto of CF's doc + fix output issue on Cloudformation package
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-22 19:22:27 +02:00
Tihomir Jovicic
a24595da20 Fix tests
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-22 13:08:31 +02:00
Tihomir Jovicic
1b6187181d Merge branch 'main' into cloudrun-support 2021-06-22 12:30:48 +02:00
Tihomir Jovicic
c480a74687 update cloudrun tests inputs
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-22 12:13:07 +02:00
Andrea Luzzardi
83019a5414
Merge pull request #685 from TomChv/move-tests-to-universe
Move tests to universe
2021-06-21 17:41:43 +02:00
Solomon Hykes
53f4ef049a stdlib: dagger.#Output
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-21 14:47:45 +02:00
Solomon Hykes
8383efdba6 stdlib: dagger.#Input
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-21 14:47:45 +02:00
Tihomir Jovicic
a1dbbf7a7f update cloudrun tests
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-21 12:26:24 +02:00
Tihomir Jovicic
293ee0680f rename Cloud Run Deploy to Service
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-21 11:36:01 +02:00
Tihomir Jovicic
a78a678db3 move Cloud Run tests to universe/stdlib env
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-21 11:34:25 +02:00
Tihomir Jovicic
83eebf82fa Move Cloud Run image property to GCP config struct
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-21 10:57:26 +02:00
Tihomir Jovicic
5d8219a8f3 Add Cloud Run support
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-21 10:57:18 +02:00
Tom Chauveau
9c20c45453 Use sandbox in tests
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-18 23:29:31 +02:00
Tom Chauveau
2e9a0d6509 Add test to universe
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-18 18:33:02 +02:00
Sam Alba
67fb9678af stdlib/s3: fix lint
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-18 13:29:18 +02:00
Sam Alba
9e20543fcd stdlib/s3: protect always flag
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-18 13:20:28 +02:00
Sam Alba
448c8102e3 stdlib/s3: fixes always flag (fixes #676)
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-18 13:09:02 +02:00
Solomon Hykes
a4e31949a3 Migrate integration test for universe/go
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-17 16:38:58 +02:00
Guillaume de Rouville
ce41d25c52 Revert kubernetes/helm packages and tests from secret to str type, needed for docs
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-17 03:16:28 +02:00
Andrea Luzzardi
7f456b9131 tests: update plan config
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-16 18:58:56 +02:00
Sam Alba
28a1e6a4c5
Merge pull request #653 from grouville/git_package_tests
docs: git package uniformization + tests implementation
2021-06-16 11:26:15 +02:00
Sam Alba
ae167c5794 stdlib: fixed s3 test
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-16 10:29:21 +02:00
Guillaume de Rouville
407ee6e9ee docs: git package uniformization + tests implementation
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-16 10:29:03 +02:00
Sam Alba
0d5f41ee31 docs: s3 lib: deprecated #Put in favor #Object
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 18:47:36 +02:00
Sam Alba
5eb40b3176 docs: refreshed stdlib
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 18:47:36 +02:00
Sam Alba
d1454a9871 stdlib: renamed verbs to nouns
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 18:47:36 +02:00
Guillaume de Rouville
6f9a61386e docs: remove package file
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-15 18:47:36 +02:00
Guillaume de Rouville
ddf752733a docs : alpine package
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-15 18:47:36 +02:00
Sam Alba
380cb94866 docs: added missing helm docs
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 18:47:36 +02:00
Sam Alba
6422b4d36d stdlib: cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 10:47:39 +02:00
Sam Alba
9281967e16 stdlib: added package doc strings
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-15 10:46:56 +02:00
Guillaume de Rouville
7d3ff89703 fix english typo in Cloudformation package
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-06-14 16:55:09 +02:00
Tom Chauveau
b8a97fb6e7 Update docker.#Run definition and tests
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-12 12:04:47 +02:00
Tom Chauveau
8a2fc9aa72 Add docker.#Command tests
Tests :
- docker version with ssh
- docker version with ssh and key passphrase
- docker version with ass and wrong key passphrase

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-11 09:55:03 +02:00
Tom Chauveau
e540bd2716 Replace docker.#Client with docker.#Command definition
It's a simple wrapper that will expose an interface
to run any docker or docker-compose commands
You can configure :
- ssh
- environments
- mount volumes
- command to execute
- package to install

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-11 09:55:03 +02:00
Solomon Hykes
2976afad66 universe: spin out js/yarn tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-10 16:09:41 +02:00
Solomon Hykes
d388c729bc universe: spin out alpine tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-10 16:09:41 +02:00
Solomon Hykes
c1096fbc12 Fix infinite loop in universe tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-10 16:09:41 +02:00
Andrea Luzzardi
3339a351ed tests: enable shellcheck for universe tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 15:51:31 -07:00
Andrea Luzzardi
5d2392b38c tests: universe: misc fixes
- Fix running from any directory
- Fix display format for test logs
- Move helpers to a common helper file
- Indentation

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 15:51:23 -07:00
Solomon Hykes
fcbdfe178a Move universe integration tests to universe dir.
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-09 20:28:44 +00:00
Andrea Luzzardi
d19dd4d193
Merge pull request #594 from samalba/disable-cache-mount
Disable cache mount
2021-06-09 10:23:02 -07:00
Solomon Hykes
ce663ca2ba stdlib: aws/ecr: simplify
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-09 17:22:53 +02:00
Sam Alba
b41adbd9c2 stdlib/os: fixed typo in container.cue (dest cache folder was always "true")
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-09 15:21:30 +02:00
Andrea Luzzardi
940d9ccfee docs: fix non-escaped URLs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:40:08 -07:00
Andrea Luzzardi
f3f5e7c714 docs: make universe
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:29:02 -07:00
Andrea Luzzardi
22329e3a4d stdlib: helm: fix chart repository
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 16:01:55 -07:00
Andrea Luzzardi
db0937c927 stdlib: add random package
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 15:15:01 -07:00
Andrea Luzzardi
2acf0ce4e5 stdlib: docker: disable local #Run
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-07 16:33:10 -07:00
Andrea Luzzardi
ce5accd09c stdlib: docker: support running containers on the local docker engine
Depends on #570

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-07 16:33:07 -07:00
Andrea Luzzardi
9cdde1318f
Merge pull request #568 from aluzzardi/kubernetes-apply-resources
stdlib: kubernetes: rename #Apply to #Resources
2021-06-07 13:31:55 -07:00
Sam Alba
872822baa6 stdlib: fixed yarn outputs
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-07 13:26:47 +02:00
Andrea Luzzardi
a5e9ac8a0f stdlib: kubernetes: rename #Apply to #Resources
Code convention: use nouns instead of verbs whenever possible.

Reasoning: One can apply just about anything to Kubernetes via this:
deployment, load balancer, RBAC policy, a custom CRD resource, etc.

Upstream those are called resources: You give `kubectl apply` one or more
manifests and it will create the corresponding resources.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-04 14:03:35 -07:00
Sam Alba
1fb4f4e314 stdlib: cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 16:39:07 +02:00
Sam Alba
6ae9a0b16d stdlib: fixed typo in pkg (cc @tomChv)
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 16:32:46 +02:00
Andrea Luzzardi
b805d37cb0
Merge pull request #557 from shykes/stdlib-cleanup
Universe: cleanup
2021-06-03 11:27:18 -07:00
Sam Alba
e328e71e6c
Merge pull request #337 from TomChv/ci-kind-setup
Setup Kind cluster in CI
2021-06-03 09:08:49 -07:00
Tom Chauveau
2c6e67cb7d Update helm and kubernetes tests to use new dagger.#Secret definition
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-03 17:55:44 +02:00
Tom Chauveau
a39e87b179 docker.#Run now use secrets from dagger.#Secret
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-03 14:03:33 +02:00
Solomon Hykes
89e3bb052e universe: git: comments, use null defaults
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-03 10:46:14 +00:00
Solomon Hykes
f308e51892 universe: file: mark as deprecated
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-03 10:45:05 +00:00
Solomon Hykes
d96e4f5575 universe: docker: simplify
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-03 10:44:10 +00:00
Andrea Luzzardi
c95b5d2bae docs: deploy using dagger
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-02 15:45:51 -07:00
Andrea Luzzardi
39527b761d stdlib: yarn: support cwd, args and packages
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-02 15:45:51 -07:00
Andrea Luzzardi
3605d399c9 stdlib: aws: s3: add #Sync
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-02 15:45:51 -07:00
Andrea Luzzardi
9facaa65f4 stdlib: aws: s3: default to "always: true"
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-02 15:40:03 -07:00
Sam Alba
4aeb11754d stdlib: fix cloudformation.#Stack
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-02 16:43:48 +02:00
Andrea Luzzardi
5718c41d7d stdlib: gcp: fix typo
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-01 19:50:40 -07:00
Andrea Luzzardi
6aded2d3d4
Merge pull request #536 from aluzzardi/kubernetes-fixes
stdlib: kubernetes: misc fixes
2021-06-01 19:50:11 -07:00
Andrea Luzzardi
14a83a0680
Merge pull request #530 from samalba/env-outputs
Support Outputs list
2021-06-01 19:47:47 -07:00
Andrea Luzzardi
2e748c9c31 stdlib: kubernetes: misc fixes
- `source` is now optional
- `sourceInline` renamed to `manifest`
- `kubeconfig` is a `string` rather than a `dagger.#Secret`

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-01 19:13:56 -07:00
Andrea Luzzardi
c02a8b89cc
Merge pull request #480 from TomChv/docker-run
Add #Run definition to docker package
2021-06-01 14:54:44 -07:00
Sam Alba
21b259fc86 stdlib/aws/s3: removed trailing \\n
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:23:55 +02:00
Tom Chauveau
4b6315e2fc Handle fingerprint option for auth
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-29 18:29:39 +02:00
Andrea Luzzardi
7ec90a6155
Merge pull request #497 from myitcv/put_fullop_behind_build_attribute
stdlib: put full definition of #Op behind a build attribute
2021-05-28 23:48:39 -07:00
Andrea Luzzardi
d9c1e6d57e
Merge pull request #523 from aluzzardi/input-dir-exclude
add support for excludes in input dir
2021-05-28 16:47:51 -07:00
Andrea Luzzardi
b627b4bc88 add support for excludes in input dir
This adds support for `--include` and `--exclude` for directory inputs.

For instance, this is what you would want to use when passing dagger
repository as an input:

```
inputs:
    repository:
        dir:
            path: .
            exclude:
                - '**/node_modules'
                - cmd/dagger/dagger
                - cmd/dagger/dagger-debug
```

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 16:22:32 -07:00
Andrea Luzzardi
59695f632a stdlib: netlify: fix regression of trailing new lines
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 14:16:25 -07:00
Andrea Luzzardi
28fd9c341f stdlib: update gcp to use secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:18:17 -07:00
Tom Chauveau
5fb7ded2d5 update stdlib tests that use secrets
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 19:18:17 -07:00
Andrea Luzzardi
40d4c95bff aws: use secrets
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:14:08 -07:00
Andrea Luzzardi
9c0e2d1d95 buildkit secrets support
- Secrets are never exposed in plaintext in the Cue tree. `dagger query`
  won't dump secrets anymore, Cue errors won't contain them either.
- BuildKit-native secrets support through a new `mount` type. This
  ensures secrets will never be part of containerd layers, buildkit
  cache and generally speaking will never be saved to disk in plaintext.
- Updated netlify as an example
- Added tests
- Changed the Cue definition of a secret to:

```
	@dagger(secret)

	id: string
}
```

This is to ensure both that setting the wrong input type on a secret
(e.g. `dagger input text`) will fail, and attempting to misuse the
secret (e.g. interpolating, passing as an env variable, etc) will also
fail properly.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 19:14:08 -07:00
Tom Chauveau
7c4df827c3 Add docker.#Client definition
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 18:15:36 +02:00
Tom Chauveau
27a60d3cdf Add tests for docker.#Run
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 18:15:36 +02:00
Tom Chauveau
f8760213bd Add #Run definition in docker stdlib package.
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-27 18:15:36 +02:00
Sam Alba
f6aea7e529 curl: do not hardcode version requirement
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 14:31:57 +02:00
Sam Alba
dd17c48922 increased curl dependency, 7.76 was removed from alpine pkg repo
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 13:59:47 +02:00
Sam Alba
a4167dc3f4 cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:28:24 +02:00
Sam Alba
7009d01835 stdlib: added @dagger(input) and @dagger(output) attributes
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:23:44 +02:00
Paul Jolly
cd19a4228a
stdlib: put full definition of #Op behind a build attribute
This allows dagger.io/dagger/op.#Op to be maintained in regular
uncommented CUE, but not participate by default in normal dagger
evaluation (given the performance problems it currently introduces).

The "full" #Op can be enabled by passing the "-t fullop" flag:

    cue eval -t fullop ./examples/react

(which currently triggers the performance issue).

Signed-off-by: Paul Jolly <paul@myitcv.io>
2021-05-26 10:31:45 +01:00
Solomon Hykes
3349955144 stdlib: fix dagger.io/go
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-25 16:50:13 -07:00
Sam Alba
7484df45cd clean up comments
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:56:30 -07:00
Sam Alba
4edc2ad38e stdlib: aws/s3: removed unused input attr
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:04:02 -07:00
Sam Alba
85cc9abb93 stdlib: adapted lib to new input spec
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:04:02 -07:00
Sam Alba
da5ee15354 stdlib: fixed aws double execution because of cache volumes
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-20 15:39:30 -07:00
Andrea Luzzardi
0f69f3a8af stdlib: gcr support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-19 17:54:30 -07:00
Andrea Luzzardi
5bd3349a27 stdlib: add GKE support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-19 16:44:52 -07:00
Andrea Luzzardi
c85b25cc6c
Merge pull request #426 from TomChv/tests-examples-docker
Add tests for docker example
2021-05-14 12:23:12 -07:00
Solomon Hykes
b526093929 stdlib: simpler and cleaner performance workaround
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-13 22:36:06 -07:00
Tom Chauveau
8ce8e8e01f Add #Push definition and tests
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-13 21:38:15 +02:00
Sam Alba
471b578671 stdlib: #FetchGit extra args
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-13 10:35:22 -07:00
Solomon Hykes
16edfc4fec stdlib: rename js/react.#App to js/yarn.#Package
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-12 17:24:10 -07:00
dubo-dubon-duponey
ca6930bd02 Implement user & hosts for Exec
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-05-12 14:53:52 -07:00
Solomon Hykes
98b3951c73 stdlib: os package
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-11 17:32:50 -07:00
Andrea Luzzardi
9f5dfacbbf
Merge pull request #438 from dubo-dubon-duponey/build
Support for target & hosts (#DockerBuild)
2021-05-10 18:12:10 -07:00
dubo-dubon-duponey
53611be733
Add add-hosts to DockerBuild
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-05-10 15:06:50 -07:00
dubo-dubon-duponey
38200f556c
Add target opt to DockerBuild
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-05-09 21:09:13 -07:00
Andrea Luzzardi
b979e2e994 stdlib: terraform support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-07 12:00:45 -07:00
Andrea Luzzardi
3cbdd1fc2a
Merge pull request #384 from TomChv/test-aws-ecr
Add tests for AWS ecr
2021-05-04 12:46:09 -07:00
Andrea Luzzardi
a7d2106486
Merge pull request #339 from TomChv/kubernetes-kustomize
Add kustomize to Kubernetes stdlib
2021-05-04 12:42:40 -07:00
Tom Chauveau
15d1eca41e Add tests for AWS ecr
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-04 12:40:57 -07:00
Solomon Hykes
052a623294 stdlib: io for portable I/O interfaces, os for system primitives
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-05-04 11:21:02 -07:00
Solomon Hykes
a1e6570232 stdlib: dagger.io/docker.#Build
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-05-01 00:21:11 -07:00
Solomon Hykes
3353579dbb stdlib: dagger.io/go.#Container
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-30 18:12:08 -07:00
Solomon Hykes
256311d0ad stdlib: docker: run init commands without volumes mounted
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-30 18:12:08 -07:00
Solomon Hykes
3f514e0fa7 stdlib: dagger.io/io.#Dir
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-30 18:12:08 -07:00
Solomon Hykes
0b44243c65 stdlib: fix bug in dagger.io/io.#File
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-30 18:12:08 -07:00
Solomon Hykes
3bb6243768 stdlib: io.#File
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-30 18:12:08 -07:00
Solomon Hykes
4b15ca84fa stdlib: docker: allow container with no command
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-30 18:12:08 -07:00
Tom Chauveau
253c1ce3f7 feat(kubernetes): add kustomize generation to kubernetes stdlib package
test(kubernetes): add test for kustomize

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-30 19:46:32 +02:00
Elie
7abacf1b99
Make S3 always do a Put
Signed-off-by: Elie <elie.charra@cloudskiff.com>
2021-04-29 21:34:12 +02:00
Sam Alba
4df8b3e087 stdlib/dagger/op: Added #DockerLogin
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-26 17:41:04 -07:00
Sam Alba
c28199c76e stdlib/ecr / jamstack: ported to new syntax
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-26 14:12:43 -07:00
Andrea Luzzardi
7bcd28582f
Merge pull request #350 from TomChv/tests-aws-eks 2021-04-24 14:04:11 -07:00
Andrea Luzzardi
2b7dfcae29 Revert "support registry auth"
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-23 16:59:22 -07:00
Tom Chauveau
9fc247848f Add test on AWS eks
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-23 13:51:50 +02:00
Tom Chauveau
2d72303bc4 Fix AWS eks kubeconfig generation
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-23 13:50:07 +02:00
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