mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Define CONTAINERD_REPO alongside CONTAINERD_COMMIT in tools/alpine
This will make it simpler to temporarily in PRs which are not yet merged (but are expected to be soon). Tools alpine is not rebuilt here since we are going to do just that in the next commit. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
0c6af4b3be
commit
c5634c4650
@ -11,11 +11,11 @@ RUN \
|
||||
tzdata \
|
||||
&& true
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
# CONTAINERD_REPO and CONTAINERD_COMMIT are defined in linuxkit/alpine
|
||||
RUN mkdir -p $GOPATH/src/github.com/containerd && \
|
||||
cd $GOPATH/src/github.com/containerd && \
|
||||
git clone https://github.com/containerd/containerd.git
|
||||
git clone $CONTAINERD_REPO
|
||||
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
||||
# CONTAINERD_COMMIT is defined in linuxkit/alpine
|
||||
RUN git checkout $CONTAINERD_COMMIT
|
||||
RUN make binaries EXTRA_FLAGS="-buildmode pie" EXTRA_LDFLAGS="-extldflags \\\"-fno-PIC -static\\\""
|
||||
RUN cp bin/containerd bin/ctr bin/containerd-shim bin/dist /usr/bin/
|
||||
|
@ -49,4 +49,5 @@ COPY --from=mirror /Dockerfile /Dockerfile
|
||||
|
||||
RUN apk update && apk upgrade -a
|
||||
|
||||
ENV CONTAINERD_REPO=https://github.com/containerd/containerd.git
|
||||
ENV CONTAINERD_COMMIT=v1.0.0-alpha0
|
||||
|
Loading…
Reference in New Issue
Block a user