Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ova/Alpine.ova
Binary file not shown.
13 changes: 13 additions & 0 deletions ova/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:22.04

RUN apt-get update

RUN mkdir -p /testdata

# Set working directory
WORKDIR /testdata

# Copy valid-but-nonbootable .ova file into the container
COPY Alpine.ova /testdata/Alpine.ova

CMD ["/bin/bash"]
26 changes: 26 additions & 0 deletions ova/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# OSV-Scalibr: OVA Extractor

This directory contains the test Dockerfile for testing OSV-Scalibr's ova Extractor plugin. Open Virtualization Appliance (OVA) package is a tar archive file with the OVF directory inside. Open Virtualization Format (OVF) is an open standard for packaging and distributing virtual appliances.

## Setup

### Build the Docker Image

```bash
cd security-testbeds/ova
docker build -t ova-extractor-testbed .
```

### Run the Container

```bash
docker run -it --rm ova-extractor-testbed /bin/bash
```

### Running OSV-Scalibr

Build or copy the `scalibr` binary to the current directory, and inside the container, run `scalibr` with the ova extractor:

```bash
./scalibr --extractors=embeddedfs/ova --result=output.textproto .
```