Commit Graph

89 Commits

Author SHA1 Message Date
Andrea Luzzardi
bc2dae7e32 docker build support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-22 14:14:51 -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
74d3bb81cb examples: dogfood!
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-19 01:25:53 -08:00
Andrea Luzzardi
037dacaf6d example: deploy react to netlify
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-18 18:48:49 -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
Solomon Hykes
bff4186bf4 dagger compute auto-fetches standard library from external repo
- Standard library is hosted at github.com/blocklayerhq/dagger-stdlib
- When dagger repo is made public, stdlib can be hosted from same repo
- Vendored cue.mod is merged with stdlib at file granularity
- When developing dagger, set DAGGER_DEV_STDLIB to a local stdlib
  directory

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:31:13 +00:00
Solomon Hykes
77bf0be306 Remove broken examples
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:31:13 +00: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
Solomon Hykes
acba8b3988 Simplify runtime code by removing layers of abstraction
- Remove intermediary types `Component`, `Script`, `Op`, `mount`: just use
  `cc.Value` directly
- Remove `Executable` interface.
- Execute llb code with a simple concrete type `Pipeline`
- Analyze llb code with a simple utility `Analyze`

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 22:20:20 +00:00
Andrea Luzzardi
89c7136f75 tests: move tests top-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-03 15:02:43 -08:00
Andrea Luzzardi
c6e010d4f0 Misc Export fixes
- Temporarily disable export of base.cue as it causes merge errors at
  the end of compute
- Fixes for JSON export for Scalar and Lists
- Add YAML export
- Removed BOOL and NUMBER support, using JSON for now
- Re-enabled all export tests

Fixes #36

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-02 16:19:46 -08:00
Andrea Luzzardi
6e31193d64
Merge pull request #87 from blocklayerhq/input-ux
Better ux for inputs
2021-02-02 10:45:48 -08:00
Andrea Luzzardi
78601fefd6 fix dependencies between tasks
due to using an old snapshot of cue.Value, components relying on
dependent tasks were failing because of non-concretness.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-02 10:31:52 -08:00
Solomon Hykes
1954c3f731 dagger compute [--input-dir TARGET=DIR] [--input-string TARGET=STRING] [--input-cue CUE] [--input-git REMOTE#REF]
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-31 22:48:30 -08:00
Solomon Hykes
af9581c28a Typo in examples/simple
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-30 18:24:26 -08:00
Solomon Hykes
fa2cfc1267 Fix examples/simple (cannot load across package imports)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-30 00:25:58 -08:00
Solomon Hykes
6f4577d501 Fix and improve examples/simple
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Andrea Luzzardi
cc5a48d39b
Merge pull request #76 from blocklayerhq/output-no-merge
output: merge base/input/output into a single state.cue
2021-01-26 16:53:32 -08:00
Solomon Hykes
f933278d43 Fix spec validation & merge so that default values are correctly applied
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-26 16:52:14 -08:00
Andrea Luzzardi
04526b5b78 output: merge base/input/output into a single state.cue
Exporting base/input/output separately causes merge errors.
For instance, `foo: string | *"default foo"` gets serialized as
`{"foo":"default foo"}`, which will fail to merge if output contains
a different definition of `foo`.

This change temporarily merges the 3 streams together before
serializing.

Fixes #51

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-26 12:12:42 -08:00
dubo-dubon-duponey
707dbd0256
Work on integration tests
- add new entries for #70 and #74
- cleaned-up / enriched a little bit compute and exec tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-26 11:40:38 -08:00
Andrea Luzzardi
75fbddf6be op: exec: fix dir
Fixes #30

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-25 16:19:20 -08:00
Solomon Hykes
e10025d688 Refactor op/script/component loading and spec validation
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-25 11:36:18 -08:00
Solomon Hykes
91654ba786 Unit tests to reproduce issue #19 and narrow down root cause.
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-21 15:24:00 -08:00
Andrea Luzzardi
6ab7f88007 lint all cue files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:59:21 -08:00
Andrea Luzzardi
69cd9dd323 test: re-enable undefined prop test
Rather than checking for failure, we verify that the computable part of
the configuration gets outputted.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:54:44 -08:00
dubo-dubon-duponey
d09b1b52bb
Support additional arguments for dagger binary
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-20 16:00:34 -08:00
Andrea Luzzardi
425bbace9e test: fix fetch container test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 14:24:06 -08:00
dubo-dubon-duponey
c67e02eeda
MOAR TESTS
- tests for load
- fixed a few typos in “copy” tests
- provisional tests for mount
- adding a “concurrency” test

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-15 16:38:06 -08:00
dubo-dubon-duponey
3be2865a56
Tests tests tests
- tests for #Copy
- added a “disable” helper to disable specific tests instead of just commenting them out
- “disable” will print out warnings about disabled tests (hopefully with links to corresponding issues)
- cleanup bug repro that has been subsumed into tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-15 15:10:28 -08:00
dubo-dubon-duponey
e6c482cb83
Export tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 20:01:01 -08:00
dubo-dubon-duponey
6010178131
Adding simple overlay test
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 18:59:44 -08:00
Andrea Luzzardi
0a91de3146 test: enable noop
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-14 18:01:45 -08:00
dubo-dubon-duponey
e301dfa7b1
Adding tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 17:29:12 -08:00
Solomon Hykes
8b105003bb Component.Compute: force "real" solve. Fixes #14.
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-12 10:31:50 -08:00
Solomon Hykes
0e484be9bd examples/simple: require an input directory
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-12 10:06:27 -08:00
dubo-dubon-duponey
8d104c9e10
Fix examples
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-11 16:40:13 -08:00
Solomon Hykes
c5842f894a clean up & bugfix
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-07 16:54:52 -08:00
Solomon Hykes
30f75da114 Move prototype 69-dagger-archon to top-level
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2020-12-29 18:45:16 -08:00