1@startdot 2digraph DockerDeps { 3 //rankdir=BT; 4 rankdir=TD; 5 node [shape=cylinder, style="rounded,filled", color=black, fillcolor=royalblue]; 6 DISTRO_IMG [label="ubuntu:latest"]; 7 PKG [label="packages\ne.g. cmake, g++", shape=box3d]; 8 SRC [label="git repo", shape=folder]; 9 SPL [label="sample", shape=folder]; 10 11 subgraph clusterDockerfile { 12 ENV_IMG [label="cpu_features:amd64_env\nenv"]; 13 DEVEL_IMG [label="cpu_features:amd64_devel\ndevel"]; 14 BUILD_IMG [label="cpu_features:amd64_build\nbuild"]; 15 TEST_IMG [label="cpu_features:amd64_test\ntest"]; 16 INSTALL_ENV_IMG [label="cpu_features:amd64_install_env\ninstall_env"]; 17 INSTALL_DEVEL_IMG [label="cpu_features:amd64_install_devel\ninstall_devel"]; 18 INSTALL_BUILD_IMG [label="cpu_features:amd64_install_build\ninstall_build"]; 19 INSTALL_TEST_IMG [label="cpu_features:amd64_install_test\ninstall_test"]; 20 21 ENV_IMG -> DEVEL_IMG; 22 DEVEL_IMG -> BUILD_IMG; 23 BUILD_IMG -> TEST_IMG; 24 25 ENV_IMG -> INSTALL_ENV_IMG; 26 BUILD_IMG -> INSTALL_ENV_IMG [label="copy install", style="dashed"]; 27 INSTALL_ENV_IMG -> INSTALL_DEVEL_IMG; 28 SPL -> INSTALL_DEVEL_IMG [label="copy", style="dashed"]; 29 INSTALL_DEVEL_IMG -> INSTALL_BUILD_IMG; 30 INSTALL_BUILD_IMG -> INSTALL_TEST_IMG; 31 32 color=royalblue; 33 label = "docker/amd64/Dockerfile"; 34 } 35 DISTRO_IMG -> ENV_IMG; 36 PKG -> ENV_IMG [label="install", style="dashed"]; 37 SRC -> DEVEL_IMG [label="copy", style="dashed"]; 38 39 subgraph clusterCache { 40 node [shape=note, style="rounded,filled", color=black, fillcolor=royalblue]; 41 ENV_TAR [label="docker_amd64_env.tar"]; 42 DEVEL_TAR [label="docker_amd64_devel.tar"]; 43 BUILD_TAR [label="docker_amd64_build.tar"]; 44 TEST_TAR [label="docker_amd64_test.tar"]; 45 INSTALL_ENV_TAR [label="docker_amd64_install_env.tar"]; 46 INSTALL_DEVEL_TAR [label="docker_amd64_install_devel.tar"]; 47 INSTALL_BUILD_TAR [label="docker_amd64_install_build.tar"]; 48 INSTALL_TEST_TAR [label="docker_amd64_install_test.tar"]; 49 50 edge [color=red]; 51 ENV_IMG -> ENV_TAR [label="make save_amd64_env"]; 52 DEVEL_IMG -> DEVEL_TAR [label="make save_amd64_devel"]; 53 BUILD_IMG -> BUILD_TAR [label="make save_amd64_build"]; 54 TEST_IMG -> TEST_TAR [label="make save_amd64_test"]; 55 INSTALL_ENV_IMG -> INSTALL_ENV_TAR [label="make save_amd64_install_env"]; 56 INSTALL_DEVEL_IMG -> INSTALL_DEVEL_TAR [label="make save_amd64_install_devel"]; 57 INSTALL_BUILD_IMG -> INSTALL_BUILD_TAR [label="make save_amd64_install_build"]; 58 INSTALL_TEST_IMG -> INSTALL_TEST_TAR [label="make save_amd64_install_test"]; 59 60 color=royalblue; 61 label = "cache/amd64/"; 62 } 63} 64@enddot 65