mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-27 03:21:49 +00:00
Some of git's whitespace fixup option corrupts the patches by (at least) stripping trailing spaces (which are present for empty lines in context) and changing leading <space><tab> into just <tab>. `patch(1)` used by the build here seems to tolerate this, but `git am` and/or `git apply` do not. Fix this up by running git am and at each failure point (i.e. every patch) applying the relevant patch using `patch(1)` (which works because `git am` was unable to even partially apply the patches) before regenerating the whole lot with `git format-patch`. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
Build Azure VHD
To create the Azure VHD, the following will be needed:
- An azure account
- A Standard Storage account
- A container (bucket) in the above storage account (private)
- The access key associated with the above storage account
- (opt) the url for the docker version you want to use in the VHD
In your terminal, with docker installed, run the following:
export AZURE_STG_ACCOUNT_NAME="<your-storage-account>"
export AZURE_STG_ACCOUNT_KEY="<your-access-key>"
export CONTAINER_NAME="<a-bucket-name>"
make uploadvhd DOCKER_BIN_URL="<tgz-docker-url>"
The above will output a URL which you can then use to deploy on editions.