Merge pull request #2361 from rn/updates

Update to tip of manifest-tool and opengcs/LCOW
This commit is contained in:
Rolf Neugebauer 2017-08-04 19:42:27 +01:00 committed by GitHub
commit 2a26a68aff
4 changed files with 9 additions and 9 deletions

View File

@ -43,8 +43,8 @@ tmp_rtf_bin.tar: Makefile
docker run --rm --log-driver=none -e http_proxy=$(http_proxy) -e https_proxy=$(https_proxy) $(CROSS) $(GO_COMPILE) --clone-path github.com/linuxkit/rtf --clone https://github.com/linuxkit/rtf.git --commit $(RTF_COMMIT) --package github.com/linuxkit/rtf --ldflags "-X $(RTF_CMD).GitCommit=$(RTF_COMMIT) -X $(RTF_CMD).Version=$(RTF_VERSION)" -o bin/rtf > $@ docker run --rm --log-driver=none -e http_proxy=$(http_proxy) -e https_proxy=$(https_proxy) $(CROSS) $(GO_COMPILE) --clone-path github.com/linuxkit/rtf --clone https://github.com/linuxkit/rtf.git --commit $(RTF_COMMIT) --package github.com/linuxkit/rtf --ldflags "-X $(RTF_CMD).GitCommit=$(RTF_COMMIT) -X $(RTF_CMD).Version=$(RTF_VERSION)" -o bin/rtf > $@
# Manifest tool for multi-arch images # Manifest tool for multi-arch images
MT_COMMIT=186e7752e8032756bb263b830451f44e5176864f MT_COMMIT=bfbd11963b8e0eb5f6e400afaebeaf39820b4e90
MT_REPO=https://github.com/rn/manifest-tool MT_REPO=https://github.com/estesp/manifest-tool
bin/manifest-tool: tmp_mt_bin.tar | bin bin/manifest-tool: tmp_mt_bin.tar | bin
tar xf $< tar xf $<
rm $< rm $<

View File

@ -3,7 +3,7 @@ kernel:
cmdline: "console=ttyS0" cmdline: "console=ttyS0"
tar: none tar: none
init: init:
- linuxkit/init-lcow:73860235d61b9c039728931555c03cb6f575b5e0 - linuxkit/init-lcow:5ee2626d038fef97c6b52f1ea7f436cc3da125b8
- linuxkit/runc:90e45f13e1d0a0983f36ef854621e3eac91cf541 - linuxkit/runc:90e45f13e1d0a0983f36ef854621e3eac91cf541
trust: trust:
org: org:

View File

@ -20,8 +20,10 @@ Before you can build packages you need:
- Docker version 17.06 or newer. If you are on a Mac you also need - Docker version 17.06 or newer. If you are on a Mac you also need
`docker-credential-osxkeychain.bin`, which comes with Docker for Mac. `docker-credential-osxkeychain.bin`, which comes with Docker for Mac.
- `make`, `notary`, `base64`, `jq`, and `expect` - `make`, `notary`, `base64`, `jq`, and `expect`
- A custom copy of `manifest-tool` which you can build with `make - A *recent* version of `manifest-tool` which you can build with `make
bin/manifest-tool`. `manifest-tool` must be in your path. bin/manifest-tool`, or `go get github.com:estesp/manifest-tool`, or
via the LinuxKit homebrew tap with `brew install --HEAD
manifest-tool`. `manifest-tool` must be in your path.
Further, when building packages you need to be logged into hub with Further, when building packages you need to be logged into hub with
`docker login` as some of the tooling extracts your hub credentials `docker login` as some of the tooling extracts your hub credentials

View File

@ -9,7 +9,7 @@ RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS build FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS build
ENV OPENGCS_REPO=https://github.com/Microsoft/opengcs ENV OPENGCS_REPO=https://github.com/Microsoft/opengcs
ENV OPENGCS_COMMIT=e248b10d8dae94ffaa59fae15245b4e7b6c56fbb ENV OPENGCS_COMMIT=285d650c8f3aa754af537871cddc273b6c5c6d58
RUN apk add --no-cache build-base curl git go musl-dev RUN apk add --no-cache build-base curl git go musl-dev
ENV GOPATH=/go PATH=$PATH:/go/bin ENV GOPATH=/go PATH=$PATH:/go/bin
RUN git clone $OPENGCS_REPO /go/src/github.com/Microsoft/opengcs && \ RUN git clone $OPENGCS_REPO /go/src/github.com/Microsoft/opengcs && \
@ -21,9 +21,7 @@ RUN mkdir /out && \
cp -r /go/src/github.com/Microsoft/opengcs/service/bin /out/bin && \ cp -r /go/src/github.com/Microsoft/opengcs/service/bin /out/bin && \
mkdir /out/sbin && \ mkdir /out/sbin && \
curl -fSL "https://raw.githubusercontent.com/mirror/busybox/38d966943f5288bb1f2e7219f50a92753c730b14/examples/udhcp/simple.script" -o /out/sbin/udhcpc_config.script && \ curl -fSL "https://raw.githubusercontent.com/mirror/busybox/38d966943f5288bb1f2e7219f50a92753c730b14/examples/udhcp/simple.script" -o /out/sbin/udhcpc_config.script && \
chmod ugo+rx /out/sbin/udhcpc_config.script && \ chmod ugo+rx /out/sbin/udhcpc_config.script
mkdir -p /out/root/integration && \
cp /go/src/github.com/Microsoft/opengcs/kernelconfig/4.11/prebuildSandbox.vhdx /out/root/integration/prebuildSandbox.vhdx
FROM scratch FROM scratch
ENTRYPOINT [] ENTRYPOINT []