Skip to content

Commit 54ada53

Browse files
committed
init
0 parents  commit 54ada53

File tree

9,427 files changed

+3352517
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,427 files changed

+3352517
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/config
2+
/Dockerfile

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
/controller

Dockerfile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM golang:1.12
2+
WORKDIR /go/src/github.com/k14s/kapp-controller/
3+
4+
RUN mkdir -p /tmp
5+
RUN apt-get -y update && apt-get install -y git ca-certificates && update-ca-certificates
6+
RUN adduser --disabled-login kapp-controller
7+
8+
RUN bash -c "wget -O- https://k14s.io/install.sh | bash"
9+
10+
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
11+
12+
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
13+
14+
COPY . .
15+
RUN CGO_ENABLED=0 GOOS=linux go build -v -o controller ./cmd/controller/...
16+
17+
RUN chmod 700 /tmp
18+
RUN rm -rf /tmp/*
19+
20+
# Needs ubuntu for installing git/openssh
21+
FROM ubuntu:bionic
22+
RUN apt-get update && apt-get install -y git openssh-client && rm -rf /var/lib/apt/lists/*
23+
24+
# Needed for scratch but using ubuntu now
25+
# COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
26+
COPY --from=0 /etc/passwd /etc/passwd
27+
28+
COPY --from=0 /go/src/github.com/k14s/kapp-controller/controller .
29+
COPY --from=0 /tmp /tmp
30+
31+
# fetchers
32+
COPY --from=0 /helm-unpacked/linux-amd64/helm .
33+
COPY --from=0 /imgpkg .
34+
35+
# templaters
36+
COPY --from=0 /usr/local/bin/ytt .
37+
COPY --from=0 /usr/local/bin/kbld .
38+
39+
# deployers
40+
COPY --from=0 /usr/local/bin/kapp .
41+
42+
ENV PATH="/:${PATH}"
43+
ENTRYPOINT ["/controller"] # TODO USER kapp-controller

0 commit comments

Comments
 (0)