Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
katrogan committed Sep 24, 2019
0 parents commit d1c61c3
Show file tree
Hide file tree
Showing 295 changed files with 38,548 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/*
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.idea/
.DS_Store
.vscode/
.vendor-new/

vendor/
node_modules/
27 changes: 27 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
run:
skip-files:
# because we're skipping TLS verification - for now
- cmd/entrypoints/serve.go
- pkg/async/messages/sqs.go

linters:
disable-all: true
enable:
- deadcode
- errcheck
- gas
- goconst
- goimports
- golint
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
sudo: required
language: go
go:
- "1.10"
services:
- docker
jobs:
include:
# dont push to dockerhub on forks
- if: fork = true
stage: test
name: build, integration test
install: true
script: BUILD_PHASE=builder make docker_build && make k8s_integration
- if: fork = false
stage: test
name: build, integration test, and push
install: true
script: BUILD_PHASE=builder make docker_build && make k8s_integration && make dockerhub_push
- stage: test
name: unit tests
install: make install
script: make test_unit
- stage: test
install: make install
name: lint
script: make lint
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This project is governed by [Lyft's code of
conduct](https://github.com/lyft/code-of-conduct). All contributors
and participants agree to abide by its terms.
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES.
# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY:
#
# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst

# Using go1.10.4
FROM golang:1.10.4-alpine3.8 as builder
RUN apk add git openssh-client make curl dep

# COPY only the dep files for efficient caching
COPY Gopkg.* /go/src/github.com/lyft/flyteadmin/
WORKDIR /go/src/github.com/lyft/flyteadmin

# Pull dependencies
RUN dep ensure -vendor-only

# COPY the rest of the source code
COPY . /go/src/github.com/lyft/flyteadmin/

# This 'linux_compile' target should compile binaries to the /artifacts directory
# The main entrypoint should be compiled to /artifacts/flyteadmin
RUN make linux_compile

# update the PATH to include the /artifacts directory
ENV PATH="/artifacts:${PATH}"

# This will eventually move to centurylink/ca-certs:latest for minimum possible image size
FROM alpine:3.8
COPY --from=builder /artifacts /bin

RUN apk --update add ca-certificates

CMD ["flyteadmin"]
Loading

0 comments on commit d1c61c3

Please sign in to comment.