Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Problem with variables in FROM statement? #66

Closed
accetto opened this issue Sep 20, 2019 · 3 comments
Closed

Problem with variables in FROM statement? #66

accetto opened this issue Sep 20, 2019 · 3 comments

Comments

@accetto
Copy link

accetto commented Sep 20, 2019

Hi,
I've noticed that some of my images got zero-size badges and also layers info is not there. What could be the reason? Can you check it please? Thanks.

accetto/ubuntu-vnc-xfce-firefox-default
accetto/xubuntu-vnc-angular
accetto/xubuntu-vnc-chromium
accetto/xubuntu-vnc-inkscape
accetto/xubuntu-vnc-js-heroku-postgresql
accetto/xubuntu-vnc-node
accetto/xubuntu-vnc-typescript

@accetto
Copy link
Author

accetto commented Sep 22, 2019

I have a suspicion, that the problem could be that some Dockerfiles use variables in FROM statements, like for example accetto/xubuntu-vnc-node

ARG BASEIMAGE=accetto/xubuntu-vnc
ARG BASETAG=latest
FROM ${BASEIMAGE}:${BASETAG} as stage-utils

Could it be the reason for the message No matching base image on MicroBadger web page?

Do you analyze Dockerfiles or actual images?

@accetto accetto changed the title Zero size in badges and no layers information Problem with variables in FROM statement? Sep 22, 2019
@rossf7
Copy link
Contributor

rossf7 commented Sep 22, 2019

@accetto Yes, this could cause a problem. We get the metadata from Docker Hub using the Docker Registry API.

To determine the base image we need to read the FROM layer and I don't think the ARGS will be rendered.

But see #38 (comment) we have some stability problems at the moment. We are getting a lot of 403 responses from Docker Hub when getting the size of layers which is probably the reason for the 0 bytes.

@accetto
Copy link
Author

accetto commented Oct 10, 2019

My assumption doesn't seem to be right. Layers are correctly displayed also in cases like described above, but the size is zero. Also other images, that are simpler and haven't changed for quite a while show zero sizes. The reason must be elsewhere.

@accetto accetto closed this as completed Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants