-
Notifications
You must be signed in to change notification settings - Fork 45
/
Dockerfile
47 lines (42 loc) · 1.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##
## Copyright 2023 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##
FROM python:3.8-slim-buster
LABEL maintainer="Ocean Protocol <devops@oceanprotocol.com>"
ARG VERSION
RUN apt-get update && \
apt-get install --no-install-recommends -y \
build-essential \
gcc \
gettext-base && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY . /aquarius
WORKDIR /aquarius
RUN python3.8 -m pip install --no-cache-dir setuptools wheel && \
python3.8 -m pip install --no-cache-dir .
ENV DB_MODULE='elasticsearch'
ENV DB_HOSTNAME='localhost'
ENV DB_PORT='27017'
#ELASTIC
ENV DB_INDEX='aquarius'
ENV AQUARIUS_BIND_URL='http://0.0.0.0:5000'
ENV ALLOW_FREE_ASSETS_ONLY='false'
# docker-entrypoint.sh configuration file variables
ENV AQUARIUS_WORKERS='8'
ENV EVENTS_ALLOW=''
ENV RUN_EVENTS_MONITOR='1'
#ENV ASSET_PURGATORY_URL="https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-assets.json"
#ENV ACCOUNT_PURGATORY_URL="https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json"
ENV PURGATORY_UPDATE_INTERVAL='60'
ENV RUN_AQUARIUS_SERVER='1'
ENV EVENTS_RPC='http://127.0.0.1:8545'
ENV EVENTS_MONITOR_SLEEP_TIME=30
ENV PRIVATE_KEY='0xc6914ea1e5ac6a1cd2107240be714735bf799ce9ea4125016aeb479266720ff4'
ENV BLOCKS_CHUNK_SIZE='5000'
ENV PROCESS_RETRY_QUEUE='1'
#ENV ADDRESS_FILE=''
#ENV ALLOWED_PUBLISHERS=['0x123','0x1234']
ENTRYPOINT ["/aquarius/docker-entrypoint.sh"]
EXPOSE 5000