-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
|
afd23c4
to
e803182
Compare
|
|
src/main/java/org/testcontainers/containers/TarantoolImageParams.java
Outdated
Show resolved
Hide resolved
3919f39
to
c04a08b
Compare
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/main/java/org/testcontainers/containers/TarantoolContainer.java
Outdated
Show resolved
Hide resolved
...t/java/org/testcontainers/containers/TarantoolCartridgeBootstrapFromLuaWithFixedPortsIT.java
Show resolved
Hide resolved
src/main/resources/Dockerfile
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM $IMAGE_NAME AS cartridge-base | |
FROM {$IMAGE}:${TARANTOOL_VERSION} AS cartridge-base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это будет не единообразно для каких-нибудь centos:7
There was a problem hiding this comment.
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
src/main/java/org/testcontainers/containers/TarantoolContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/testcontainers/containers/TarantoolContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/testcontainers/containers/TarantoolContainer.java
Outdated
Show resolved
Hide resolved
|
|
There was a problem hiding this 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
|
I haven't forgotten about:
Related issues: