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

How to migrate load_base from docker-image #69

Open
guillaumBrisard opened this issue Sep 17, 2021 · 1 comment
Open

How to migrate load_base from docker-image #69

guillaumBrisard opened this issue Sep 17, 2021 · 1 comment

Comments

@guillaumBrisard
Copy link

guillaumBrisard commented Sep 17, 2021

Hi,

How to migrate load_base please:

resources:
- name: openjdk-11
  type: docker-image
  source:
    repository: ((our.repo))/adoptopenjdk/openjdk11
    tag: alpine-jre
    <<: *repo-conf

jobs:
- name: job01
  plan:
  [...]
  - get: openjdk-11
    params: { save: true }
  - put: docker-app
    params:
      load_base: openjdk-11
      build: output-build
      tag_file: version-app/version

I suppose something like that

jobs:
- name: job01
  plan:
  [...]
  - get: openjdk-11
    params: { format: oci }
  - task: build
      privileged: true
      config:
        platform: linux
        image_resource:
          type: registry-image
          source:
            repository: concourse/oci-build-task
        caches:
          - path: cache ????
        params:
          IMAGE_ARG_????: ????/image.tar
        inputs:
        - name: output-build
          path: .
        outputs:
        - name: image
        run:
          path: build
  - put: docker-app
    params: 
      image: image/image.tar
      version: version-app/version

But I don't know how to use cache properly
or how to set IMAGE_ARG_***

In the doc:
For example, IMAGE_ARG_base_image=ubuntu/image.tar will set base_image to a local image reference for using ubuntu/image.tar
I suppose, I had to replace ubuntu by openjdk-11 with my example, but not sure
And I don't know, what to do with base_image:

Is it possible to have a doc for this use case please

Thx

@guillaumBrisard guillaumBrisard changed the title How to migrate load_base from the docker-image How to migrate load_base from docker-image Sep 20, 2021
@guillaumBrisard
Copy link
Author

I found it here:
https://github.com/concourse/oci-build-task/releases/tag/v0.7.0

Still it will be good to add to the README.md

I guess cache is useless

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

No branches or pull requests

1 participant