<commit_before>FROM gcr.io/google_containers/kube-cross:v1.6.2-1

ARG GOARCH=arm
ARG CC=arm-linux-gnueabi-gcc

ENV GOARM=6 \
	CGO_ENABLED=0 \
	OUTPUT_DIR=/build/bin \
	REGISTRY_DIR=${GOPATH}/src/github.com/docker/distribution \
	HEAPSTER_DIR=${GOPATH}/src/k8s.io/heapster \
	INFLUXDB_DIR=${GOPATH}/src/github.com/influxdb/influxdb \
	GRAFANA_DIR=${GOPATH}/src/github.com/grafana/grafana \
	GRAFANA_ROOTFS_DIR=/tmp/grafana \
	CONTRIB_DIR=${GOPATH}/src/k8s.io/contrib \
	HELM_DIR=${GOPATH}/src/k8s.io/helm

ENV REGISTRY_VERSION=v2.5.0 \
	HEAPSTER_VERSION=v1.1.0 \
	INFLUXDB_VERSION=v0.13.0 \
	GRAFANA_VERSION=v3.1.1 \
	GRAFANA_DL_VERSION=3.1.1-1470047149 \
	CONTRIB_COMMIT=5853c5071cbc8dd47fef8ee948115650b03c8873 \
	INGRESS_CONTROLLER_VERSION=0.8.2 \
	HELM_VERSION=v2.0.0-alpha.2

RUN mkdir -p \
	${OUTPUT_DIR} \
	${REGISTRY_DIR} \
	${HEAPSTER_DIR} \
	${INFLUXDB_DIR} \
	${GRAFANA_DIR} \
	${CONTRIB_DIR} \
	${HELM_DIR}

RUN curl -sSL https://github.com/docker/distribution/archive/${REGISTRY_VERSION}.tar.gz | tar -xz -C ${REGISTRY_DIR} --strip-components=1 \
	&& cd ${REGISTRY_DIR} \
	&& go build -a --installsuffix cgo --ldflags "-X `go list ./version`.Version=${REGISTRY_VERSION}" -o bin/registry ./cmd/registry \
	&& cp bin/registry ${OUTPUT_DIR}

RUN curl -sSL https://github.com/kubernetes/heapster/archive/${HEAPSTER_VERSION}.tar.gz | tar -C ${HEAPSTER_DIR} -xz --strip-components=1 \
	&& cd ${HEAPSTER_DIR} \
	&& go build -a --installsuffix cgo -o heapster k8s.io/heapster/metrics \
	&& go build -a --installsuffix cgo -o eventer k8s.io/heapster/events \
	&& cp heapster eventer ${OUTPUT_DIR}

RUN curl -sSL https://github.com/influxdata/influxdb/archive/${INFLUXDB_VERSION}.tar.gz | tar -C ${INFLUXDB_DIR} -xz --strip-components=1 \
	&& cd ${INFLUXDB_DIR} \
	&& GOARCH=amd64 go get github.com/sparrc/gdm \
	&& gdm restore \
	&& ln -s $GOPATH/src/github.com/influxdb/influxdb $GOPATH/src/github.com/influxdata/ \
	&& go build -a --installsuffix cgo --ldflags="-s" -o influxd ./cmd/influxd \<commit_msg>Bump heapster, ingress and helm version<commit_after>FROM gcr.io/google_containers/kube-cross:v1.6.2-1

ARG GOARCH=arm
ARG CC=arm-linux-gnueabi-gcc

ENV GOARM=6 \
	CGO_ENABLED=0 \
	OUTPUT_DIR=/build/bin \
	REGISTRY_DIR=${GOPATH}/src/github.com/docker/distribution \
	HEAPSTER_DIR=${GOPATH}/src/k8s.io/heapster \
	INFLUXDB_DIR=${GOPATH}/src/github.com/influxdb/influxdb \
	GRAFANA_DIR=${GOPATH}/src/github.com/grafana/grafana \
	GRAFANA_ROOTFS_DIR=/tmp/grafana \
	CONTRIB_DIR=${GOPATH}/src/k8s.io/contrib \
	HELM_DIR=${GOPATH}/src/k8s.io/helm

ENV REGISTRY_VERSION=v2.5.0 \
	HEAPSTER_VERSION=v1.2.0-beta.2 \
	INFLUXDB_VERSION=v0.13.0 \
	GRAFANA_VERSION=v3.1.1 \
	GRAFANA_DL_VERSION=3.1.1-1470047149 \
	CONTRIB_COMMIT=<PASSWORD>a<PASSWORD>d5710ea<PASSWORD>6ee9d10756580c \
	INGRESS_CONTROLLER_VERSION=0.8.3 \
	HELM_VERSION=v2.0.0-alpha.3

RUN mkdir -p \
	${OUTPUT_DIR} \
	${REGISTRY_DIR} \
	${HEAPSTER_DIR} \
	${INFLUXDB_DIR} \
	${GRAFANA_DIR} \
	${CONTRIB_DIR} \
	${HELM_DIR}

RUN curl -sSL https://github.com/docker/distribution/archive/${REGISTRY_VERSION}.tar.gz | tar -xz -C ${REGISTRY_DIR} --strip-components=1 \
	&& cd ${REGISTRY_DIR} \
	&& go build -a --installsuffix cgo --ldflags "-X `go list ./version`.Version=${REGISTRY_VERSION}" -o bin/registry ./cmd/registry \
	&& cp bin/registry ${OUTPUT_DIR}

RUN curl -sSL https://github.com/kubernetes/heapster/archive/${HEAPSTER_VERSION}.tar.gz | tar -C ${HEAPSTER_DIR} -xz --strip-components=1 \
	&& cd ${HEAPSTER_DIR} \
	&& go build -a --installsuffix cgo -o heapster k8s.io/heapster/metrics \
	&& go build -a --installsuffix cgo -o eventer k8s.io/heapster/events \
	&& cp heapster eventer ${OUTPUT_DIR}

RUN curl -sSL https://github.com/influxdata/influxdb/archive/${INFLUXDB_VERSION}.tar.gz | tar -C ${INFLUXDB_DIR} -xz --strip-components=1 \
	&& cd ${INFLUXDB_DIR} \
	&& GOARCH=amd64 go get github.com/sparrc/gdm \
	&& gdm restore \
	&& ln -s $GOPATH/src/github.com/influxdb/influxdb $GOPATH/src/github.com/influxdata/ \
	&& go build -a --installsuffix cgo --ldflags="-s" -o influxd ./cmd/influxd \
{'fraction_non_alphanumeric': 0.16761014029042579, 'fraction_numerical': 0.034457297563376815, 'mean_word_length': 3.920096852300242, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7523181', 'n_tokens_mistral': 1857, 'n_tokens_neox': 1774, 'n_words': 253}