add livepeer docker image configuration

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-10-05 12:52:45 -04:00
parent ef32b3de26
commit 4b5269b4c1
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 32 additions and 0 deletions

20
livepeer/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM yondon/livepeer-ubuntu1604:latest
MAINTAINER Jakub Sokolowski "jakub@status.im"
LABEL description="Go implementation of the Livepeer protocol in Docker form"
ARG LIVEPEER_VERSION
ENV LIVEPEER_URL https://github.com/livepeer/go-livepeer/releases/download
ENV LIVEPEER_ARCHIVE livepeer_linux.tar.gz
RUN apt-get update && apt-get -y install curl && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN cd /tmp && \
curl -sOL ${LIVEPEER_URL}/${LIVEPEER_VERSION}/${LIVEPEER_ARCHIVE} && \
tar xvf ${LIVEPEER_ARCHIVE} && \
mv livepeer_linux/* /usr/bin/ && \
rm -r ${LIVEPEER_ARCHIVE} livepeer_linux
ENTRYPOINT /usr/bin/livepeer_cli
CMD ["--help"]

12
livepeer/Makefile Normal file
View File

@ -0,0 +1,12 @@
LIVEPEER_VERSION = 0.3.1
IMAGE_TAG = ubuntu
IMAGE_NAME = statusteam/livepeer:$(IMAGE_TAG)
build:
docker build \
--build-arg="LIVEPEER_VERSION=$(LIVEPEER_VERSION)" \
-t $(IMAGE_NAME) .
push: build
docker push $(IMAGE_NAME)