image-riak-base/packer.json
Grigory Antsiferov 06cfb9e28e MSPF-66: Cleanup, download and import stage3 instead of doing so inside the container;
* Jenkinsfile
  artifacts argument was removed from images_pipeline;
* Makefile
  Cleanup, cross-platform date timespec (i guess);
  Download and import stage3 instead of doing so inside the container;
* packer.json
  Moved from files; Use imported stage3 instead of busybox;
* files
  Renamed from bootstrap;
** packer.sh
   Stage3 downloading and extracting part has been removed.
* build-utils/getstage3.sh
  Script to download any latest stage3 and possibly to do something with it;
2016-08-09 17:26:27 +03:00

36 lines
968 B
JSON

{
"variables": {
"docker-registry": "dr.rbkmoney.com",
"files-dir": "{{env `PWD`}}/files/",
"shared-dir": "{{env `HOME`}}/.cache/rbkmoney/images/shared/",
"image-tag": null
},
"builders": [
{
"type": "docker",
"image": "{{user `docker-registry`}}/rbkmoney/stage3-amd64-hardened-nomultilib",
"run_command": ["-d", "-i", "-t", "{{.Image}}", "/bin/bash"],
"volumes": {
"{{user `files-dir`}}": "/tmp/data:ro",
"{{user `shared-dir`}}/portage": "/usr/portage:ro"
},
"pull": "false",
"commit": "true"
}
],
"provisioners": [
{
"type": "shell",
"script": "{{user `files-dir`}}/packer.sh"
}
],
"post-processors": [
{
"type": "docker-tag",
"repository": "{{user `docker-registry`}}/rbkmoney/bootstrap",
"tag": "{{user `image-tag`}}"
}
]
}