Skip to content

sambyeol/latex-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devcontainer with TeX Live

Pre-installed TeX Live for Devcontainer. You can create your own LaTeX document with one of the provided images. Images can be found at ghcr.io/sambyeol/latex-devcontainer.

Quickstart

Make a devcontainer setting file at .devcontainer/devcontainer.json in your project.

{
    "image": "ghcr.io/sambyeol/latex-devcontainer",
    "runArgs": [ "--init" ],
    "settings": {
        "[latex][bibtex]": {
            "editor.formatOnSave": true,
            "editor.wordWrap": "on"
        }
    },
    "extensions": [
        "james-yu.latex-workshop"
    ],
}

Then, reopen in container.

Tags

  • Images are tagged with base images. For example, ubuntu or ubuntu- tags mean that image is created from Ubuntu image.
  • An image without root tag comes with non-root user sambyeol.

Cross-compile Images

All images are cross-compiled with Docker Buildx.

Requirements

Some system libraries are needed.

$ sudo apt-get update
$ sudo apt-get install -y binfmt-support qemu qemu-user-static

You need buildx to cross-compile images. If you see the following output, see here to install buildx.

$ docker buildx version
docker: 'buildx' is not a docker command.
See 'docker --help'

Compile

You can build images for linux/amd64 and linux/arm64 with following command.

$ docker buildx bake --push

Note that --push option will push to Docker Hub right after building images.