Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containerizing ui and rest backend into one docker image #379

Merged
merged 6 commits into from
Jun 24, 2022
Merged

Containerizing ui and rest backend into one docker image #379

merged 6 commits into from
Jun 24, 2022

Conversation

blrchen
Copy link
Collaborator

@blrchen blrchen commented Jun 16, 2022

This PR refactors docker files by containerizing ui and backend into one docker image, makes both docker image creation and deployment easier. Using nginx as a reversed proxy to route traffic to correct down streaming ui or backend.

Following test has been done for verification:

Build docker

docker build -t blrchen/feathr-sql-registry .

Test locally

docker run --env CONNECTION_STR="Server=tcp:stripped-sqlname.database.windows.net,1433;Initial Catalog=testsql;Persist Security Info=False;User ID=stripped-username;Password=stripped-password;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" --env API_BASE=api/v1 -it --rm -p 3000:80 blrchen/feathr-sql-registry
Then run http://localhost:3000, both ui and rest api runs well

Test on cloud

Setup a web app with image blrchen/feathr-sql-registry, set AZURE_CLIENT_ID and AZURE_TENANT_ID, both ui and rest api can run well, https://blair-feathr-combined.azurewebsites.net

So far test has been done on sql registry, purview registry will be tested when @YihuiGuo 's new api is ready.

Update: the latest docker image has been published to feathrfeaturestore/sql-registry:latest and verified with deployment https://feathr-sql-registry.azurewebsites.net

Closes #345

@blrchen blrchen marked this pull request as ready for review June 16, 2022 16:53
@blrchen blrchen requested review from jainr and windoze June 16, 2022 16:53
@blrchen blrchen added the safe to test Tag to execute build pipeline for a PR from forked repo label Jun 19, 2022
@xiaoyongzhu
Copy link
Member

Thanks! Can you add those steps in the documentation?

jainr
jainr previously approved these changes Jun 20, 2022
ui/src/utils/utils.tsx Show resolved Hide resolved
@blrchen
Copy link
Collaborator Author

blrchen commented Jun 22, 2022

Thanks! Can you add those steps in the documentation?

Good suggestion. New dev doc added: How to build and push feathr registry docker image

@jainr jainr self-requested a review June 22, 2022 18:25
jainr
jainr previously approved these changes Jun 22, 2022
Yuqing-cat
Yuqing-cat previously approved these changes Jun 23, 2022
@blrchen blrchen dismissed stale reviews from Yuqing-cat and jainr via 2f9c3bd June 23, 2022 09:08
@jainr jainr self-requested a review June 23, 2022 21:06
jainr
jainr previously approved these changes Jun 23, 2022
windoze
windoze previously approved these changes Jun 24, 2022
@blrchen blrchen dismissed stale reviews from windoze and jainr via ce335a6 June 24, 2022 05:46
@blrchen blrchen merged commit 055eb36 into feathr-ai:main Jun 24, 2022
@blrchen blrchen deleted the blair/dockerize-refactor branch June 24, 2022 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Tag to execute build pipeline for a PR from forked repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvemenets on Feathr UI/REST API deployment experience
5 participants