https://github.com/mweidling/docker-context
A Docker image with ConTeXt standalone on Ubuntu 16.04
https://github.com/mweidling/docker-context
docker dockerfile tex
Last synced: about 2 months ago
JSON representation
A Docker image with ConTeXt standalone on Ubuntu 16.04
- Host: GitHub
- URL: https://github.com/mweidling/docker-context
- Owner: mweidling
- License: mit
- Created: 2018-03-29T15:11:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T11:34:26.000Z (about 8 years ago)
- Last Synced: 2025-08-06T16:45:15.481Z (10 months ago)
- Topics: docker, dockerfile, tex
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConTeXt Docker image
This Docker image runs [ConTeXt](http://wiki.contextgarden.net/Main_Page) standalone on Ubuntu 16.04 in order to guarantee a stable environment that leads to reproducible results for your ConTeXt compilation.
## Prerequisites
Install Docker according to the [Docker installation guide](https://docs.docker.com/install/).
## Installing
Make a directory for this repository and clone it:
```
mkdir {DIRNAME}
cd {DIRNAME}
git clone https://github.com/MRodz/docker-context.git
```
Then build the image (this will take some time):
```
sudo docker build -t {YOUR_TAG}
```
__Note:__ In case you have a separate UNIX group for Docker you can omit `sudo`. For more information about this, have a look at [this Docker help page](https://docs.docker.com/install/linux/linux-postinstall/).
In order for this container to run properly, make sure you have the TeX-file you want to compile in this directory.
## Usage
Start the container with
```
./contextdocker.sh
```
Then compile the file with
```
./compile.sh
```
Since the current TeX-file is fetched from your host directory every time you run `compile.sh`, you can make changes while the container is still running. Simply run `compile.sh` again to compile the changed file.
The output PDF will automatically be pushed to your host directory.
## Contributing
Feel free to submit pull requests to improve this Dockerfile.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details