When I run the following command to get a bash prompt in a docker container:
docker run --rm -ti boltops/terraspace:1.1.5-ubuntu
I can successfully run the
However, when I run this instead:
docker run --rm -ti -v $(pwd):/root/work -w /root/work boltops/terraspace:1.1.5-ubuntu
and then run
terraspace (from the
/root/work directory), I get the following:
Could not locate Gemfile or .bundle/ directory
However, if I change directory out of the specified workdir (
/root/work), I can successfully run
This indicates to me that there is something in my host machine’s current directory that is somehow interfering with
terraspace, so to determine what that might be, I removed everything from the host’s current directory except for the
config directories containing my terraspace files.
That still caused
terraspace to produce the same message as above.
However, as soon as I renamed the
config directory to something else,
Of course, attempting to run
terraspace build with my
config directory renamed to something else, I then got the following error:
ERROR: It doesnt look like this is a terraspace project. Are you sure you are in a terraspace project?
(BTW: notice that in the error message, “doesnt” is missing the apostrophe.)
How am I supposed to get
terraspace to work inside of Docker with the
config directories that Terraspace requires?