Skip to content

Commit e2efee0

Browse files
committed
Remove docs and build dirs
1 parent 6c8a85a commit e2efee0

File tree

1,237 files changed

+25
-363175
lines changed

Some content is hidden

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

1,237 files changed

+25
-363175
lines changed

.circleci/config.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.dockerignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.drone.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/actions/docker/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/actions/docker/entrypoint.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/actions/golang/Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/actions/golang/entrypoint.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/main.workflow

Lines changed: 0 additions & 35 deletions
This file was deleted.

Dockerfile

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
1-
FROM alpine:3.7
1+
FROM golang:1.12 as builder
2+
3+
RUN mkdir -p /go/src/github.com/stefanprodan/k8s-podinfo/
4+
5+
WORKDIR /go/src/github.com/stefanprodan/k8s-podinfo
6+
7+
COPY . .
8+
9+
RUN go test $(go list ./... | grep -v integration | grep -v /vendor/ | grep -v /template/) -cover
10+
11+
RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
12+
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
13+
-X github.com/stefanprodan/k8s-podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
14+
-a -installsuffix cgo -o podinfo ./cmd/podinfo
15+
16+
RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
17+
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
18+
-X github.com/stefanprodan/k8s-podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
19+
-a -installsuffix cgo -o podcli ./cmd/podcli
20+
21+
FROM alpine:3.10
222

323
RUN addgroup -S app \
424
&& adduser -S -g app app \
525
&& apk --no-cache add \
626
curl openssl netcat-openbsd
727

828
WORKDIR /home/app
9-
COPY ./ui ./ui
10-
ADD podinfo .
1129

30+
COPY --from=builder /go/src/github.com/stefanprodan/k8s-podinfo/podinfo .
31+
COPY --from=builder /go/src/github.com/stefanprodan/k8s-podinfo/podcli /usr/local/bin/podcli
32+
COPY ./ui ./ui
1233
RUN chown -R app:app ./
1334

1435
USER app

Dockerfile.arm

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)