-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-448: Added Dockerfile and docker-compose.yml files (#34)
* feat: added Dockerfile and docker-compose.yml files added Dockerfile and docker-compose.yml in order to spin an instance up and execute the the test using the library built * docs: added docker instructions to README.md files Co-authored-by: Santiago Botero Ruiz <[email protected]>
- Loading branch information
1 parent
107e5f8
commit c17be89
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt ./ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
|
||
WORKDIR /usr/src/app | ||
RUN pip install onfleet | ||
|
||
# the default command test the onfleet library | ||
CMD [ "python", "test/test_onfleet.py" ] | ||
|
||
# Run the image by running: docker-compose up --build | ||
# Watch the test results by docker-compose logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version: "3.7" | ||
services: | ||
python-onfleet: | ||
build: . | ||
container_name: python-onfleet |