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 extract build artifacts #26

Open
detjensrobert opened this issue Nov 11, 2024 · 0 comments
Open

How to extract build artifacts #26

detjensrobert opened this issue Nov 11, 2024 · 0 comments
Assignees

Comments

@detjensrobert
Copy link
Contributor

detjensrobert commented Nov 11, 2024

Configuration

Items in the provide: list can be either a single string or a object with explicit keys.

from: indicates the challenge container image where the file should be fetched from, based on the names in pods:. If omitted the default value is the repo challenge directory.

include: is the list of file paths to read from the source. String is equivalent to one-element array.

as: either renames the file or creates a zip of the files before uploading.

  • If as is given with only one source file, the source is renamed to the value.
  • If as is given with multiple files included, the files are zipped into an archive with the filename as the value.
  • If omitted, the basename of the file(s) are used and no renaming or archiving occurs (each file is listed individually).

examples

provide:
    # reads thing.jpg from chal directory and shown as thing.jpg
  - thing.jpg

    # copied from foo pod image and zipped together as things.zip
  - from: foo
    as: things.zip
    include: 
      - /lib/foo.so
      - /bin/pwnme

    # copied from foo pod image and shown as thing2
  - from: foo
    as: thing2
    include:
      - /bin/otherthing

Implementation

along the lines of:

  • docker create $IMAGE --name tempimage
  • docker cp ..files
  • docker rm tempimage
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