Skip to content

Commit

Permalink
Update docs to use new apiserver builder version
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed May 6, 2018
1 parent 225cbc3 commit d598c2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build/apiserverbuilder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@

FROM golang:1.10-stretch

ENV URL https://github.com/kubernetes-incubator/apiserver-builder/releases/download/v1.9-alpha.2
ENV BIN apiserver-builder-v1.9-alpha.2-linux-amd64.tar.gz
RUN apt-get update
RUN apt-get install less -y
RUN apt-get install nano -y

ENV URL https://github.com/kubernetes-incubator/apiserver-builder/releases/download/v1.9-alpha.4
ENV BIN apiserver-builder-v1.9-alpha.4-linux-amd64.tar.gz
ENV DEST /usr/local/apiserver-builder/bin/
RUN curl -L $URL/$BIN -o /tmp/$BIN
RUN mkdir -p /usr/local/apiserver-builder
RUN tar -xzvf /tmp/$BIN -C /usr/local/apiserver-builder/

ENV PATH /usr/local/apiserver-builder/bin/:$PATH

RUN apt-get update
RUN apt-get install less -y
RUN apt-get install nano -yu

COPY docs.sh /usr/local/bin/docs.sh

CMD docs.sh
2 changes: 1 addition & 1 deletion cmd/kubebuilder/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func RunDocs(cmd *cobra.Command, args []string) {
"-e", "DOMAIN="+util.GetDomain(),
"-e", "DIR="+filepath.Join("src", util.Repo),
"-e", "OUTPUT="+outputDir,
"gcr.io/kubebuilder/gendocs",
"gcr.io/kubebuilder/gendocs:alpha4",
)
if verbose {
log.Println(strings.Join(c.Args, " "))
Expand Down

0 comments on commit d598c2b

Please sign in to comment.