Skip to content

Commit

Permalink
chore: changed directory of config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed May 7, 2024
1 parent e66a79c commit 24f527d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
echo "entrypoint - run node"
cp -r /config/${NETWORK}/* /current/
cardano-node run --database-path /data/db --host-addr 0.0.0.0 --port ${CARDANO_NODE_PORT} --socket-path /ipc/node.socket --topology /current/topology.json --config /current/config.json > /logs/node.log &
cp -r /config/${NETWORK}/* /config/
cardano-node run --database-path /data/db --host-addr 0.0.0.0 --port ${CARDANO_NODE_PORT} --socket-path /ipc/node.socket --topology /config/topology.json --config /config/config.json > /logs/node.log &

echo "entrypoint - run postgres"
/etc/init.d/postgresql start
Expand Down
4 changes: 2 additions & 2 deletions docker/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ We can specify network, ports, postgres user, etc.

### 4. Changing build parameters
```
docker build -t {image_name} --build-arg PG_VERSION=11 -f ./docker/Dockerfile .
docker build -t {image_name} --build-arg PG_VERSION=14 -f ./docker/Dockerfile .
```
We can specify Cabal, GHC, Cardano node, and Postgres versions when building an image.

Expand All @@ -42,7 +42,7 @@ GHC_VERSION=8.10.7
CARDANO_NODE_VERSION=8.9.2
``
``
PG_VERSION=11
PG_VERSION=14
``

### 5. Volume with Cardano node data
Expand Down

0 comments on commit 24f527d

Please sign in to comment.