Skip to content

Commit 32b90b9

Browse files
authored
fix: Make sure "./run" is the invocation (ietf-tools#5724)
* fix: Make sure "./run" is the invocation * Use $(dirname $0) instead of hacky test * chore: Update docs
1 parent d18db5b commit 32b90b9

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

docker/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ You can also open the datatracker project folder and click the **Reopen in conta
8787
On Linux / macOS:
8888
8989
```sh
90-
cd docker
91-
./run
90+
./docker/run # or whatever path you need
9291
```
9392
94-
> Note that you can pass the `-r` flag to `./run` to force a rebuild of the containers. This is useful if you switched branches and that the existing containers still contain configurations from the old branch. You should also use this if you don't regularly keep up with main and your containers reflect a much older version of the branch.
93+
> Note that you can pass the `-r` flag to `run` to force a rebuild of the containers. This is useful if you switched branches and that the existing containers still contain configurations from the old branch. You should also use this if you don't regularly keep up with main and your containers reflect a much older version of the branch.
9594

9695
On Windows *(using Powershell)*:
9796
```sh

docker/run

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ while getopts "hp:r" opt; do
3737
esac
3838
done
3939

40+
# Ensure the run script is in our directory.
41+
dirname=$(dirname $0)
42+
if [ "$dirname" = "." -o "$dirname" = "" ] ; then
43+
:
44+
else
45+
echo "Changing to directory $dirname"
46+
cd $dirname || exit 1
47+
fi
48+
4049
# Remove mounted temp directories
4150
rm -rf .parcel-cache __pycache__
4251

0 commit comments

Comments
 (0)