SciFiFarms / TechnoCore

TechnoCore: an IoT stack powered by Docker Swarm
GNU General Public License v3.0
20 stars 1 forks source link

Add aliases for run_[service_name] #18

Closed TheHackmeister closed 6 years ago

TheHackmeister commented 6 years ago

I found when developing Althing, I wanted to poke around in the container. Swarm didn't have a consistent name for the container, so I found a one liner (Ha!) to dynamically docker exec -it /bin/bash. To use it, just run source aliases.sh from the project's root directory. Then you can run run_[service_name].

As a next step, I'd consider writing a bash script that would take a service name as an argument and then find the container based on that rather than statically coded aliases.