Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Nov 6, 2019
0 parents commit 54ada53
Show file tree
Hide file tree
Showing 9,427 changed files with 3,352,517 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/config
/Dockerfile
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
/controller
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM golang:1.12
WORKDIR /go/src/github.com/k14s/kapp-controller/

RUN mkdir -p /tmp
RUN apt-get -y update && apt-get install -y git ca-certificates && update-ca-certificates
RUN adduser --disabled-login kapp-controller

RUN bash -c "wget -O- https://k14s.io/install.sh | bash"

RUN wget -O- https://get.helm.sh/helm-v2.14.3-linux-amd64.tar.gz > /helm && echo "38614a665859c0f01c9c1d84fa9a5027364f936814d1e47839b05327e400bf55 /helm" | shasum -c - && mkdir /helm-unpacked && tar -C /helm-unpacked -xzvf /helm

RUN wget -O- https://github.com/k14s/imgpkg/releases/download/v0.1.0/imgpkg-linux-amd64 > /imgpkg && echo "a9d0ba0edaa792d0aaab2af812fda85ca31eca81079505a8a5705e8ee1d8be93 /imgpkg" | shasum -c - && chmod +x /imgpkg

COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -v -o controller ./cmd/controller/...

RUN chmod 700 /tmp
RUN rm -rf /tmp/*

# Needs ubuntu for installing git/openssh
FROM ubuntu:bionic
RUN apt-get update && apt-get install -y git openssh-client && rm -rf /var/lib/apt/lists/*

# Needed for scratch but using ubuntu now
# COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=0 /etc/passwd /etc/passwd

COPY --from=0 /go/src/github.com/k14s/kapp-controller/controller .
COPY --from=0 /tmp /tmp

# fetchers
COPY --from=0 /helm-unpacked/linux-amd64/helm .
COPY --from=0 /imgpkg .

# templaters
COPY --from=0 /usr/local/bin/ytt .
COPY --from=0 /usr/local/bin/kbld .

# deployers
COPY --from=0 /usr/local/bin/kapp .

ENV PATH="/:${PATH}"
ENTRYPOINT ["/controller"] # TODO USER kapp-controller
Loading

0 comments on commit 54ada53

Please sign in to comment.