Skip to content

Commit

Permalink
Create dockefile for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeto9 committed Oct 8, 2024
1 parent 339d56d commit 7f43d7e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
17 changes: 17 additions & 0 deletions Dockerfile.ledgerdownloader
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:20.04 as BUILD
MAINTAINER radixdlt <devops@radixdlt.com>

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
bash

# Create a directory to hold the script (optional)
RUN mkdir -p /usr/local/scripts

# Copy the script from the host into the container
COPY downloadLedgerSnapshot.sh /usr/local/scripts/downloadLedgerSnapshot.sh

ENTRYPOINT ["/usr/local/scripts/downloadLedgerSnapshot.sh"]
8 changes: 3 additions & 5 deletions node-runner-cli/templates/radix-fullnode-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ services:
{% if core_node is not none and core_node is defined %}
{% if download-community-snapshot == "true" %}
download-community-ledger-snapshot:
command: /downloadLedgerSnapshot.sh
environment:
<<: *cenv
build:
context: .
dockerfile: Dockerfile.ledgerdownloader
volumes:
- ./downloadLedgerSnapshot.sh:/downloadLedgerSnapshot.sh
- ./data:/data
{% endif %}

core:
cap_add:
- NET_ADMIN
Expand Down

0 comments on commit 7f43d7e

Please sign in to comment.