Skip to content

0.2 docs into a new "Dagger CUE SDK" site #3474

Closed

Description

@jpadams

Need solutions for the following

CLI install scripts:
cc @gerhard

Linux shell:
guessing we're leaving env vars alone but will script go from current to new?

current: curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.2.19 sh
new?: curl -L https://dl.dagger.io/dagger-cue/install.sh | DAGGER_VERSION=0.2.19 sh

Powershell:
will we move from current to new?

current: $script = Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1
new?: $script = Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger-cue/install.ps1

and update this:

Without passing in the `-InstallPath`, We'll save everything under `<your home folder>\dagger-cue`

C:\<your home folder>\dagger\dagger-cue.exe

Will these paths continue to work in CUE files?:
cc @aluzzardi

import (
    "dagger.io/dagger"
    "universe.dagger.io/alpha/aws/sam"
)

GitHub action:
https://github.com/dagger/dagger-for-github
dagger/dagger-for-github#75
We'll probably want to list a new action in the GitHub Marketplace called dagger-cue-for-github and then deprecate dagger-for-github and point to new one, but leave it in place to not break folks using it. cc @crazy-max

uses: dagger/dagger-for-github@v3
...
cmds: |
            project update
            do deploy

Version script used in some docs pages:

<DaggerVersionLatestReleased>
{daggerVersionLatestRelease =>
<>Now check all the available packages in <a href={`https://github.com/dagger/dagger/tree/${daggerVersionLatestRelease}/pkg/universe.dagger.io`}>universe.dagger.io</a>.</>
}
</DaggerVersionLatestReleased>

Homebrew for Mac/Darwin:
assuming will be brew install dagger-cue

Windows:
related: #3484

https://community.chocolatey.org/packages/dagger-cue
choco install dagger-cue

&

https://scoop.sh/#/apps?q=dagger-cue
scoop bucket add main # If you don't have the main bucket added yet
scoop install dagger-cue

CLI Env Vars:
Guessing we won't change ENV VARs like DAGGER_PLAN, DAGGER_CACHE_FROM
cc @gerhard


Can cherry pick from here:
19f4e93

Tracking work here:
I made a fresh clone of dagger/dagger, switched to @vikram-dagger 's multi-site PR and added a docs/v0.3/sdk/cue directory.

I moved the contents of 0.2 docs in there: from sdk: cp -R ~/src/dagger-fork/docs/v0.2/* cue/.

I then started moving `dagger` to `dagger-cue`:

sed -i.bak -e 's/\`dagger\`/\`dagger-cue\`/g' **/*.md*
<commit>
sed -i.bak -e 's/dagger do/dagger-cue do/g' **/*.md*
rm **/*.bak.bak
<commit>
sed -i.bak -e 's/dagger project init/dagger-cue project init/g' **/*.md*
rm **/*.bak.bak
<commit>
sed -i.bak -e 's/dagger project update/dagger-cue project update/g' **/*.md*
rm **/*.bak.bak
<commit>
etc

Activity

  1. jpadams commented on Oct 21, 2022

    @jpadams
    ContributorAuthor

    should update version of dagger-cue CLI in references/1222-core-actions-reference.md, references/1234-dagger-types-reference.md to latest

  2. jpadams commented on Oct 21, 2022

    @jpadams
    Author
  3. jpadams commented on Oct 21, 2022

    @jpadams
    Author
  4. jpadams commented on Oct 21, 2022

    @jpadams
    Author
  5. jpadams commented on Oct 21, 2022

    @jpadams
    Author
  6. jpadams commented on Oct 21, 2022

    @jpadams
    Author
  7. jpadams commented on Oct 21, 2022

    @jpadams
    ContributorAuthor
  8. jpadams commented on Oct 22, 2022

    @jpadams
    ContributorAuthor

    Need to watch out for inter-docs links like: https://docs.dagger.io/1227/contributing/ linked to in use-cases/1248-aws-sam.md

  9. gerhard commented on Oct 25, 2022

    @gerhard
    Contributor

    There are a lot of relevant changes for this in #3486

    There is a follow-up PR coming up shortly which bumps the version from 0.1.0 to 0.2.232 as discussed in this (private) Discord thread

    Doing a quick pass over the points that you have raised @jpadams:

    # New:
    + curl -L https://dl.dagger.io/dagger-cue/install.sh | sh
    
    # VERSION instead of DAGGER_VERSION is also new:
    + curl -L https://dl.dagger.io/dagger-cue/install.sh | VERSION=0.2.232 sh
    
    # Powershell URL is also new:
    + new?: $script = Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger-cue/install.ps1
    # Yes, it behaves as you assumed @jpadams above
  10. jpadams commented on Nov 7, 2022

    @jpadams
    ContributorAuthor

    For future, we should also consider arch linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions