Commit Graph

2698 Commits

Author SHA1 Message Date
Andrea Luzzardi
6c48f8b7a9 pipeline: more explicit non-executable errors
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-20 12:27:58 -07:00
Andrea Luzzardi
d763976ea9 tests: convert tests to new style
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-20 12:27:31 -07:00
Jonathan Hult
d0e7d9b564
Link to new CUE GitHub repository
https://github.com/cue-lang/cue/issues/1078

Signed-off-by: Jonathan Hult <Jonathan@JonathanHult.com>
2021-10-20 14:49:26 -04:00
Andrea Luzzardi
c08f619b02 Fix local directory error handling
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-20 11:38:42 -07:00
Sam Alba
36f468577a
Merge pull request #1069 from samalba/fix-test-pkg
mod: fixed unit tests to match the new universe repo structure
2021-10-19 18:48:06 -07:00
Sam Alba
20ccf71654 mod: fixed unit tests to match the new universe repo structure
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-19 17:48:09 -07:00
Sam Alba
aa491ae67c
Merge pull request #1049 from PaulBarrie/feature/aws/add-cli-v2
Feature:  allow to use AWS CLI v2
2021-10-18 20:48:21 -07:00
Sam Alba
3b71ecd7ad
Merge pull request #1060 from grouville/yarn-add-secrets
Add secrets to yarn.#Package
2021-10-18 20:47:16 -07:00
Andrea Luzzardi
3f8b21cd44
Merge pull request #1063 from dagger/dependabot/go_modules/golang.org/x/mod-0.5.1
build(deps): bump golang.org/x/mod from 0.4.2 to 0.5.1
2021-10-18 16:24:37 -07:00
dependabot[bot]
ed37b9c98e
build(deps): bump golang.org/x/mod from 0.4.2 to 0.5.1
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.4.2 to 0.5.1.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.4.2...v0.5.1)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-14 19:29:53 +00:00
guillaume
de8cd3a52a Add secrets for secure mount of .env local files inside Dagger
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2021-10-14 13:34:58 +02:00
Sam Alba
63bb368d08
Merge pull request #934 from tjovicic/vendoring-improved
Use package manager when vendoring stdlib
2021-10-13 20:30:17 -07:00
Sam Alba
fe83b578f6 state: disabled remote stdlib install (keep vendoring until migration is complete)
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-13 15:25:57 -07:00
Sam Alba
e9ca8f38e6 Vendoring improved
* update dagger init with package manager downloading stdlib

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* split mod get and update functions

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* write to package checksum to dagger.sum when installing/updating

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* encure checksums are valid when compiling input

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* remove references to github.com/tjovicic in docs 1010 and 1011

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* refactor mod get command

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* update logic of moving dir when installing packages

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* fix linting errors

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* revert changes to 1010 docs

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* updating error log line in mod/get

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* fix ci tests when using vendoring

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* update alpha.dagger.io version to v0.1

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* fix mod repo test

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* return error if package already installed

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* remove already installed packages when installing

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* fix issue when vendoring stdlib

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* update mod command with filelock while installing

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* fix linting errors

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

* fix path of mod lock file

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

Co-authored-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>

Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-13 15:25:30 -07:00
Andrea Luzzardi
31255f75ad
Merge pull request #1055 from dagger/dependabot/npm_and_yarn/website/cypress-8.6.0
build(deps-dev): bump cypress from 8.5.0 to 8.6.0 in /website
2021-10-13 10:54:34 -07:00
Andrea Luzzardi
ed3bb775cd
Merge pull request #1050 from dagger/dependabot/docker/golang-1.16.9-alpine
build(deps): bump golang from 1.16.8-alpine to 1.16.9-alpine
2021-10-13 10:54:13 -07:00
Andrea Luzzardi
16b14524d5
Merge pull request #1056 from aluzzardi/docker-load
Support loading artifacts into a Docker Engine
2021-10-12 17:51:51 -07:00
Andrea Luzzardi
322997b74a stdlib: docker: clean up docker.#Command inputs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-12 17:10:46 -07:00
Andrea Luzzardi
e5c571b8a9 op.#SaveImage: fix data race
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-12 16:05:43 -07:00
Andrea Luzzardi
b2c4fea73d tests: add docker load test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-12 15:39:04 -07:00
Andrea Luzzardi
50d55a8885 op.#SaveImage: export the image ID
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-12 15:39:04 -07:00
Andrea Luzzardi
5a1d4bff62 Support loading artifacts into a Docker Engine
This adds support to loading artifacts (e.g. docker.#Build,
os.#Container, ...) into any arbitrary docker engine (through a
dagger.#Stream for UNIX sockets or SSH for a remote engine)

Implementation:
- Add op.#SaveImage which serializes an artifact into an arbitrary path
  (docker tarball format)
- Add docker.#Load which uses op.#SaveImage to serialize to disk and
  executes `docker load` to load it back

Caveats: Because we're doing this in userspace rather than letting
dagger itself load the image, the performance is pretty bad.

The buildkit API is meant for streaming (get a stream of a docker image
pipe it into docker load). Because of userspace, we have to load the
entire docker image into memory, then serialize it in a single WriteFile
LLB operation.

Example:

```cue
package main

import (
	"alpha.dagger.io/dagger"
	"alpha.dagger.io/docker"
)

source: dagger.#Input & dagger.#Artifact

dockersocket: dagger.#Input & dagger.#Stream

build: docker.#Build & {
	"source": source
}

load: docker.#Load & {
	source: build
	tag:    "testimage"
	socket: dockersocket
}
```

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-12 14:16:01 -07:00
dependabot[bot]
b51ad0021e
build(deps-dev): bump cypress from 8.5.0 to 8.6.0 in /website
Bumps [cypress](https://github.com/cypress-io/cypress) from 8.5.0 to 8.6.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v8.5.0...v8.6.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 19:22:39 +00:00
Andrea Luzzardi
863ef31dc7
Merge pull request #1054 from dagger/dependabot/npm_and_yarn/website/react-social-login-buttons-3.6.0
build(deps): bump react-social-login-buttons from 3.5.1 to 3.6.0 in /website
2021-10-11 15:42:23 -07:00
dependabot[bot]
693bb58af4
build(deps): bump react-social-login-buttons in /website
Bumps [react-social-login-buttons](https://github.com/MichalSzorad/react-social-login-buttons) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/MichalSzorad/react-social-login-buttons/releases)
- [Commits](https://github.com/MichalSzorad/react-social-login-buttons/commits)

---
updated-dependencies:
- dependency-name: react-social-login-buttons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 19:17:04 +00:00
Andrea Luzzardi
36d49b4c18
Merge pull request #1052 from aluzzardi/docs-manual-sidebar
docs: define sidebar manually
2021-10-08 18:02:41 -07:00
Andrea Luzzardi
acc602db69 docs: remove "Create your first Dagger Environment" from sidebar
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-08 16:45:50 -07:00
Andrea Luzzardi
7364951e95 docs: define sidebar manually
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-08 16:18:02 -07:00
dependabot[bot]
aed0f43408
build(deps): bump golang from 1.16.8-alpine to 1.16.9-alpine
Bumps golang from 1.16.8-alpine to 1.16.9-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 19:05:02 +00:00
paulb
7d9db41f4b feat: allow use of v2 AWS CLI
Signed-off-by: paulb <barrie.paul@protonmail.com>
2021-10-08 17:43:54 +02:00
Andrea Luzzardi
97908e8fc2
Merge pull request #1048 from aluzzardi/tty-logs-multiline 2021-10-06 13:58:02 -07:00
Andrea Luzzardi
82fc36c76b tty logger: show multi-line messages
Support multi-line log messages rather than truncating and correctly
account terminal height.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-06 11:51:10 -07:00
Andrea Luzzardi
92a04fe001
Merge pull request #1047 from samalba/docs-run-local-registry
docs: added abililty to run a local registry for todoapp example
2021-10-05 19:22:58 -07:00
Sam Alba
2da9d07302 docs: use different port for getting started registry
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-05 19:12:16 -07:00
Sam Alba
91ad12bff1 docs: added missing dagger init
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-05 18:59:34 -07:00
Sam Alba
d39cc200ca docs: added abililty to run a local registry for todoapp example
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-05 18:47:33 -07:00
Andrea Luzzardi
6b74006ddd
Merge pull request #1041 from aluzzardi/tty-logs
logger: TTY logs support (live update)
2021-10-05 16:54:19 -07:00
Andrea Luzzardi
dd1bf18ec2 logger: TTY logs support (live update)
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-05 15:38:34 -07:00
Sam Alba
91f0271a80
Merge pull request #1046 from talentedmrjones/move-what-is-cue
DOCS: Move what is cue
2021-10-05 15:16:42 -07:00
Richard Jones
33242a1a7d
cleanup unnecessary file
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 15:27:06 -06:00
Richard Jones
a1c2d14162
moved what is cue page to Learn section
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 15:26:49 -06:00
Sam Alba
7e19159f98
Merge pull request #1018 from talentedmrjones/new-get-started-tutorial
DOCS: new getting started tutorial
2021-10-05 13:48:56 -07:00
Andrea Luzzardi
7b5c533974
Merge pull request #1045 from aluzzardi/disable-gha-caching
disable gha caching
2021-10-05 13:28:47 -07:00
Andrea Luzzardi
285fe3fe39 ci: disable GHA caching
Getting a 400 Bad Request from GH API

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-10-05 12:39:50 -07:00
Richard Jones
7c55d38625 removed registry
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 13:33:05 -06:00
Richard Jones
f48d145f03 added registry to test, and fixed cp commands
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 13:33:05 -06:00
Richard Jones
79489ffe36 cue fmt the right way
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 13:33:05 -06:00
Richard Jones
4c7d90f9bc cue fmt
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 13:33:05 -06:00
Richard Jones
35a86441bf added test
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 13:33:05 -06:00
Richard Jones
46c02c7563 proofreading corrections
Signed-off-by: Richard Jones <richard@dagger.io>
2021-10-05 13:33:05 -06:00