mirror of
https://github.com/blockchain-etl/ethereum-etl.git
synced 2026-01-09 13:57:54 -05:00
Remove Dockerfile_with_streaming to avoid confusion
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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"]
|
||||
|
||||
@@ -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"]
|
||||
@@ -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"
|
||||
|
||||
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user