1 2 3 4 5 6 7 8 9 10 11
function TestInContainer($name) { $TAG="python_magic/${name}:latest" docker build -t $TAG -f "test/Dockerfile_${name}" . docker run "python_magic/${name}:latest" } TestInContainer "xenial" TestInContainer "bionic" TestInContainer "focal"