-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dev doc: How to build and push feathr registry docker image
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
docs/how-to-guides/build-and-push-feathr-registry-docker-image.md
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,50 @@ | ||
--- | ||
layout: default | ||
title: How to build and push feathr registry docker image | ||
parent: Feathr How-to Guides | ||
--- | ||
|
||
# How to build and push feathr registry docker image | ||
|
||
This doc shows how to build feathr registry docker image locally and publish to registry | ||
|
||
## Prerequisites | ||
|
||
Follow the [instructions](https://docs.docker.com/get-docker) to setup docker locally | ||
|
||
## Build docker image locally | ||
|
||
Open terminal and go to root of this repository, run following command | ||
|
||
```bash | ||
cd deploy | ||
docker build -t blrchen/feathr-sql-registry . | ||
``` | ||
|
||
Note: this tutorial uses **blrchen/feathr-sql-registry** as an example. You should replace it with the image name you want to use. <user_name>/<image_name> is not a mandatory format for specifying the name of the docker image. | ||
|
||
## Test docker image locally | ||
|
||
Run **docker images** command, see newly created image should be listed in output | ||
|
||
```bash | ||
docker images | ||
``` | ||
|
||
Run **docker run** command to test docker image locally | ||
|
||
```bash | ||
docker run --env CONNECTION_STR=<__REPLACE_ME_WITH_SQL_CONNECTION_STRING__> --env API_BASE=api/v1 -it --rm -p 3000:80 blrchen/feathr-sql-registry | ||
``` | ||
|
||
Open web browser and navigate to <https://localhost:3000>,verify you can see feathr ui and able to login successfully. | ||
|
||
## Upload to Registry | ||
|
||
Run **docker push** command to publish docker image to DockerHub | ||
|
||
```bash | ||
docker push blrchen/feathr-sql-registry | ||
``` | ||
|
||
|