Remove Dockerfile_with_streaming to avoid confusion

This commit is contained in:
medvedev1088
2020-02-14 14:21:00 +07:00
parent e53dbe13f9
commit aa106467b8
4 changed files with 11 additions and 22 deletions

View File

@@ -1,11 +1,15 @@
FROM python:3.6-alpine
MAINTAINER Eric Lim <elim0322@gmail.com>
FROM python:3.6
MAINTAINER Evgeny Medvedev <evge.medvedev@gmail.com>
ENV PROJECT_DIR=ethereum-etl
RUN mkdir /$PROJECT_DIR
WORKDIR /$PROJECT_DIR
COPY . .
RUN apk add --no-cache gcc musl-dev #for C libraries: <limits.h> <stdio.h>
RUN pip install --upgrade pip && pip install -e /$PROJECT_DIR/
RUN pip install --upgrade pip && pip install -e /$PROJECT_DIR/[streaming]
ENTRYPOINT ["python", "ethereumetl"]
# Add Tini
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--", "python", "ethereumetl"]

View File

@@ -1,15 +0,0 @@
FROM python:3.6
MAINTAINER Evgeny Medvedev <evge.medvedev@gmail.com>
ENV PROJECT_DIR=ethereum-etl
RUN mkdir /$PROJECT_DIR
WORKDIR /$PROJECT_DIR
COPY . .
RUN pip install --upgrade pip && pip install -e /$PROJECT_DIR/[streaming]
# Add Tini
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--", "python", "ethereumetl"]

View File

@@ -298,7 +298,7 @@ Read this article for details https://medium.com/@medvedev1088/how-to-export-the
1. Run streaming to console or Pub/Sub
```bash
> docker build -t ethereum-etl:latest-streaming -f Dockerfile_with_streaming .
> docker build -t ethereum-etl:latest-streaming -f Dockerfile .
> echo "Stream to console"
> docker run ethereum-etl:latest-streaming stream --start-block 500000 --log-file log.txt
> echo "Stream to Pub/Sub"

View File

@@ -2,7 +2,7 @@
```bash
> ETHEREUMETL_STREAMING_VERSION=1.3.2-streaming
> docker build -t ethereum-etl:${ETHEREUMETL_STREAMING_VERSION} -f Dockerfile_with_streaming .
> docker build -t ethereum-etl:${ETHEREUMETL_STREAMING_VERSION} -f Dockerfile .
> docker tag ethereum-etl:${ETHEREUMETL_STREAMING_VERSION} blockchainetl/ethereum-etl:${ETHEREUMETL_STREAMING_VERSION}
> docker push blockchainetl/ethereum-etl:${ETHEREUMETL_STREAMING_VERSION}