-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bf38b0
commit a4e054b
Showing
9 changed files
with
252 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# https://circleci.com/docs/2.0/building-docker-images/#docker-version | ||
- image: docker:17.11.0-ce | ||
steps: | ||
- checkout | ||
- setup_remote_docker: {docker_layer_caching: true} | ||
# just a simple build for now, but will use skaffold if it gets more complex | ||
- run: docker build . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM golang:1.10-alpine AS build | ||
|
||
RUN apk add --update \ | ||
curl \ | ||
git \ | ||
make \ | ||
py-pip \ | ||
python \ | ||
python-dev \ | ||
&& true | ||
|
||
RUN mkdir /out | ||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/ | ||
RUN apk add --no-cache --initdb --root /out \ | ||
alpine-baselayout \ | ||
busybox \ | ||
ca-certificates \ | ||
coreutils \ | ||
git \ | ||
libc6-compat \ | ||
libgcc \ | ||
libstdc++ \ | ||
python \ | ||
&& true | ||
|
||
RUN go get github.com/jteeuwen/go-bindata/go-bindata | ||
|
||
ENV EKSCTL $GOPATH/src/github.com/weaveworks/eksctl | ||
RUN mkdir -p "$(dirname ${EKSCTL})" | ||
COPY . $EKSCTL | ||
|
||
WORKDIR $EKSCTL | ||
RUN make \ | ||
&& cp ./eksctl /out/usr/local/bin/eksctl | ||
|
||
RUN go build ./vendor/github.com/heptio/authenticator/cmd/heptio-authenticator-aws \ | ||
&& cp ./heptio-authenticator-aws /out/usr/local/bin/heptio-authenticator-aws | ||
|
||
RUN pip install --root=/out awscli==1.15.28 | ||
|
||
WORKDIR /out | ||
|
||
ENV KUBECTL_VERSION v1.10.3 | ||
RUN curl --silent --location "https://dl.k8s.io/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" --output usr/local/bin/kubectl \ | ||
&& chmod +x usr/local/bin/kubectl | ||
|
||
#COPY pkg/eks/assets/1.10.0/2018-05-09/eks-2017-11-01.normal.json /out/etc/ | ||
#COPY add-model.sh /out/etc/profile.d/ | ||
|
||
FROM scratch | ||
CMD eksctl | ||
COPY --from=build /out / |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
build: | ||
build: update-bindata | ||
go build ./cmd/eksctl | ||
|
||
update-bindata: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
#aws configure add-model \ | ||
# --service-mode file:///etc/eks-2017-11-01.normal.json \ | ||
# --service-name eks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
// this is to keep dep happy, as we want authenticator cmd vendored | ||
|
||
import ( | ||
_ "github.com/heptio/authenticator/cmd/heptio-authenticator-aws" | ||
) | ||
|
||
func main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters