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

As a Korifi API user I want to be able to create packages with docker lifecycle so that I am enabled to run workloads backed up by docker images #2791

Closed
danail-branekov opened this issue Aug 17, 2023 · 0 comments
Labels
docker Pull requests that update Docker code
Milestone

Comments

@danail-branekov
Copy link
Member

GIVEN Korifi is deployed on a k8s cluster

WHEN I create a package with docker lifecycle that references a public docker image:

curl "https://api.example.org/v3/packages" \
  -X POST \
  -H "Authorization: bearer [token]" \
  -H "Content-type: application/json" \
  -d '{
    "type": "docker",
    "data": {
      "image": "eirini/dorini"
    }
    "relationships": {
      "app": {
        "data": {
          "guid": "[guid]"
        }
      }
    }
  }'

THEN I see that the request above retruns a response similar to

HTTP/1.1 201 Created
Content-Type: application/json

{
  "guid": "4cb65058-f04f-458f-aca1-5f4e43de6407",
  "type": "docker",
  "data": {
    "image": "eirini/dorini"
  }
}
@danail-branekov danail-branekov added the docker Pull requests that update Docker code label Aug 17, 2023
georgethebeatle added a commit that referenced this issue Aug 24, 2023
Issue: #2791

Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
danail-branekov added a commit that referenced this issue Aug 24, 2023
Issue: #2791

Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
@georgethebeatle georgethebeatle added this to the v0.9 milestone Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Pull requests that update Docker code
Projects
Archived in project
Development

No branches or pull requests

2 participants