Skip to content

Commit

Permalink
Remove docs and build dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Aug 6, 2019
1 parent 6c8a85a commit e2efee0
Show file tree
Hide file tree
Showing 1,237 changed files with 25 additions and 363,175 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .dockerignore

This file was deleted.

104 changes: 0 additions & 104 deletions .drone.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/actions/docker/Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/actions/docker/entrypoint.sh

This file was deleted.

20 changes: 0 additions & 20 deletions .github/actions/golang/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions .github/actions/golang/entrypoint.sh

This file was deleted.

35 changes: 0 additions & 35 deletions .github/main.workflow

This file was deleted.

27 changes: 24 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
FROM alpine:3.7
FROM golang:1.12 as builder

RUN mkdir -p /go/src/github.com/stefanprodan/k8s-podinfo/

WORKDIR /go/src/github.com/stefanprodan/k8s-podinfo

COPY . .

RUN go test $(go list ./... | grep -v integration | grep -v /vendor/ | grep -v /template/) -cover

RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
-X github.com/stefanprodan/k8s-podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
-a -installsuffix cgo -o podinfo ./cmd/podinfo

RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
-X github.com/stefanprodan/k8s-podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
-a -installsuffix cgo -o podcli ./cmd/podcli

FROM alpine:3.10

RUN addgroup -S app \
&& adduser -S -g app app \
&& apk --no-cache add \
curl openssl netcat-openbsd

WORKDIR /home/app
COPY ./ui ./ui
ADD podinfo .

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

USER app
Expand Down
33 changes: 0 additions & 33 deletions Dockerfile.arm

This file was deleted.

6 changes: 0 additions & 6 deletions Dockerfile.build

This file was deleted.

37 changes: 0 additions & 37 deletions Dockerfile.ci

This file was deleted.

Loading

0 comments on commit e2efee0

Please sign in to comment.