latexdevcontainer icon indicating copy to clipboard operation
latexdevcontainer copied to clipboard

container build failed !

Open ravikumargrk opened this issue 2 years ago • 3 comments

I have created a codespace and built container using your .devcontainer config untouched. build has failed.

ravikumargrk avatar Apr 25 '23 15:04 ravikumargrk

I have created a codespace and built container using your .devcontainer config untouched. build has failed.

Hallo 🌈 thank you for your feedback. I'll check ASAP.

Could you attach the error message ? Are you on Linux, Windows, MacOS ?

ncvescera avatar Apr 26 '23 09:04 ncvescera

@ravikumargrk I found the problem.

When you are creating and using a Github Codespace, there are no files like ~/.gitconfig, ~/.ssh, etc.

Try with commenting all the volumes inside the docker-compose.yml file (except for ../ and /var/run/docker.sock). The following code should works:

version: "3.2"

services:
  vscode:
    build: .
    image: latexdevcontainer
    volumes:
      - ../:/workspace
      # Docker socket to access Docker server
      - /var/run/docker.sock:/var/run/docker.sock
      # SSH directory
      # - ~/.ssh:/root/.ssh
      # For Windows without WSL, a copy will be made
      # from /tmp/.ssh to ~/.ssh to fix permissions
      # - ~/.ssh:/tmp/.ssh:ro
      # Shell history persistence
      # - ~/.zsh_history:/root/.zsh_history:z
      # Git config
      # - ~/.gitconfig:/root/.gitconfig
    environment:
      - TZ=
    entrypoint: ["zsh", "-c", "while sleep 1000; do :; done"]

ncvescera avatar Apr 26 '23 11:04 ncvescera

@qdm12 should we add this to the README ? A subsection inside 'More' section maybe ?

ncvescera avatar May 02 '23 07:05 ncvescera