#148 Add tox-podman.sh helper script
Merged 4 years ago by jskladan. Opened 4 years ago by lholecek.
taskotron/ lholecek/resultsdb tox-podman-script  into  develop

Add tox-podman.sh helper script
Lukas Holecek • 4 years ago  
file modified
+3 -6
@@ -94,13 +94,10 @@ 

  

      $ NO_CAN_HAS_POSTGRES=sadly pytest

  

- To use tox-docker with podman without requiring root, you can use a local user

- socket::

+ To use tox-docker with podman without requiring root, you can use

+ `tox-podman.sh` script that wraps `tox`::

  

-     $ systemctl --user start podman.socket

-     $ curl --unix-socket /run/user/$UID/podman/podman.sock http://localhost/_ping

-     $ export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock

-     $ tox -e py39

+     $ ./tox-podman.sh -e py39

  

  ## Deployment

  

file added
+9
@@ -0,0 +1,9 @@ 

+ #!/bin/bash

+ set -euo pipefail

+ 

+ export DOCKER_HOST=unix:///run/user/$UID/resultsdb-podman.sock

+ podman system service --time=0 "$DOCKER_HOST" &

+ trap "kill $!" QUIT TERM INT HUP EXIT

+ sleep 1

+ 

+ tox "$@"

no initial comment

Commit b5a8036 fixes this pull-request

Pull-Request has been merged by jskladan

4 years ago

Pull-Request has been merged by jskladan

4 years ago
Metadata