Skip to content
Snippets Groups Projects
Commit a3c73644 authored by B13nch3n's avatar B13nch3n
Browse files

Add build command for development container

parent 68d30bb8
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ Be aware of the `touch .history` command before `docker run`. This makes sure a ...@@ -111,7 +111,7 @@ Be aware of the `touch .history` command before `docker run`. This makes sure a
### Build the development Docker container ### Build the development Docker container
The [Dockerfile](./Dockerfile) has an additional build argument, `ADD_DEV`. If set to `YES`, the follwoing development tools are added to the Docker image: The [Dockerfile](./Dockerfile) has an additional build argument, `ADD_DEV`. If set to `YES`, the following development tools are added to the Docker image:
- [Emacs](https://www.gnu.org/software/emacs/) - [Emacs](https://www.gnu.org/software/emacs/)
...@@ -121,6 +121,14 @@ The [Dockerfile](./Dockerfile) has an additional build argument, `ADD_DEV`. If s ...@@ -121,6 +121,14 @@ The [Dockerfile](./Dockerfile) has an additional build argument, `ADD_DEV`. If s
None of these are needed to run a translation script. None of these are needed to run a translation script.
The build argument is just added to the `docker build` call:
```terminal
$ # DOCKER_BUILDKIT=1 is only needed for older versions of Docker.
$ DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile --build-arg MMCIF_USER_ID=1234 --build-arg ADD_DEV=YES -t converter:latest .
$
```
For working on a translation script, it is convenient to mount the complete Git repository when running the Docker container interactively. This makes sure `pyproject.toml` is available from the repository root to `black` and `pylint`: For working on a translation script, it is convenient to mount the complete Git repository when running the Docker container interactively. This makes sure `pyproject.toml` is available from the repository root to `black` and `pylint`:
```terminal ```terminal
...@@ -132,5 +140,6 @@ $ ...@@ -132,5 +140,6 @@ $
In the session, the Git repository can be found in `/develop`. In the session, the Git repository can be found in `/develop`.
<!-- LocalWords: TOC modelcif cd whoami localuser uid arg CONVERTERSCRIPT <!-- LocalWords: TOC modelcif cd whoami localuser uid arg CONVERTERSCRIPT
LocalWords: CONVERTERCMD cif ASFVG BUILDKIT pwd LocalWords: CONVERTERCMD cif ASFVG BUILDKIT pwd DEV Pylint pyproject
LocalWords: toml pylint
--> -->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment