diff options
| author | Timo Trinks <ttrinks@fedoraproject.org> | 2023-06-01 15:35:58 +1000 |
|---|---|---|
| committer | Timo Trinks <ttrinks@fedoraproject.org> | 2023-06-01 15:35:58 +1000 |
| commit | 0d1c428ed1b3e487a553fc1096f37de8b361c974 (patch) | |
| tree | 37952468df69033c3e492bf51c8dd00232090ebe /vtcli | |
| parent | df171e0e3a5508cd92e2aba404b598a8445cf3b1 (diff) | |
| download | containers-0d1c428ed1b3e487a553fc1096f37de8b361c974.tar.gz containers-0d1c428ed1b3e487a553fc1096f37de8b361c974.tar.xz containers-0d1c428ed1b3e487a553fc1096f37de8b361c974.zip | |
- add a rudimentary podman virustotal container
Signed-off-by: Timo Trinks <ttrinks@fedoraproject.org>
Diffstat (limited to 'vtcli')
| -rw-r--r-- | vtcli/Dockerfile | 10 | ||||
| -rw-r--r-- | vtcli/README.md | 52 |
2 files changed, 62 insertions, 0 deletions
diff --git a/vtcli/Dockerfile b/vtcli/Dockerfile new file mode 100644 index 0000000..53d6418 --- /dev/null +++ b/vtcli/Dockerfile @@ -0,0 +1,10 @@ +FROM registry.fedoraproject.org/fedora:latest +LABEL maintainer="Timo Trinks" + +RUN dnf upgrade -y --refresh +RUN dnf install -y wget zip +RUN dnf clean all +RUN cd /tmp/ && wget https://github.com/VirusTotal/vt-cli/releases/latest/download/Linux64.zip && unzip /tmp/Linux64.zip -d /usr/local/bin/ + +ENTRYPOINT ["vt"] +cmd ["--help"] diff --git a/vtcli/README.md b/vtcli/README.md new file mode 100644 index 0000000..6518dfd --- /dev/null +++ b/vtcli/README.md @@ -0,0 +1,52 @@ +[vtcli] +======= + +Containerised (Podman) Virus Total client that uses an API stored as Podman Secret (sekurrre!) on the executing machine (so one a) won't have to store the API key in plain nor b) provide it during runtime). + +Requirements +------------ + +This work has been developed and tested on Fedora with podman/buildah. + +Prerequisites +------------- + +The Virus Total client uses an API key that can be stored as environment variable during container runtime. + +In order to avoid hardcoding credentials "podman secret" is being used. + +The following steps are required ONCE (on the machine the container runs) prior to building and running the container: + +- export VTAPIKEY=(insert api key used for access here) +- podman secret create --env VirustotalToken VTAPIKEY + +Instructions for use +-------------------- + +Building: + +``` +cd vtcli +buildah bud -t vtcli . && podman image prune -f +``` + +Running: + +``` +podman run -it --secret source=VirustotalToken,type=env,target=VTCLI_APIKEY --rm vtcli [command] (see vtcli --help for options) +``` + +License +------- + +GPLv3 + +Author Information +------------------ + +Timo Trinks, ttrinks@redhat.com + +Acknowledgements +------------------ + +N/A |
