Skip to content

Commit

Permalink
fix ci scripts: check for docker -t
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-v committed Sep 7, 2023
1 parent 905fd27 commit d6b62d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .run.docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ export DOCKER_IMG=redun_python_test:redun_python_test
export DOCKER_CONTAINER_NAME=redun_python_test

docker build . --tag $DOCKER_IMG >/dev/null
docker-compose up -d

( docker rm -f $DOCKER_CONTAINER_NAME || true ) 2>&1 >/dev/null

if [ -t 0 ]; then
TERM="-i -t"
else
TERM="-i "
fi

docker run \
-u "$(id -u):$(id -g)" \
-it \
$TERM \
--rm \
--name $DOCKER_CONTAINER_NAME \
-e PGUSER=postgres -e PGPASSWORD=postgres \
Expand Down
2 changes: 1 addition & 1 deletion docs/source/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tocpdeth: 3
Run `./pytest.sh` with the arguments that you would pass to `pytest`, for example:

```
./pytest.sh -k static
./pytest.sh -k static --pdb
```

The lints also have their own shortcut: `./lint.sh`
Expand Down

0 comments on commit d6b62d8

Please sign in to comment.