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

     1  ROOTFS_TARS = rootfs/busybox/busybox.tar \
     2  	rootfs/docker_registry/docker_registry.tar \
     3  	rootfs/docker_registry_v2/docker_registry_v2.tar \
     4  	rootfs/fuse/fuse.tar \
     5  	rootfs/preexisting_users/preexisting_users.tar \
     6  	rootfs/ubuntu/ubuntu.tar
     7  
     8  .PHONY: all clean rootfses ubuntu ubuntu-docker ubuntu-vagrant release-docker release-vagrant
     9  
    10  all: ubuntu
    11  
    12  clean:
    13  	rm -fr build
    14  	find rootfs -name '*.tar' -exec rm {} \;
    15  	find . -type d -name 'output' -exec rm -rf {} \;
    16  
    17  #
    18  # Rootfs
    19  #
    20  
    21  rootfs/busybox/busybox.tar: rootfs/busybox/busybox.json rootfs/busybox/seed
    22  	packer build rootfs/busybox/busybox.json
    23  
    24  rootfs/docker_registry/docker_registry.tar: rootfs/docker_registry/docker_registry.json
    25  	packer build rootfs/docker_registry/docker_registry.json
    26  
    27  rootfs/docker_registry_v2/docker_registry_v2.tar: rootfs/docker_registry_v2/docker_registry_v2.json rootfs/docker_registry_v2/provision.sh
    28  	packer build rootfs/docker_registry_v2/docker_registry_v2.json
    29  
    30  rootfs/fuse/fuse.tar: rootfs/fuse/fuse.json rootfs/fuse/provision.sh
    31  	packer build rootfs/fuse/fuse.json
    32  
    33  rootfs/preexisting_users/preexisting_users.tar: rootfs/preexisting_users/preexisting_users.json
    34  	packer build rootfs/preexisting_users/preexisting_users.json
    35  
    36  rootfs/ubuntu/ubuntu.tar: rootfs/ubuntu/ubuntu.json
    37  	packer build rootfs/ubuntu/ubuntu.json
    38  
    39  
    40  rootfses: ${ROOTFS_TARS}
    41  	echo "RootFses are built!"
    42  
    43  #
    44  # Images
    45  #
    46  
    47  ubuntu-docker:
    48  	./rootfs/empty/scripts/compile_binary
    49  	packer build garden-ci/garden-ci.json
    50  
    51  
    52  #
    53  # Release targets
    54  #
    55  
    56  release-docker:
    57  	echo "About to push to Dockerhub"
    58  	packer build -var-file garden-ci/version.json \
    59  		           garden-ci/release_docker.json