forked from blockchain-etl/ethereum-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from merklescience/develop
Syncs master with develeop
- Loading branch information
Showing
163 changed files
with
3,013 additions
and
1,165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
custom: https://gitcoin.co/grants/233/ethereumetl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Publish DockerHub | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Publish to DockerHub | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: blockchainetl/ethereum-etl | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
tag_semver: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish to PyPI and TestPyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI and TestPyPI | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Build a binary wheel and a source tarball | ||
run: python setup.py sdist | ||
- name: Publish distribution to Test PyPI | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.test_pypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution to PyPI | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,6 @@ coverage.xml | |
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# etl | ||
/last_synced_block.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM python:3.6-alpine | ||
MAINTAINER Eric Lim <elim0322@gmail.com> | ||
FROM python:3.7 | ||
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"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.