website icon indicating copy to clipboard operation
website copied to clipboard

custom_dc local build issues

Open bkosuru opened this issue 1 year ago • 1 comments
trafficstars

Hello,

I am having issues with custom_dc local build I did a local build

docker build --tag datacommons-website-compose:latest \
-f build/web_compose/Dockerfile \
-t website-compose .

Had to add a Zscaler cert to Dockerfile and then build was successful.

docker run -it \
--pull=always \
--env-file $PWD/custom_dc/sqlite_env.list \
-p 8080:8080 \
-e DEBUG=true \
-v $PWD/custom_dc/sample:/userdata \
-v $PWD/server:/workspace/server \
datacommons-website-compose:latest

docker: Error response from daemon: pull access denied for website-compose, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

I removed "--pull=always " and then I was able to run the container.

http://127.0.0.1:8080/admin/ - page is empty

I also noticed these error messages

[2024-03-07 15:59:50.261][9][warning][main] [external/envoy/source/server/server.cc:506] No admin address given, so no admin HTTP server started.

【16:00:04】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:00:04] "GET /admin/ HTTP/1.1" 200 - 【16:00:04】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:00:04] "GET /css/admin.min.css HTTP/1.1" 404 - 【16:00:04】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:00:04] "GET /admin.js?t=None-None HTTP/1.1" 404 - 【16:00:06】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:00:06] "GET /admin/ HTTP/1.1" 200 - 【16:00:06】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:00:06] "GET /css/admin.min.css HTTP/1.1" 404 - 【16:00:06】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:00:06] "GET /admin.js?t=None-None HTTP/1.1" 404 - 【16:02:01】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:02:01] "GET / HTTP/1.1" 200 - 【16:02:01】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:02:01] "GET /css/static.min.css?t=None-None HTTP/1.1" 404 - 【16:02:01】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:02:01] "GET /custom_dc/custom/overrides.css HTTP/1.1" 404 - 【16:02:01】【INFO】【 _internal.py:96 】 192.168.65.1 - - [07/Mar/2024 16:02:01] "GET /custom_dc/custom/logo.png HTTP/1.1" 404 -

bkosuru avatar Mar 07 '24 16:03 bkosuru

To fix the issues, in web_server/Dockerfile, removed "--omit=dev"

bkosuru avatar Mar 11 '24 14:03 bkosuru