2020-05-17 16:15:16 +02:00
|
|
|
# Geneva Docker
|
|
|
|
|
2020-06-02 21:45:36 +02:00
|
|
|
This implements the Docker base image for Geneva. Each docker container used by the evaluator runs out of the same base container.
|
|
|
|
|
|
|
|
To build it:
|
|
|
|
```
|
|
|
|
docker build -t base:latest -f docker/Dockerfile .
|
2020-05-17 16:15:16 +02:00
|
|
|
```
|
2020-06-02 21:45:36 +02:00
|
|
|
|
|
|
|
Optionally, to manually run/inspect the docker image to explore the image, run:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker run -it base
|
|
|
|
```
|
|
|
|
|
|
|
|
You can run the base image with the below python:
|
|
|
|
```python
|
2020-05-17 16:15:16 +02:00
|
|
|
import os
|
|
|
|
import docker
|
|
|
|
|
|
|
|
docker_client = docker.from_env()
|
|
|
|
docker_client.containers.run('base', detach=True, privileged=True, volumes={os.path.abspath(os.getcwd()): {"bind" : "/code", "mode" : "rw"}}, tty=True, remove=True, name="test")
|
|
|
|
```
|