mirror of
https://github.com/status-im/infra-utils.git
synced 2025-02-23 09:28:08 +00:00
add livepeer docker image configuration
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
ef32b3de26
commit
4b5269b4c1
20
livepeer/Dockerfile
Normal file
20
livepeer/Dockerfile
Normal 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
12
livepeer/Makefile
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user