-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn if anonymous token is fetched (#4042)
Using a registry without logging in may lead to rate limiting; display a warning if that's the case. Note that this will be done in all instances even when using a local buildkit instance. fixes #3009 --------- Signed-off-by: Alex Couture-Beil <[email protected]>
- Loading branch information
Showing
11 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
VERSION 0.8 | ||
FROM --pass-args ..+base | ||
|
||
# replace the earthly config.yml (which typically has buildkit_additional_config configured | ||
# to use the earthly docker hub registry); we want to intentionally use docker hub for thist test | ||
RUN echo "global: | ||
disable_analytics: true" > /etc/.earthly/config.yml | ||
|
||
# clear out any docker auth | ||
RUN rm /root/.docker/config.json | ||
|
||
test: | ||
RUN mkdir sub | ||
COPY hello.earth Earthfile | ||
DO --pass-args +RUN_EARTHLY_ARGS --target=+hello --should_fail=maybe # there's a chance we actually get rate limited | ||
RUN acbgrep 'Warning: you are not logged into registry-1.docker.io, you may experience rate-limitting when pulling images' earthly.output | ||
|
||
RUN_EARTHLY_ARGS: | ||
FUNCTION | ||
ARG earthfile | ||
ARG target | ||
ARG should_fail=false | ||
DO --pass-args ..+RUN_EARTHLY \ | ||
--earthfile=$earthfile \ | ||
--target=$target \ | ||
--should_fail=$should_fail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
VERSION 0.8 | ||
|
||
hello: | ||
FROM alpine | ||
RUN echo hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters