forked from vishakha-lall/MapBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request vishakha-lall#107 from chttrjeankr/docker_hub_integ
Clone the code, download StanfordCoreNLP in DockerFile vishakha-lall#79 resolved
- Loading branch information
Showing
7 changed files
with
28 additions
and
15 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
__pycache__ | ||
.dockerignore | ||
stanford-corenlp-full-2018-10-05/ |
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
FROM python:3.6 | ||
FROM python:3.6-slim-stretch | ||
|
||
RUN apt-get update && apt-get install -y git wget unzip | ||
|
||
COPY requirements.txt ./requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /usr/var/MapBot | ||
WORKDIR /usr/var/MapBot | ||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/bin/sh","./docker-entrypoint.sh"] | ||
WORKDIR /usr/var/MapBot | ||
ENTRYPOINT ["/bin/sh","/usr/local/bin/docker-entrypoint.sh"] |
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
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker-compose up -d && docker attach mapbot_bot | ||
if [ ! -d MapBot ]; then | ||
git clone https://github.com/vishakha-lall/MapBot.git -b gssoc-master | ||
fi | ||
|
||
export GCLOUD_API_KEY=<YOUR_API_KEY_HERE> | ||
|
||
docker-compose -f ./MapBot/docker-compose.yml up -d && docker attach mapbot_bot |