|
1 | 1 | ## Docker |
2 | 2 | You can use docker to test issues you have with the SDK. |
3 | 3 |
|
4 | | -1. Install docker |
5 | | - - Mac: <https://docs.docker.com/docker-for-mac/install/> |
6 | | - - Windows: <https://docs.docker.com/docker-for-windows/install/> |
| 4 | +1. Install docker |
| 5 | + - Mac: <https://docs.docker.com/docker-for-mac/install/> |
| 6 | + - Windows: <https://docs.docker.com/docker-for-windows/install/> |
7 | 7 |
|
8 | | -2. Download the dockerfile for this SDK and edit as needed. |
9 | | - - Change the it version as needed `FROM ruby:<your-version>` |
10 | | - - For valid ruby base images on docker see <https://hub.docker.com/_/ruby> |
11 | | - - Copy code/file that you wish to test into the dockerfile |
12 | | - - Add line `COPY <src>... <dest>` |
13 | | - - Set dockerfile to execute code file |
14 | | - - Add line `CMD [ "<executable>" ]` |
| 8 | +2. Download the dockerfile for this SDK and edit as needed. |
| 9 | + - Change the ruby version as needed `FROM ruby:<your-version>` |
| 10 | + - For valid ruby base images on docker see <https://hub.docker.com/_/ruby> |
15 | 11 |
|
16 | | - - For more information on dockerfile construction please visit <https://docs.docker.com/engine/reference/builder/> |
| 12 | + - Copy code/file that you wish to test into the dockerfile |
| 13 | + - Add line `COPY <src>... <dest>` |
17 | 14 |
|
18 | | -3. Build and run the docker image. |
19 | | - - Navigate to docker file directory |
20 | | - - To build the docker image run `docker build --tag=<your-tag> .` |
21 | | - - To run the docker image run `docker run <your-tag>` |
| 15 | + - Set dockerfile to execute code file |
| 16 | + - Add line `CMD [ "<executable>" ]` |
| 17 | + |
| 18 | + - For more information on dockerfile construction please visit <https://docs.docker.com/engine/reference/builder/> |
| 19 | + |
| 20 | +3. Build and run the docker image. |
| 21 | + - Navigate to docker file directory |
| 22 | + - To build the docker image run `docker build --tag=<your-tag> .` |
| 23 | + - To run the docker image run `docker run <your-tag>` |
0 commit comments