Skip to content

Commit 8eccc16

Browse files
committed
docker-compose: mount files read only
1 parent 5e4f2ff commit 8eccc16

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build-docker.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ jobs:
8383
else
8484
docker compose --profile remote up
8585
fi
86-
MAGNET_LINK=$(docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-$VERSION.torrent)
87-
MAGNET_LINK_GUI=$(docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-gui-$VERSION_GUI.torrent)
86+
MAGNET_LINK=$(docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-$VERSION.torrent)
87+
MAGNET_LINK_GUI=$(docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-gui-$VERSION_GUI.torrent)
8888
echo "MAGNET_LINK_REMOTE=$MAGNET_LINK" >> $GITHUB_ENV
8989
echo "MAGNET_LINK_REMOTE_GUI=$MAGNET_LINK_GUI" >> $GITHUB_ENV
9090
sudo rm ./watch/*
@@ -101,8 +101,8 @@ jobs:
101101
else
102102
docker compose --profile local up
103103
fi
104-
MAGNET_LINK=$(docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-$VERSION.torrent)
105-
MAGNET_LINK_GUI=$(docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-gui-$VERSION_GUI.torrent)
104+
MAGNET_LINK=$(docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-$VERSION.torrent)
105+
MAGNET_LINK_GUI=$(docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-gui-$VERSION_GUI.torrent)
106106
echo "MAGNET_LINK_LOCAL=$MAGNET_LINK" >> $GITHUB_ENV
107107
echo "MAGNET_LINK_LOCAL_GUI=$MAGNET_LINK_GUI" >> $GITHUB_ENV
108108
INFOHASH="${MAGNET_LINK#*btih:}"
@@ -141,19 +141,19 @@ jobs:
141141
{
142142
echo "### CLI Torrent info"
143143
echo '```'
144-
docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest /watch/monero-$VERSION.torrent
144+
docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest /watch/monero-$VERSION.torrent
145145
echo '```'
146146
echo "### GUI Torrent info"
147147
echo '```'
148-
docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest /watch/monero-gui-$VERSION_GUI.torrent
148+
docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest /watch/monero-gui-$VERSION_GUI.torrent
149149
echo '```'
150150
echo "### 🧲 CLI Magnet Link"
151151
echo '```'
152-
docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-$VERSION.torrent
152+
docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-$VERSION.torrent
153153
echo '```'
154154
echo "### 🧲 GUI Magnet Link"
155155
echo '```'
156-
docker run --rm -v "./watch:/watch" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-gui-$VERSION_GUI.torrent
156+
docker run --rm -v "./watch:/watch:ro" ghcr.io/plowsof/monero-torrent-show:latest -m /watch/monero-gui-$VERSION_GUI.torrent
157157
echo '```'
158158
} >> release-notes.md
159159

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
volumes:
1313
- "./downloads:/app/downloads"
1414
- "./watch:/app/watch"
15-
- "./create_monero_torrent.sh:/app/create_monero_torrent.sh"
15+
- "./create_monero_torrent.sh:/app/create_monero_torrent.sh:ro"
1616
restart: "no"
1717
profiles: ["remote"]
1818

@@ -29,7 +29,7 @@ services:
2929
volumes:
3030
- "./downloads:/app/downloads"
3131
- "./watch:/app/watch"
32-
- "./cdn:/cdn"
33-
- "./create_monero_torrent.sh:/app/create_monero_torrent.sh"
32+
- "./cdn:/cdn:ro"
33+
- "./create_monero_torrent.sh:/app/create_monero_torrent.sh:ro"
3434
restart: "no"
3535
profiles: ["local"]

0 commit comments

Comments
 (0)