github.com/cloudfoundry-attic/garden-linux@v0.333.2-candidate/packer/garden-ci/garden-ci.json (about)

     1  {
     2    "variables": {
     3      "os_name": "ubuntu",
     4      "os_version": "14.04.2",
     5    },
     6    "builders": [
     7      {
     8        "type": "docker",
     9        "image": "{{user `os_name`}}:{{user `os_version`}}",
    10        "commit": true
    11      }
    12    ],
    13    "provisioners": [
    14      {
    15        "type": "shell",
    16        "scripts": [
    17          "garden-ci/scripts/passwordless_sudo.sh"
    18        ]
    19      },
    20      {
    21        "type": "shell",
    22        "scripts": [
    23          "garden-ci/scripts/provision.sh"
    24        ]
    25      },
    26      {
    27        "type": "file",
    28        "source": "rootfs/busybox/busybox.tar",
    29        "destination": "/opt/warden/rootfs.tar"
    30      },
    31      {
    32        "type": "file",
    33        "source": "rootfs/ubuntu/ubuntu.tar",
    34        "destination": "/opt/warden/nestable-rootfs.tar"
    35      },
    36      {
    37        "type": "file",
    38        "source": "rootfs/fuse/fuse.tar",
    39        "destination": "/opt/warden/fuse-rootfs.tar"
    40      },
    41      {
    42        "type": "file",
    43        "source": "rootfs/docker_registry/docker_registry.tar",
    44        "destination": "/opt/warden/docker-registry-rootfs.tar"
    45      },
    46      {
    47        "type": "file",
    48        "source": "rootfs/docker_registry_v2/docker_registry_v2.tar",
    49        "destination": "/opt/warden/docker-registry-v2-rootfs.tar"
    50      },
    51      {
    52        "type": "file",
    53        "source": "rootfs/preexisting_users/preexisting_users.tar",
    54        "destination": "/opt/warden/preexisting-users-rootfs.tar"
    55      },
    56      {
    57        "type": "shell",
    58        "inline": ["mkdir /opt/warden/empty"]
    59      },
    60      {
    61        "type": "file",
    62        "source": "rootfs/empty/hello",
    63        "destination": "/opt/warden/empty/hello"
    64      },
    65      {
    66        "type": "shell",
    67        "inline": [
    68          "chmod 0777 /opt/warden/empty/hello",
    69          "mkdir -p /opt/warden/empty/etc",
    70          "touch /opt/warden/empty/etc/passwd",
    71          "touch /opt/warden/empty/etc/group",
    72          "useradd -R /opt/warden/empty -U alice"
    73        ]
    74      },
    75      {
    76        "type": "shell",
    77        "inline": ["useradd -R /opt/warden/empty -U alice"]
    78      },
    79      {
    80        "type": "shell",
    81        "script": "garden-ci/scripts/untar_rootfses.sh"
    82      },
    83      {
    84        "type": "shell",
    85        "script": "garden-ci/scripts/build_tar.sh"
    86      },
    87      {
    88        "type": "shell",
    89        "script": "garden-ci/scripts/cleanup.sh"
    90      }
    91    ],
    92    "post-processors": [
    93      {
    94        "type": "docker-tag",
    95        "repository": "garden-ci-ubuntu",
    96        "tag": "packer",
    97      }
    98    ]
    99  }
   100