-
Notifications
You must be signed in to change notification settings - Fork 90
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
container: add container image version #3103
Conversation
scripts/dockerdev.sh
Outdated
@@ -38,13 +35,15 @@ dockerdev () { | |||
fi | |||
|
|||
# If already running, enter the container. | |||
if $RUNTIME ps | grep -q $container_name; then | |||
if $RUNTIME ps | grep -q $image_name:$CONTAINER_VERSION; then |
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.
this seems wrong docker ps
shows the running containers, which are named with the container name, not the image name. If I have the same image running under a different name, I don't want dockerdev
to use that.
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.
Good point, added a second filter 👍
scripts/dockerdev.sh
Outdated
echo "No bitbox-wallet docker image found! Maybe you need to run 'make dockerinit'?" >&2 | ||
exit 1 | ||
fi | ||
local image_name=bitbox-wallet-app |
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.
should be shiftcrypto/bitbox-wallet-app, shiftcrypto/ is part of the image name.
This will allow to checkout older commits and run `make dockerdev` without worrying if the container image version changed.
5be2b03
to
ace02fe
Compare
@benma updated, PTAL 🙏 |
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.
utACK
This will allow to checkout older commits and run
make dockerdev
without worrying if the container image version changed.