Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildpacks:set-property - odd behaviour #6815

Open
taraszka opened this issue Apr 10, 2024 · 0 comments
Open

buildpacks:set-property - odd behaviour #6815

taraszka opened this issue Apr 10, 2024 · 0 comments

Comments

@taraszka
Copy link
Contributor

Description of problem

When I wanted to try CNB with paketobuildpacks/builder-jammy-full as a default stack for builder, on an empty, newly deployed dokku instance, I got an error:
! You haven't deployed any applications yet
(so you cannot override DOKKU_CNB_BUILDER variable globally as per https://dokku.com/docs/deployment/builders/cloud-native-buildpacks/#customizing-the-buildpack-stack-builder)

When I tried it for a second or third time, it accepted it:

root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full
=====> Setting stack to paketobuildpacks/builder-jammy-full
root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full
=====> Setting stack to paketobuildpacks/builder-jammy-full
root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full^C
root@dokku:/# dokku apps
=====> My Apps
 !     You haven't deployed any applications yet

latest dokku 0.34.4

Steps to reproduce

root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full
=====> Setting stack to paketobuildpacks/builder-jammy-full
 !     You haven't deployed any applications yet
root@dokku:/# dokku buildpacks
Usage: dokku buildpacks[:COMMAND]

Manage buildpacks settings for an app

Additional commands:
    buildpacks:add [--index 1] <app> <buildpack>            Add new app buildpack while inserting into list of buildpacks if necessary
    buildpacks:clear <app>                                  Clear all buildpacks set on the app
    buildpacks:list <app>                                   List all buildpacks for an app
    buildpacks:remove <app> <buildpack>                     Remove a buildpack set on the app
    buildpacks:report [<app>] [<flag>]                      Displays a buildpack report for one or more apps
    buildpacks:set [--index 1] <app> <buildpack>            Set new app buildpack at a given position defaulting to the first buildpack if no index is specified
    buildpacks:set-property [--global|<app>] <key> <value>  Set or clear a buildpacks property for an app
root@dokku:/# dokku buildpacks:report
 !     You haven't deployed any applications yet
root@dokku:/# dokku buildpacks:list
 !     Please specify an app to run the command on
root@dokku:/# dokku buildpacks
Usage: dokku buildpacks[:COMMAND]

Manage buildpacks settings for an app

Additional commands:
    buildpacks:add [--index 1] <app> <buildpack>            Add new app buildpack while inserting into list of buildpacks if necessary
    buildpacks:clear <app>                                  Clear all buildpacks set on the app
    buildpacks:list <app>                                   List all buildpacks for an app
    buildpacks:remove <app> <buildpack>                     Remove a buildpack set on the app
    buildpacks:report [<app>] [<flag>]                      Displays a buildpack report for one or more apps
    buildpacks:set [--index 1] <app> <buildpack>            Set new app buildpack at a given position defaulting to the first buildpack if no index is specified
    buildpacks:set-property [--global|<app>] <key> <value>  Set or clear a buildpacks property for an app
root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full
=====> Setting stack to paketobuildpacks/builder-jammy-full
root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full
=====> Setting stack to paketobuildpacks/builder-jammy-full
root@dokku:/# dokku buildpacks:set-property --global stack paketobuildpacks/builder-jammy-full^C
root@dokku:/# dokku apps
=====> My Apps
 !     You haven't deployed any applications yet

dokku report $APP_NAME

N/A

Additional information

No response

Output of failing commands after running: dokku trace:off

No response

Output of failing commands after running: dokku trace:on

No response

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

No branches or pull requests

2 participants