Commit Graph

186 Commits

Author SHA1 Message Date
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