Make Docker container more accessible for end users who don't want to install a package or git clone #150
Labels
Component: Docker
Priority: Medium
Wrong or misleading documentation, broken behavior with workaround
Type: Enhancement
Waiting for Contributor Feedback
The original contributor did not yet respond to the latest request
Requirements:
If you paste the script below into a file named
bats
and make it executable and put it into a folder on the PATHchmod +x bats && mkdir -p ~/.local/bin && cp bats ~/.local/bin/bats && . /etc/profile
(the last bit puts~/.local/bin
on your PATH for you in Ubuntu (and maybe Debian) or you canchmod a+x bats && sudo cp bats /usr/local/bin/bats
to share it across all users, and now you can findbats
withwhich bats
, but when the script runs it will pull the Docker container at the version you specify in the script in place oflatest
, ie to pin a certain release for consistent testing with known features, or since it doesn't change often or wildly change the API you can just uselatest
and run your tests regularly to detect if it fails when something changes upstream.I modified the Dockerfile quite a bit from what is included in the repository, but the end result is much the same. I'll add that tomorrow as I explore a bit more with adding some of the helper libraries on an optional basis to the base image or by providing volume mounts where they can be mapped in and seamlessly interact with
bats
in the container.The text was updated successfully, but these errors were encountered: