Low Friction Contribution
alexec opened this issue · 1 comments
alexec commented
Make it easy to contribute.
alexec commented
Save for later, this creates a docker image that can be used to run make
in, but installed the pre-reqs as per the contributing guide.
FROM golang:1.16 AS make
# python
RUN apt update
RUN apt install -y software-properties-common
RUN apt install -y python3
RUN apt install -y python3-pip
# python lint
RUN pip3 install autopep8
# kubectl: apt's version does not support --load_restrictor
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN cp kubectl /usr/local/bin
RUN chmod +x /usr/local/bin/kubectl
# squash warnings
RUN kubectl config set-context none
RUN kubectl config use-context none
# protoc
RUN apt install -y protobuf-compiler
# `make pre-commit` will install remaining tools
ADD . /root/go/src/github.com/argoproj-labs/argo-dataflow
WORKDIR /root/go/src/github.com/argoproj-labs/argo-dataflow
RUN make pre-commit