OLD | NEW |
1 # Running the engine in a Docker container | 1 # Running the engine in a Docker container |
2 | 2 |
3 For local development and testing, you can run the engine in a Docker | 3 For local development and testing, you can run the engine in a Docker |
4 container. | 4 container. |
5 | 5 |
6 The steps are: | 6 The steps are: |
7 | 7 |
8 1. Bundle the engine and its dependencies. | 8 1. Bundle the engine and its dependencies. |
9 | 9 |
10 1. Build a Docker image. | 10 1. Build a Docker image. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 ``` | 51 ``` |
52 | 52 |
53 You can compare the output at `out-linux/Debug/engine-manifest.txt` with the | 53 You can compare the output at `out-linux/Debug/engine-manifest.txt` with the |
54 generated target `out-linux/Debug/gen/engine-manifest.txt`. | 54 generated target `out-linux/Debug/gen/engine-manifest.txt`. |
55 | 55 |
56 ## Build Docker Image | 56 ## Build Docker Image |
57 | 57 |
58 Using the tarfile you can create a Docker image: | 58 Using the tarfile you can create a Docker image: |
59 | 59 |
60 ```bash | 60 ```bash |
| 61 docker build -f Dockerfile.base -t base - < ./out-linux/Debug/blimp_engine_bundl
e.tar.gz |
61 docker build -t blimp_engine - < ./out-linux/Debug/blimp_engine_bundle.tar.gz | 62 docker build -t blimp_engine - < ./out-linux/Debug/blimp_engine_bundle.tar.gz |
62 ``` | 63 ``` |
63 | 64 |
64 ## Running the Engine in a Docker Container | 65 ## Running the Engine in a Docker Container |
65 | 66 |
66 After building the Docker image you can launch the engine inside the Docker | 67 After building the Docker image you can launch the engine inside the Docker |
67 container. | 68 container. |
68 | 69 |
69 ### Setting up an Environment | 70 ### Setting up an Environment |
70 | 71 |
(...skipping 19 matching lines...) Expand all Loading... |
90 ```bash | 91 ```bash |
91 docker run -v $CONFIG_DIR:/engine/data -p 443:25466 blimp_engine | 92 docker run -v $CONFIG_DIR:/engine/data -p 443:25466 blimp_engine |
92 ``` | 93 ``` |
93 You can also pass additional flags: | 94 You can also pass additional flags: |
94 | 95 |
95 ```bash | 96 ```bash |
96 docker run ... blimp_engine --with-my-flags | 97 docker run ... blimp_engine --with-my-flags |
97 ``` | 98 ``` |
98 See the [blimp engine `Dockerfile`](../engine/Dockerfile) to find out what flags | 99 See the [blimp engine `Dockerfile`](../engine/Dockerfile) to find out what flags |
99 are passed by default. | 100 are passed by default. |
OLD | NEW |