Commit Graph

22 Commits

Author SHA1 Message Date
Gerhard Lazu
f322327945
Switch build → _build in .gitignore
It is much easier to spot this build dir when it gets prefixed with _

Inspired by Elixir:
https://elixir-lang.org/getting-started/mix-otp/introduction-to-mix.html

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-03-25 16:37:56 +00:00
Gerhard Lazu
a3cd60d140
Cyclic task dependency error fix (workaround?) for #1857
universe.dagger.io/examples/todoapp on  europa-docs-plan-tanguy-fresh-pair-of-eyes [$!] via  v17.4.0 took 3s
    ❯ bin/dagger do build
    [✔] actions.build.run.script                                                                                          0.0s
    [✔] actions.deps                                                                                                      4.2s
    [✔] client.filesystem."./".read                                                                                       3.0s
    [✔] actions.test.script                                                                                               0.0s
    [✔] actions.test                                                                                                      0.8s
    [✔] actions.build.run                                                                                                 3.1s
    [✔] actions.build.contents                                                                                            0.0s
    [✔] client.filesystem."./_build".write                                                                                0.1s

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-03-25 16:35:29 +00:00
Gerhard Lazu
dc5d3340bb
Capture cyclic task dependency error for #1857
universe.dagger.io/examples/todoapp on  europa-docs-plan-tanguy-fresh-pair-of-eyes [$!?] via  v17.4.0
    ❯ bin/dagger do build
    4:32PM FTL failed to execute plan: cyclic task dependency:
            task client.filesystem."./_build".write refers to
            task actions.build.contents._copy refers to
            task actions.build.run._exec refers to
            task actions.test._exec refers to
            task actions.deps._dag."2"._exec refers to
            task actions.deps._dag."1"._copy refers to
            task client.filesystem."./_build".write:
        /Users/gerhard/github.com/gerhard/dagger/pkg/universe.dagger.io/cue.mod/pkg/dagger.io/dagger/fs.cue:114:2
        /Users/gerhard/github.com/gerhard/dagger/pkg/universe.dagger.io/docker/build.cue:49:2
        /Users/gerhard/github.com/gerhard/dagger/pkg/universe.dagger.io/docker/run.cue:162:2

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-03-25 16:34:37 +00:00
Gerhard Lazu
5fe04d22e9
Revise Europa Docs - Core Concepts - It all starts with a plan
Thank you Tanguy for the "fresh pair of eyes" perspective.

Thank you Tom for the link suggestions.

Supersedes https://github.com/dagger/dagger/pull/1847

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-03-25 16:25:24 +00:00
Marcos Lilljedahl
2da7056ebe Fix nodeModules scope to avoid polluting TL namespace
Ref: https://github.com/dagger/dagger/issues/1711
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-03-23 11:52:49 -03:00
Marcos Lilljedahl
6344bb020b Add node_modules mount to improve caching times
This commit adds `node_modules` to dagger run commands so cached builds have
similar speed times as running commands locally directly through yarn
<script>

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-03-22 16:03:15 -03:00
Jffarge
c2ff0ae377
Merge pull request #1712 from dagger/dependabot/npm_and_yarn/pkg/universe.dagger.io/examples/todoapp/nanoid-3.1.31
LGTM
build(deps): bump nanoid from 3.1.9 to 3.1.31 in /pkg/universe.dagger.io/examples/todoapp
2022-03-09 09:20:47 +01:00
Jffarge
d05ff277ae
Merge pull request #1713 from dagger/dependabot/npm_and_yarn/pkg/universe.dagger.io/examples/todoapp/url-parse-1.5.10
LGTM
build(deps): bump url-parse from 1.5.3 to 1.5.10 in /pkg/universe.dagger.io/examples/todoapp
2022-03-09 09:20:10 +01:00
dependabot[bot]
3faea70792
build(deps): bump follow-redirects
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.0 to 1.14.9.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.0...v1.14.9)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 22:32:59 +00:00
dependabot[bot]
711822f680
build(deps): bump url-parse in /pkg/universe.dagger.io/examples/todoapp
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 22:32:55 +00:00
dependabot[bot]
a9fe5d8f16
build(deps): bump nanoid in /pkg/universe.dagger.io/examples/todoapp
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.9 to 3.1.31.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.9...3.1.31)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 22:32:42 +00:00
Gerhard Lazu
c3f21958d2
Europa docs: From local dev to CI environment doc page
The todoapp example contains a Netlify plan which uses the latest dagger
additions: do & Client API. We are thinking of merging the examples
repository into this one to make working with this easier. This is a
step in that direction.

We are not using the yarn package so that we can revert
https://github.com/dagger/dagger/pull/1673 without breaking this
implementation.

The GitHub Action is WIP, we will continue with that tomorrow:
https://github.com/dagger/dagger-for-github/issues/24

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-03-08 22:17:24 +00:00
Solomon Hykes
c2766c265b Merge dagger.io/dagger/engine into dagger.io/dagger
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-16 19:40:28 +00:00
Solomon Hykes
3d56513895 Rename dagger.#DAG to dagger.#Plan
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-15 22:45:47 +00:00
Solomon Hykes
e8a62cb3aa universe.dagger.io/examples/changelog.com: successful build
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 08:49:44 +00:00
Solomon Hykes
5a1ce0acac universe.dagger.io/examples/changelog.com: cleanup and fixes
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-09 08:34:54 +00:00
Solomon Hykes
298a119b09
Merge pull request #1569 from shykes/docker-run-tweak
Simplify docker.#Run
2022-02-08 09:58:22 -08:00
Guillaume Coguiec
bd0f276d30
typo: Fix some minor typos.
Signed-off-by: Guillaume Coguiec <guillaume@logical.work>
2022-02-07 21:10:25 -05:00
Solomon Hykes
354334a3dc Simplify docker.#Run
* `cmd` is renamed to `command` for readability
  * `script` is removed. Feature moves up the stack (bash.#Run,
    python.#Run)

Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-08 01:35:51 +00:00
Richard Jones
23b07215d8
fix universe packages
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-27 20:20:37 -07:00
Gerhard Lazu
d3f9fca4ef
Make changelog.com highlevel Europa run
We fixed a few issues with @shykes & @jlongtine, and @talentedmrjones
gave us this great command to run:

    cd pkg/universe.dagger.io/examples/changelog.com/highlevel
    dagger up --europa ./gerhard --log debug --log-format plain
    7:42PM DBG system | detected buildkit config    haveHostNetwork=true isActive=true version=v0.9.3
    7:42PM DBG system | loading plan    args=[
        "./gerhard/"
    ]
    7:42PM DBG system | vendoring packages    mod=/Users/gerhard/github.com/gerhard/dagger/pkg/universe.dagger.io
    7:42PM DBG system | spawning buildkit job    attrs=null localdirs={
        "/Users/gerhard/github.com/thechangelog/changelog.com/": "/Users/gerhard/github.com/thechangelog/changelog.com"
    }
    7:42PM INF actions.test.db.pull._op | computing
    7:42PM INF actions.test.run._exec | computing
    7:42PM INF inputs.directories.app | computing
    7:42PM INF actions.dev.build._dag."0"._op | computing
    7:42PM INF actions.test.build._dag."0"._op | computing
    7:42PM ERR actions.test.run._exec | failed: invalid FS at path "actions.test.run._exec.input": FS is not set    duration=0s
    7:42PM DBG inputs.directories.app | loading local directory    path=/Users/gerhard/github.com/thechangelog/changelog.com/
    7:42PM ERR actions.dev.build._dag."0"._op | canceled    duration=0s
    7:42PM ERR actions.test.db.pull._op | canceled    duration=0s
    7:42PM ERR actions.test.build._dag."0"._op | canceled    duration=0s
    7:42PM ERR inputs.directories.app | canceled    duration=0s
    7:42PM FTL system | failed to up environment: task failed: actions.test.run._exec: invalid FS at path "actions.test.run._exec.input": FS is not set

The next step is to figure out why this is failing @jlongtine.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-01-21 19:49:28 +00:00
Andrea Luzzardi
f3dee47353 europa: vendor universe.dagger.io
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 18:09:09 -08:00