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

Align model catalog to DockerPedia #5

Open
dgarijo opened this issue May 1, 2019 · 10 comments
Open

Align model catalog to DockerPedia #5

dgarijo opened this issue May 1, 2019 · 10 comments
Assignees

Comments

@dgarijo
Copy link
Contributor

dgarijo commented May 1, 2019

Should use DockerPedia annotators to describe the containers we have in the entries of the model catalog. @sirspock can help pointing out to the right resources, or setting up the annotation service so @Amrish-Goel can perform the RDF transformations.

@mosoriob
Copy link
Contributor

mosoriob commented May 1, 2019

I installed the Clair software and it is running at http://clair.mosorio.me

How to start

To obtain information for Clair, you need a client.
I know two clients:
If you know GoLang, I recommend klar optiopay/klar: Integration of Clair and Docker Registry. DockerPedia annotator is a fork of Klar. However, Clair has changed the API, so I am not sure if DockerPedia is working.

If you know Python, I recommend yebinama/paclair: Paclair is a Python3 Cli tool to interact with Coreos's Clair (https://github.com/coreos/clair)..

Usually, these clients are going to return the vulnerabilities of the container. So, you must edit the client to obtain the software packages.
When I was working on Dockerpedia, I did it. The commit is dockerpedia/annotator@27c70a0

Today, I tested paclair, and it is working. I share the steps and configuration

$ paclair --conf clair/config.yaml  Docker ubuntu push
$ paclair --conf clair/config.yaml  Docker ubuntu analyse 
General:
  clair_url: 'http://clair.mosorio.me'
  clair_api_version: 3
Plugins:
  Docker:
    class: paclair.plugins.docker_plugin.DockerPlugin

Best,

@dgarijo
Copy link
Contributor Author

dgarijo commented May 2, 2019

@sirspock is there a way for us to do something like annotator -d nameOfContainer? There are no instructions on how to run the annotator. @Amrish-Goel is going to spend limited time with us and I would like him to work on the RDF transformation, not necessarily on how to invoke the annotator.

@mosoriob
Copy link
Contributor

mosoriob commented May 2, 2019

I fixed Dockerpedia. However, I am waiting for a new subdomain.
I sent you a JSON example. So, you can start working
For example, you can obtain software packages:

cat image.json | jq -r '.image.features'
{"image":{"image":"kcapd/publisher","tag":"latest","size":120578832,"features":[{"Name":"musl","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.1.20-r3","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"ca-certificates","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"20190108-r0","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b851d6d4c96fd308155315fc8f535227125342b8466a665fbf44eb87bd350de277"},{"Name":"scanelf","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.2.3-r0","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"busybox","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.29.3-r10","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"ssl_client","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.29.3-r10","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"alpine-keys","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"2.1-r1","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"libc-utils","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"0.7.1-r0","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"libcrypto1.1","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.1.1a-r1","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"libssl1.1","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.1.1a-r1","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"musl-utils","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.1.20-r3","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"ca-certificates-cacert","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"20190108-r0","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"libtls-standalone","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"2.7.4-r6","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"apk-tools","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"2.10.3-r1","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"alpine-baselayout","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"3.1.0-r3","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"Name":"zlib","Vulnerabilities":null,"NamespaceName":"alpine:v3.9","Version":"1.2.11-r1","AddedBy":"ce038e96b80baabbbe8e0eb790b35830ff855da93ec99a866d91a3affbc6d3b86c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"}],"manifest":{"schemaVersion":1,"name":"kcapd/publisher","tag":"latest","architecture":"amd64","fsLayers":[{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:8a955318d720525d257bdf5a8845356a3b0ffc797628a774e3cbbf162163e0c9"},{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:70b760ca2416b51968ec173fb6c34569824eeaab96e571cacd637aa5eb7943c6"},{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:96464951f390b55e760f1e9a187ac1ca70e84d13fc43808f02ebcaa4a65fcdca"},{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:945d978b4f197a284150a58bc63f99c562080d67d3eb5ba8b97945b194d58235"},{"blobSum":"sha256:51d6d4c96fd308155315fc8f535227125342b8466a665fbf44eb87bd350de277"},{"blobSum":"sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4"},{"blobSum":"sha256:6c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"}],"history":[{"v1Compatibility":"{\"architecture\":\"amd64\",\"config\":{\"Hostname\":\"\",\"Domainname\":\"\",\"User\":\"\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"ExposedPorts\":{\"8080/tcp\":{}},\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":[\"PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"GOLANG_VERSION=1.11.5\",\"GOPATH=/go\"],\"Cmd\":null,\"ArgsEscaped\":true,\"Image\":\"sha256:d7b4aa7e462cc5f227777bc91e14a8f1c682db01ae167f5c5638753687e999c3\",\"Volumes\":null,\"WorkingDir\":\"/go\",\"Entrypoint\":[\"/go/bin/transfersh\",\"--listener\",\":8080\"],\"OnBuild\":null,\"Labels\":null},\"container\":\"6ad009188f347e6e9e7b1a3966428bfd914ab09eb2df802f24fd1f2511b3689c\",\"container_config\":{\"Hostname\":\"6ad009188f34\",\"Domainname\":\"\",\"User\":\"\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"ExposedPorts\":{\"8080/tcp\":{}},\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":[\"PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"GOLANG_VERSION=1.11.5\",\"GOPATH=/go\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"#(nop) \",\"EXPOSE 8080\"],\"ArgsEscaped\":true,\"Image\":\"sha256:d7b4aa7e462cc5f227777bc91e14a8f1c682db01ae167f5c5638753687e999c3\",\"Volumes\":null,\"WorkingDir\":\"/go\",\"Entrypoint\":[\"/go/bin/transfersh\",\"--listener\",\":8080\"],\"OnBuild\":null,\"Labels\":{}},\"created\":\"2019-02-05T21:58:54.214506154Z\",\"docker_version\":\"18.03.1-ee-3\",\"id\":\"026832855320754fb96b27a29ed9767b2ad0a98d69b168adeea4cac8570cea02\",\"os\":\"linux\",\"parent\":\"7c2dbca5a0dc195a72fb4ae46dfd856f4b4cf1e2c39408f5d039fa781c01a403\",\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"7c2dbca5a0dc195a72fb4ae46dfd856f4b4cf1e2c39408f5d039fa781c01a403\",\"parent\":\"070515c5435ed5083eb71df216006f573a91a2cb7897d0b5de32339322ceae4f\",\"created\":\"2019-02-05T21:58:53.891309016Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop)  ENTRYPOINT [\\\"/go/bin/transfersh\\\" \\\"--listener\\\" \\\":8080\\\"]\"]},\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"070515c5435ed5083eb71df216006f573a91a2cb7897d0b5de32339322ceae4f\",\"parent\":\"e8714f5d2231cbbc3f5b088adc5f6c665fd9c23454af98aceb9ed3d2cd012729\",\"created\":\"2019-02-05T21:58:53.530711101Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop) COPY file:306a6add6110e2c3658a044537912c3a3d53f25221dd80bf5ae2b350df2f0232 in /go/bin/transfersh \"]}}"},{"v1Compatibility":"{\"id\":\"e8714f5d2231cbbc3f5b088adc5f6c665fd9c23454af98aceb9ed3d2cd012729\",\"parent\":\"f118ff4a72aff8a4be250b4bc589685e8aa1d0599fa530573f14cde0545dbb0a\",\"created\":\"2019-02-05T20:26:04.119402782Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop) WORKDIR /go\"]},\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"f118ff4a72aff8a4be250b4bc589685e8aa1d0599fa530573f14cde0545dbb0a\",\"parent\":\"aa83deced917b2660976076e96f44dce1b5a651ace62917cd3cae24084e3aa5d\",\"created\":\"2019-02-05T20:26:03.91021052Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c mkdir -p \\\"$GOPATH/src\\\" \\\"$GOPATH/bin\\\" \\u0026\\u0026 chmod -R 777 \\\"$GOPATH\\\"\"]}}"},{"v1Compatibility":"{\"id\":\"aa83deced917b2660976076e96f44dce1b5a651ace62917cd3cae24084e3aa5d\",\"parent\":\"419a1d7a06b67be8274b570f6df3a5e7bb5d9954cbc99aa20b6b548f248ada26\",\"created\":\"2019-02-05T20:26:03.063507744Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop)  ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"]},\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"419a1d7a06b67be8274b570f6df3a5e7bb5d9954cbc99aa20b6b548f248ada26\",\"parent\":\"df50215fc09ac8ddc47483ead137c83c4681c2aea138740e89c002b6e0cd7956\",\"created\":\"2019-02-05T20:26:02.887439625Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop)  ENV GOPATH=/go\"]},\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"df50215fc09ac8ddc47483ead137c83c4681c2aea138740e89c002b6e0cd7956\",\"parent\":\"485284ad1e24aa62aca48cc09e69da7619898ce9806defbb577e1f3ed278ee55\",\"created\":\"2019-02-05T20:26:02.430280758Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c set -eux; \\tapk add --no-cache --virtual .build-deps \\t\\tbash \\t\\tgcc \\t\\tmusl-dev \\t\\topenssl \\t\\tgo \\t; \\texport \\t\\tGOROOT_BOOTSTRAP=\\\"$(go env GOROOT)\\\" \\t\\tGOOS=\\\"$(go env GOOS)\\\" \\t\\tGOARCH=\\\"$(go env GOARCH)\\\" \\t\\tGOHOSTOS=\\\"$(go env GOHOSTOS)\\\" \\t\\tGOHOSTARCH=\\\"$(go env GOHOSTARCH)\\\" \\t; \\tapkArch=\\\"$(apk --print-arch)\\\"; \\tcase \\\"$apkArch\\\" in \\t\\tarmhf) export GOARM='6' ;; \\t\\tx86) export GO386='387' ;; \\tesac; \\t\\twget -O go.tgz \\\"https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz\\\"; \\techo 'bc1ef02bb1668835db1390a2e478dcbccb5dd16911691af9d75184bbe5aa943e *go.tgz' | sha256sum -c -; \\ttar -C /usr/local -xzf go.tgz; \\trm go.tgz; \\t\\tcd /usr/local/go/src; \\t./make.bash; \\t\\trm -rf \\t\\t/usr/local/go/pkg/bootstrap \\t\\t/usr/local/go/pkg/obj \\t; \\tapk del .build-deps; \\t\\texport PATH=\\\"/usr/local/go/bin:$PATH\\\"; \\tgo version\"]}}"},{"v1Compatibility":"{\"id\":\"485284ad1e24aa62aca48cc09e69da7619898ce9806defbb577e1f3ed278ee55\",\"parent\":\"77a4124dd0cf14e750fbf5e8f5633f7be5d58ec73d33a81ba631cd353810cf02\",\"created\":\"2019-02-05T20:23:26.839632262Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop)  ENV GOLANG_VERSION=1.11.5\"]},\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"77a4124dd0cf14e750fbf5e8f5633f7be5d58ec73d33a81ba631cd353810cf02\",\"parent\":\"8322e0cbdc6708c890356081a1385b9680979a308f48d53b0f8385bfb7cf3908\",\"created\":\"2019-02-05T20:19:38.870907345Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c [ ! -e /etc/nsswitch.conf ] \\u0026\\u0026 echo 'hosts: files dns' \\u003e /etc/nsswitch.conf\"]}}"},{"v1Compatibility":"{\"id\":\"8322e0cbdc6708c890356081a1385b9680979a308f48d53b0f8385bfb7cf3908\",\"parent\":\"1b732291bbcf173afbfeac1df9f83fc8bdc64183735a0265b5b09aefd71f3eac\",\"created\":\"2019-02-05T20:19:38.154965526Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c apk add --no-cache \\t\\tca-certificates\"]}}"},{"v1Compatibility":"{\"id\":\"1b732291bbcf173afbfeac1df9f83fc8bdc64183735a0265b5b09aefd71f3eac\",\"parent\":\"92bdbc97504bab151c3cf7451f2664797538d1fbe2fa0c8b92a218a97cc079df\",\"created\":\"2019-01-30T22:19:52.734509838Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop)  CMD [\\\"/bin/sh\\\"]\"]},\"throwaway\":true}"},{"v1Compatibility":"{\"id\":\"92bdbc97504bab151c3cf7451f2664797538d1fbe2fa0c8b92a218a97cc079df\",\"created\":\"2019-01-30T22:19:52.585366638Z\",\"container_config\":{\"Cmd\":[\"/bin/sh -c #(nop) ADD file:2a1fc9351afe35698918545b2d466d9805c2e8afcec52f916785ee65bbafeced in / \"]}}"}],"signatures":[{"header":{"jwk":{"crv":"P-256","kid":"R4B4:T7VH:W44T:JQGN:4IES:GY5G:BF6D:G7UM:XVQP:7FVY:HPED:GWHP","kty":"EC","x":"DUJb4Cei-rObJmnhW-3CoOmHvrbhreSun76VzJ0jxrY","y":"Hn-z46FFz9rZUyvPc1k21zZ03rTJXADquOE01F0ea2A"},"alg":"ES256"},"signature":"cXLJ15tkIUAz1n9aYqQnmDVi-1J4OGwmoUgVsg4e1wnfbvhtSpLRDc3zIGZGk--Weaw3UqYmD1oxpgHOFI57pg","protected":"eyJmb3JtYXRMZW5ndGgiOjg2MTAsImZvcm1hdFRhaWwiOiJDbjAiLCJ0aW1lIjoiMjAxOS0wNS0wMlQyMDozMTo0NloifQ"}]},"history":[{"Architecture":"amd64","id":"026832855320754fb96b27a29ed9767b2ad0a98d69b168adeea4cac8570cea02","parent":"7c2dbca5a0dc195a72fb4ae46dfd856f4b4cf1e2c39408f5d039fa781c01a403","created":"2019-02-05T21:58:54.214506154Z","throwaway":true,"container_config":{"Cmd":["/bin/sh","-c","#(nop) ","EXPOSE 8080"],"Image":"sha256:d7b4aa7e462cc5f227777bc91e14a8f1c682db01ae167f5c5638753687e999c3"},"config":{"Labels":{}}},{"Architecture":"","id":"7c2dbca5a0dc195a72fb4ae46dfd856f4b4cf1e2c39408f5d039fa781c01a403","parent":"070515c5435ed5083eb71df216006f573a91a2cb7897d0b5de32339322ceae4f","created":"2019-02-05T21:58:53.891309016Z","throwaway":true,"container_config":{"Cmd":["/bin/sh -c #(nop)  ENTRYPOINT [\"/go/bin/transfersh\" \"--listener\" \":8080\"]"]},"config":{"Labels":{}}},{"Architecture":"","id":"070515c5435ed5083eb71df216006f573a91a2cb7897d0b5de32339322ceae4f","parent":"e8714f5d2231cbbc3f5b088adc5f6c665fd9c23454af98aceb9ed3d2cd012729","created":"2019-02-05T21:58:53.530711101Z","container_config":{"Cmd":["/bin/sh -c #(nop) COPY file:306a6add6110e2c3658a044537912c3a3d53f25221dd80bf5ae2b350df2f0232 in /go/bin/transfersh "]},"config":{"Labels":{}}},{"Architecture":"","id":"e8714f5d2231cbbc3f5b088adc5f6c665fd9c23454af98aceb9ed3d2cd012729","parent":"f118ff4a72aff8a4be250b4bc589685e8aa1d0599fa530573f14cde0545dbb0a","created":"2019-02-05T20:26:04.119402782Z","throwaway":true,"container_config":{"Cmd":["/bin/sh -c #(nop) WORKDIR /go"]},"config":{"Labels":{}}},{"Architecture":"","id":"f118ff4a72aff8a4be250b4bc589685e8aa1d0599fa530573f14cde0545dbb0a","parent":"aa83deced917b2660976076e96f44dce1b5a651ace62917cd3cae24084e3aa5d","created":"2019-02-05T20:26:03.91021052Z","container_config":{"Cmd":["/bin/sh -c mkdir -p \"$GOPATH/src\" \"$GOPATH/bin\" \u0026\u0026 chmod -R 777 \"$GOPATH\""]},"config":{"Labels":{}}},{"Architecture":"","id":"aa83deced917b2660976076e96f44dce1b5a651ace62917cd3cae24084e3aa5d","parent":"419a1d7a06b67be8274b570f6df3a5e7bb5d9954cbc99aa20b6b548f248ada26","created":"2019-02-05T20:26:03.063507744Z","throwaway":true,"container_config":{"Cmd":["/bin/sh -c #(nop)  ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]},"config":{"Labels":{}}},{"Architecture":"","id":"419a1d7a06b67be8274b570f6df3a5e7bb5d9954cbc99aa20b6b548f248ada26","parent":"df50215fc09ac8ddc47483ead137c83c4681c2aea138740e89c002b6e0cd7956","created":"2019-02-05T20:26:02.887439625Z","throwaway":true,"container_config":{"Cmd":["/bin/sh -c #(nop)  ENV GOPATH=/go"]},"config":{"Labels":{}}},{"Architecture":"","id":"df50215fc09ac8ddc47483ead137c83c4681c2aea138740e89c002b6e0cd7956","parent":"485284ad1e24aa62aca48cc09e69da7619898ce9806defbb577e1f3ed278ee55","created":"2019-02-05T20:26:02.430280758Z","container_config":{"Cmd":["/bin/sh -c set -eux; \tapk add --no-cache --virtual .build-deps \t\tbash \t\tgcc \t\tmusl-dev \t\topenssl \t\tgo \t; \texport \t\tGOROOT_BOOTSTRAP=\"$(go env GOROOT)\" \t\tGOOS=\"$(go env GOOS)\" \t\tGOARCH=\"$(go env GOARCH)\" \t\tGOHOSTOS=\"$(go env GOHOSTOS)\" \t\tGOHOSTARCH=\"$(go env GOHOSTARCH)\" \t; \tapkArch=\"$(apk --print-arch)\"; \tcase \"$apkArch\" in \t\tarmhf) export GOARM='6' ;; \t\tx86) export GO386='387' ;; \tesac; \t\twget -O go.tgz \"https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz\"; \techo 'bc1ef02bb1668835db1390a2e478dcbccb5dd16911691af9d75184bbe5aa943e *go.tgz' | sha256sum -c -; \ttar -C /usr/local -xzf go.tgz; \trm go.tgz; \t\tcd /usr/local/go/src; \t./make.bash; \t\trm -rf \t\t/usr/local/go/pkg/bootstrap \t\t/usr/local/go/pkg/obj \t; \tapk del .build-deps; \t\texport PATH=\"/usr/local/go/bin:$PATH\"; \tgo version"]},"config":{"Labels":{}}},{"Architecture":"","id":"485284ad1e24aa62aca48cc09e69da7619898ce9806defbb577e1f3ed278ee55","parent":"77a4124dd0cf14e750fbf5e8f5633f7be5d58ec73d33a81ba631cd353810cf02","created":"2019-02-05T20:23:26.839632262Z","throwaway":true,"container_config":{"Cmd":["/bin/sh -c #(nop)  ENV GOLANG_VERSION=1.11.5"]},"config":{"Labels":{}}},{"Architecture":"","id":"77a4124dd0cf14e750fbf5e8f5633f7be5d58ec73d33a81ba631cd353810cf02","parent":"8322e0cbdc6708c890356081a1385b9680979a308f48d53b0f8385bfb7cf3908","created":"2019-02-05T20:19:38.870907345Z","container_config":{"Cmd":["/bin/sh -c [ ! -e /etc/nsswitch.conf ] \u0026\u0026 echo 'hosts: files dns' \u003e /etc/nsswitch.conf"]},"config":{"Labels":{}}},{"Architecture":"","id":"8322e0cbdc6708c890356081a1385b9680979a308f48d53b0f8385bfb7cf3908","parent":"1b732291bbcf173afbfeac1df9f83fc8bdc64183735a0265b5b09aefd71f3eac","created":"2019-02-05T20:19:38.154965526Z","container_config":{"Cmd":["/bin/sh -c apk add --no-cache \t\tca-certificates"]},"config":{"Labels":{}}},{"Architecture":"","id":"1b732291bbcf173afbfeac1df9f83fc8bdc64183735a0265b5b09aefd71f3eac","parent":"92bdbc97504bab151c3cf7451f2664797538d1fbe2fa0c8b92a218a97cc079df","created":"2019-01-30T22:19:52.734509838Z","throwaway":true,"container_config":{"Cmd":["/bin/sh -c #(nop)  CMD [\"/bin/sh\"]"]},"config":{"Labels":{}}},{"Architecture":"","id":"92bdbc97504bab151c3cf7451f2664797538d1fbe2fa0c8b92a218a97cc079df","created":"2019-01-30T22:19:52.585366638Z","container_config":{"Cmd":["/bin/sh -c #(nop) ADD file:2a1fc9351afe35698918545b2d466d9805c2e8afcec52f916785ee65bbafeced in / "]},"config":{"Labels":{}}}],"labels":{},"layers":[{"BlobSum":"sha256:6c40cc604d8e4c121adcb6b0bfe8bb038815c350980090e74aa5a6423f8f82c0"},{"BlobSum":"sha256:51d6d4c96fd308155315fc8f535227125342b8466a665fbf44eb87bd350de277"},{"BlobSum":"sha256:945d978b4f197a284150a58bc63f99c562080d67d3eb5ba8b97945b194d58235"},{"BlobSum":"sha256:96464951f390b55e760f1e9a187ac1ca70e84d13fc43808f02ebcaa4a65fcdca"},{"BlobSum":"sha256:70b760ca2416b51968ec173fb6c34569824eeaab96e571cacd637aa5eb7943c6"},{"BlobSum":"sha256:8a955318d720525d257bdf5a8845356a3b0ffc797628a774e3cbbf162163e0c9"}]}}

@mosoriob
Copy link
Contributor

mosoriob commented May 2, 2019

@dgarijo
Copy link
Contributor Author

dgarijo commented May 2, 2019

@Amrish-Goel the above link is the JSON converted to triples.

@mosoriob
Copy link
Contributor

mosoriob commented May 2, 2019

Warning: the JSON is incomplete. However, I can return the same information.

@dgarijo
Copy link
Contributor Author

dgarijo commented May 2, 2019

@sirspock and the RDF is generated from the JSON by the annotator?

@dgarijo dgarijo transferred this issue from mintproject/Mint-ModelCatalog-Ontology May 2, 2019
@Amrish-Goel
Copy link
Contributor

@sirspock I have few questions to start with
Q1: Is there a way to run the annotator by just giving name of the Container?
Q2: Will the annotator directly provides me with triples or JSON? Coz in the comment you have given both or are the RDF generated from these triples?
Moreover this http://clair.mosorio.me link is down. I am getting 502 error.
Can you please help me with these issues?

@mosoriob
Copy link
Contributor

mosoriob commented May 9, 2019

Checking. Sorry for the delay.

@dgarijo
Copy link
Contributor Author

dgarijo commented Jul 1, 2019

Example: curl -X POST -H "Content-Type: application/json" -d '{"image":"library/alpine", "tag": "latest"}' https://dockerpedia.mint.isi.edu/api/v1/repositories/new

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

3 participants