Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
baghbidi authored and baghbidi committed Mar 14, 2019
0 parents commit 0223687
Show file tree
Hide file tree
Showing 4,454 changed files with 1,603,555 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode
private.env
*.private.*
providers/azurebatch/deployment/
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# for goreleaser
export GITHUB_TOKEN=REPLACEME
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib
bin/

# Certificates
*.pem
!hack/skaffold/virtual-kubelet/vkubelet-mock-0-crt.pem
!hack/skaffold/virtual-kubelet/vkubelet-mock-0-key.pem

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/

/bin
/dist
/build
/cover

# Test credentials file
credentials.json

# Test loganalytics file
loganalytics.json

# VS Code files
.vscode/

# Terraform ignores
**/.terraform/**
**/terraform-provider-kubernetes
**/*.tfstate*
debug

/.idea
13 changes: 13 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
linter-settings:
lll:
line-length: 200

linters:
disable-all: true
enable:
- errcheck
- govet
- ineffassign
- golint
- goconst
- goimports
34 changes: 34 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
project_name: virtual-kubelet
release:
github:
owner: virtual-kubelet
name: virtual-kubelet
name_template: '{{.Tag}}'
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
main: .
ldflags: -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}}
binary: virtual-kubelet
archive:
format: tar.gz
name_template: '{{.Binary}}_{{.Version}}_{{.Os}}_{{.Arch }}{{if .Arm}}v{{.Arm }}{{end }}'
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
fpm:
bindir: /usr/local/bin
snapshot:
name_template: SNAPSHOT-{{.Commit }}
checksum:
name_template: '{{.ProjectName }}_{{.Version }}_checksums.txt'
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM golang:alpine as builder

ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go

RUN apk add --no-cache \
ca-certificates \
--virtual .build-deps \
git \
gcc \
libc-dev \
libgcc \
make \
bash

COPY . /go/src/github.com/iofog/iofog-kubelet
WORKDIR /go/src/github.com/iofog/iofog-kubelet
ARG BUILD_TAGS="netgo osusergo"
RUN make VK_BUILD_TAGS="${BUILD_TAGS}" build
RUN cp bin/iofog-kubelet /usr/bin/iofog-kubelet


FROM scratch
COPY --from=builder /usr/bin/iofog-kubelet /usr/bin/iofog-kubelet
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
ENTRYPOINT [ "/usr/bin/iofog-kubelet" ]
CMD [ "--help" ]
Loading

0 comments on commit 0223687

Please sign in to comment.