Skip to content

Add support for environment variable TARANTOOL_REGISTRY #124

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

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

vasilevichra
Copy link

@vasilevichra vasilevichra commented May 3, 2024

I haven't forgotten about:

  • Tests
  • Changelog
  • Documentation
  • Commit messages comply with the guideline
  • Cleanup the code for review. See checklist

Related issues:

Copy link

github-actions bot commented May 3, 2024

Overall Project 61.16% -2.83% 🍏
Files changed 0%

File Coverage
TarantoolImageParams.java 0% -70.65%

@vasilevichra vasilevichra force-pushed the registry branch 3 times, most recently from afd23c4 to e803182 Compare May 3, 2024 16:59
Copy link

github-actions bot commented May 3, 2024

Overall Project 61.16% -2.83% 🍏
Files changed 0%

File Coverage
TarantoolImageParams.java 0% -70.65%

@vasilevichra vasilevichra self-assigned this May 3, 2024
@vasilevichra vasilevichra requested a review from ArtDu May 3, 2024 17:05
@dkasimovskiy dkasimovskiy self-requested a review May 6, 2024 07:05
Copy link

github-actions bot commented May 6, 2024

Overall Project 61.16% -2.83% 🍏
Files changed 0%

File Coverage
TarantoolImageParams.java 0% -70.65%

@vasilevichra vasilevichra force-pushed the registry branch 5 times, most recently from 3919f39 to c04a08b Compare May 6, 2024 11:29
Copy link

github-actions bot commented May 6, 2024

Overall Project 61.16% -2.83% 🍏
Files changed 0%

File Coverage
TarantoolImageParams.java 0% -70.65%

Copy link

github-actions bot commented May 6, 2024

Overall Project 61.23% -3.3% 🍏
Files changed 32.46%

File Coverage
TarantoolContainer.java 60.44% -2.02% 🍏
TarantoolImageParams.java 0% -70.65%

Copy link

github-actions bot commented May 6, 2024

Overall Project 61.21% -3.3% 🍏
Files changed 40.31%

File Coverage
TarantoolContainer.java 60.37% -2.02% 🍏
TarantoolImageParams.java 0% -70.65%

@vasilevichra vasilevichra requested review from ArtDu and dkasimovskiy May 6, 2024 12:09
Copy link
Contributor

@ArtDu ArtDu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не понятно откуда только эти имаджы. Как зависимость от главных? почему они без registry тогда странно

image

FROM tarantool/tarantool:${TARANTOOL_VERSION} AS cartridge-base
ARG TARANTOOL_VERSION="2.11.2-ubuntu20.04"
ARG IMAGE_NAME="tarantool/tarantool:$TARANTOOL_VERSION"
FROM $IMAGE_NAME AS cartridge-base
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM $IMAGE_NAME AS cartridge-base
FROM {$IMAGE}:${TARANTOOL_VERSION} AS cartridge-base

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это будет не единообразно для каких-нибудь centos:7

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По-хорошему TARANTOOL_VERSION нужно переименовать в TAG или TAG_NAME, но это ломает обратную совместимость.
С другой стороны, переменная $IMAGE не должна содержать в себе TAG, если следовать документации dockerfile

@vasilevichra
Copy link
Author

vasilevichra commented May 6, 2024

Не понятно откуда только эти имаджы. Как зависимость от главных? почему они без registry тогда странно

image

Ага, видел. Их базовые тянут откуда-то. Не нашёл способа, как на них можно повлиять. А может быть это какой-нибудь кэш.

Copy link

github-actions bot commented May 6, 2024

Overall Project 61.21% -3.3% 🍏
Files changed 40.31%

File Coverage
TarantoolContainer.java 60.37% -2.02% 🍏
TarantoolImageParams.java 0% -70.65%

Copy link

github-actions bot commented May 6, 2024

Overall Project 61.21% -3.3% 🍏
Files changed 40.31%

File Coverage
TarantoolContainer.java 60.37% -2.02% 🍏
TarantoolImageParams.java 0% -70.65%

@vasilevichra vasilevichra requested review from ArtDu and dkasimovskiy May 6, 2024 14:16
@ArtDu
Copy link
Contributor

ArtDu commented May 6, 2024

Не понятно откуда только эти имаджы. Как зависимость от главных? почему они без registry тогда странно
image

Ага, видел. Их базовые тянут откуда-то. Не нашёл способа, как на них можно повлиять. А может быть это какой-нибудь кэш.

Странно то, я сейчас загрузил все эти 3 имаджа, но другие нет когда вызываешь docker images.

image

Copy link
Contributor

@ArtDu ArtDu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, только IMAGE надо, чтобы не затерал TARANTOOL_VERSION

@dkasimovskiy dkasimovskiy added the unplanned Something that wasn't planned to do but done label May 6, 2024
Copy link

github-actions bot commented May 7, 2024

Overall Project 61.21% -3.3% 🍏
Files changed 40.31%

File Coverage
TarantoolContainer.java 60.37% -2.02% 🍏
TarantoolImageParams.java 0% -70.65%

@ArtDu ArtDu merged commit cb93d0d into master May 7, 2024
5 checks passed
@ArtDu ArtDu deleted the registry branch May 7, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unplanned Something that wasn't planned to do but done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants