catosplace-devcontainers / engineering-base

Catosplace Engineering Base Container
0 stars 0 forks source link

Determine the best way to build a devcontainer within the devcontainer! #19

Open petersellars opened 19 hours ago

petersellars commented 19 hours ago

To run the tests we need to build the devcontainer and then run the devcontainer within the devcontainer!

We have the devcontainer/cli installed via Node, but there is no access to the docker context at this time.

How can we get access to the Docker on the WSL instance so we can run these commands in the devcontainer.

We may need to implement a flag for when we want to use the docker in the container.

petersellars commented 18 hours ago

Looks like we can conditionally set the mount based on a containerEnv

We can then look to use a dynamic environment variable to set this and a build arg that would install docker into the devcontainer.

petersellars commented 18 hours ago

Plan