Public Repository

Last pushed: 2 years ago
Short Description
A small set of ip tools for use with other images
Full Description

A small set of ip tooling + jq for parsing some of it. Tools are placed in /usr/bin.

Dockerfile:

FROM golang

ENV ROOT /src
ENV TFIP /src/tfip
ENV TFIP_URL https://github.com/erikh/tfip
ENV JSONLINK github.com/erikh/jsonlink
ENV JQ_PATH /usr/bin/jq
ENV JQ_URL http://stedolan.github.io/jq/download/linux64/jq

RUN mkdir /src

ADD ${JQ_URL} ${JQ_PATH}
RUN chmod 755 ${JQ_PATH}

RUN GOPATH=/usr go get ${JSONLINK}/jifaddrs
RUN GOPATH=/usr go get ${JSONLINK}/jroute

RUN apt-get update && apt-get install build-essential git -y
RUN git clone ${TFIP_URL} ${TFIP}
RUN cd ${TFIP} && make tfip && mv tfip /usr/bin

WORKDIR /
Docker Pull Command
Owner
erikh

Comments (0)