NEW
This commit is contained in:
19
backend/exec
Executable file
19
backend/exec
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo | lscpu | grep "rchitecture"
|
||||
|
||||
container="${1:-backend}"
|
||||
command="${2:-/bin/sh}"
|
||||
|
||||
echo $container
|
||||
echo $command
|
||||
|
||||
|
||||
if lscpu | grep -q "arm";
|
||||
then
|
||||
echo "Exec for ARM"
|
||||
docker-compose -f docker-compose-ARM.yaml exec $container $command
|
||||
else
|
||||
echo "Exec for X86"
|
||||
docker-compose exec $container $command
|
||||
fi
|
||||
Reference in New Issue
Block a user