fix contexts, dockerfile, dockerignore, release script (no push)

pull/19/head
lza_menace 1 year ago
parent 5c8300b504
commit 3250478bd9

@ -1 +1,2 @@
* *
!/dockerfiles/*

@ -57,8 +57,8 @@ services:
exporter: exporter:
container_name: monerod_exporter container_name: monerod_exporter
build: build:
context: dockerfiles context: .
dockerfile: exporter dockerfile: dockerfiles/exporter
restart: unless-stopped restart: unless-stopped
# ports: # ports:
# - 127.0.0.1:9000:9000 # - 127.0.0.1:9000:9000
@ -69,8 +69,8 @@ services:
container_name: monerod_nodemapper container_name: monerod_nodemapper
restart: unless-stopped restart: unless-stopped
build: build:
context: dockerfiles context: .
dockerfile: nodemapper dockerfile: dockerfiles/nodemapper
environment: environment:
NODE_HOST: monerod NODE_HOST: monerod
NODE_PORT: 18083 NODE_PORT: 18083
@ -80,8 +80,8 @@ services:
monerod: monerod:
container_name: monerod container_name: monerod
build: build:
context: dockerfiles context: .
dockerfile: monero dockerfile: dockerfiles/monero
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${DATA_DIR:-./data}:/data - ${DATA_DIR:-./data}:/data

@ -8,6 +8,6 @@ RUN .venv/bin/pip install flask==3.0.0
RUN .venv/bin/pip install geoip2==4.7.0 RUN .venv/bin/pip install geoip2==4.7.0
RUN wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -qO ./geoip.mmdb RUN wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -qO ./geoip.mmdb
COPY nodemapper.py app.py COPY dockerfiles/nodemapper.py app.py
ENTRYPOINT [ ".venv/bin/flask", "--app", "app", "run", "--host", "0.0.0.0" ] ENTRYPOINT [ ".venv/bin/flask", "--app", "app", "run", "--host", "0.0.0.0" ]

@ -19,18 +19,18 @@ NODEMAPPER_BASE=${DH_USER}/nodemapper
# build nodemapper # build nodemapper
docker build -t "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" -f dockerfiles/nodemapper . docker build -t "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" -f dockerfiles/nodemapper .
docker tag "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" "${NODEMAPPER_BASE}:latest" docker tag "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" "${NODEMAPPER_BASE}:latest"
docker push "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" # docker push "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}"
docker push "${NODEMAPPER_BASE}:latest" # docker push "${NODEMAPPER_BASE}:latest"
# build exporter # build exporter
docker build -t "${EXPORTER_BASE}:${EXPORTER_VERSION}" -f dockerfiles/exporter . docker build -t "${EXPORTER_BASE}:${EXPORTER_VERSION}" -f dockerfiles/exporter .
docker tag "${EXPORTER_BASE}:${EXPORTER_VERSION}" "${EXPORTER_BASE}:latest" docker tag "${EXPORTER_BASE}:${EXPORTER_VERSION}" "${EXPORTER_BASE}:latest"
docker push "${EXPORTER_BASE}:${EXPORTER_VERSION}" # docker push "${EXPORTER_BASE}:${EXPORTER_VERSION}"
docker push "${EXPORTER_BASE}:latest" # docker push "${EXPORTER_BASE}:latest"
# build monerod # build monerod
docker build -t "${MONERO_BASE}:${MONERO_VERSION}" -f dockerfiles/nodemapper . docker build -t "${MONERO_BASE}:${MONERO_VERSION}" -f dockerfiles/nodemapper .
docker tag "${MONERO_BASE}:${MONERO_VERSION}" "${MONERO_BASE}:latest" docker tag "${MONERO_BASE}:${MONERO_VERSION}" "${MONERO_BASE}:latest"
docker push "${MONERO_BASE}:${MONERO_VERSION}" # docker push "${MONERO_BASE}:${MONERO_VERSION}"
docker push "${MONERO_BASE}:latest" # docker push "${MONERO_BASE}:latest"

Loading…
Cancel
Save