Listing Images #29
Code-Over-Time
announced in
Tasks: Junior
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Category: Developer / Build Tools
Level: Junior
Description
There are a few
Makecommands that you have already used and will be using all the time:This covers a lot of what we need to do when working on Varcade Games, but there's another command that would be useful.
Sometimes you need to access a running docker image using your command line interface. In fact, you've done this already as part of the development environment setup, when you had to initialize the game database. The command you ran looked like this:
docker exec -it game-portal bashWhat this command does is connect to a virtual machine that is running inside Docker. In this case it connected to the game portal - which is the server that runs the main Varcade Games website.
This is a bit of a tedious command to have to write every time you want to connect to one of your Docker images. It would be great if we had a convenient make command to do this, just like we have convenient commands to build, start and run our services. Something like this:
Deliverable
Add a new makefile command that connects to a Docker image shell.
This make command will mostly consist of the command listed above:
docker exec -it game-portal bash- however we don't just want the 'game-portal'. We might want to connect to thematchmakerimage for example, orgame-rps.The format should be similar to existing commands. For example to view logs for a service the command is:
So to view images for a server the command should be:
You should be able to copy and existing command and make the necessary change to get the above results.
Acceptance Criteria
make shell a=<container name>Task Tips!
build_toolsdirectoryBeta Was this translation helpful? Give feedback.
All reactions