Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
switch to quay.io (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyer2 authored Sep 18, 2020
1 parent fdeeb95 commit 7a77bcd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

FROM codait/max-base:v1.3.2
FROM quay.io/codait/max-base:v1.3.2

COPY . /app
WORKDIR /app
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Ways you can run this code pattern:

## Deploy on Kubernetes

You can deploy the model and web app on Kubernetes using the latest docker images on Docker Hub.
You can deploy the model and web app on Kubernetes using the latest docker images on Quay.

On your Kubernetes cluster, run the following commands:

Expand Down Expand Up @@ -79,10 +79,10 @@ The model will only be available internally, but can be accessed externally thro
To run the docker image, which automatically starts the model serving API, run:

```
$ docker run -it -p 5000:5000 codait/max-question-answering
$ docker run -it -p 5000:5000 quay.io/codait/max-question-answering
```

This will pull a pre-built image from Docker Hub (or use an existing image if already cached locally) and run it.
This will pull a pre-built image from Quay (or use an existing image if already cached locally) and run it.
If you'd rather build and run the model locally, or deploy on a Kubernetes cluster, you can follow the steps in the
[model README](https://github.ibm.com/CODAIT/MAX-Question-Answering#steps)

Expand Down Expand Up @@ -152,7 +152,7 @@ network stack. This is done in the following steps:
Modify the command that runs the MAX Question Answering REST endpoint to map an additional port in the container to a
port on the host machine. In the example below it is mapped to port `8000` on the host but other ports can also be used.

docker run -it -p 5000:5000 -p 8000:8000 --name max-question-answering codait/max-question-answering
docker run -it -p 5000:5000 -p 8000:8000 --name max-question-answering quay.io/codait/max-question-answering

Build the web app image by running:

Expand Down
2 changes: 1 addition & 1 deletion max-question-answering-web-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
spec:
containers:
- name: max-question-answering-web-app
image: codait/max-question-answering-web-app:latest
image: quay.io/codait/max-question-answering-web-app:latest
command: ["python", "app.py", "--model=http://max-question-answering:5000"]
ports:
- containerPort: 8088

0 comments on commit 7a77bcd

Please sign in to comment.