Skip to content

Commit

Permalink
Update from Debian Bullseye to Bookworm (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortent committed Aug 22, 2023
1 parent 426681e commit 226fee0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion porch/build/Dockerfile.apiserver
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.20.7-bullseye as builder
FROM golang:1.20.7-bookworm as builder

WORKDIR /workspace/src
RUN git clone https://github.com/kubernetes/kubernetes --branch v1.23.2 --depth=1
Expand Down
2 changes: 1 addition & 1 deletion porch/build/Dockerfile.etcd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.20.7-bullseye as builder
FROM golang:1.20.7-bookworm as builder

WORKDIR /workspace
ARG ETCD_VER=v3.5.1
Expand Down
4 changes: 2 additions & 2 deletions porch/build/Dockerfile.porch
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


FROM golang:1.20.7-bullseye as builder
FROM golang:1.20.7-bookworm as builder

WORKDIR /go/src/github.com/GoogleContainerTools/kpt

Expand Down Expand Up @@ -53,7 +53,7 @@ COPY porch/func porch/func

RUN cd porch; go build -v -o /porch ./cmd/porch

FROM debian:bullseye
FROM debian:bookworm-slim
RUN apt update && apt install -y ca-certificates && apt install -y git && rm -rf /var/lib/apt && rm -rf /var/cache/apt
COPY --from=builder /porch /porch
ENTRYPOINT ["/porch"]
2 changes: 1 addition & 1 deletion porch/controllers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.20.7-bullseye as builder
FROM golang:1.20.7-bookworm as builder

WORKDIR /workspace
COPY go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion porch/examples/apps/hello-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.20.7-bullseye as builder
FROM golang:1.20.7-bookworm as builder

WORKDIR /src
COPY go.mod go.sum ./
Expand Down
4 changes: 2 additions & 2 deletions porch/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


FROM golang:1.20.7-bullseye as builder
FROM golang:1.20.7-bookworm as builder

WORKDIR /go/src/github.com/GoogleContainerTools/kpt

Expand Down Expand Up @@ -45,7 +45,7 @@ COPY porch/test porch/test

RUN cd porch/test; go build -v -o /git-server ./git

FROM debian:bullseye
FROM debian:bookworm-slim
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt && rm -rf /var/cache/apt
COPY --from=builder /git-server /git-server
ENTRYPOINT ["/git-server", "--port=8080"]

0 comments on commit 226fee0

Please sign in to comment.