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

fix(docker): failed to build image on Mac M1 #91

Merged
merged 9 commits into from
Jan 19, 2023

Conversation

yuanbohan
Copy link
Contributor

@yuanbohan yuanbohan commented Jan 17, 2023

@yuanbohan yuanbohan added the bug Something isn't working label Jan 17, 2023
@yuanbohan yuanbohan force-pushed the fix-build-image-failur-on-mac-m1 branch from 056ad26 to 9987d8c Compare January 17, 2023 15:11
@yuanbohan
Copy link
Contributor Author

Screenshot 2023-01-17 at 23 18 08

@sunng87
Copy link
Member

sunng87 commented Jan 17, 2023

@ZonaHex PTAL. It seems we don't have remove image optimisations using this.

@yuanbohan yuanbohan force-pushed the fix-build-image-failur-on-mac-m1 branch from 9987d8c to ad489f5 Compare January 18, 2023 03:24
Copy link
Collaborator

@ZonaHex ZonaHex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update README if 'docker run' does not works well without db in docker.

Comment on lines +27 to 32
docker run --rm --name greptimedb-dashboard \
-e GREPTIMEDB_HTTP_HOST=127.0.0.1 \
-e GREPTIMEDB_HTTP_PORT=4000 \
-e NGINX_PORT=8080 \
--network host \
-p 8080:8080 \
greptime/greptimedb-dashboard:latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't run db in docker, we can't access db in PC.

Comment on lines 6 to 8
location /api/ {
proxy_pass http://${GREPTIMEDB_HTTP_HOST}:${GREPTIMEDB_HTTP_PORT}/;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this works.

@alili alili merged commit ee09647 into main Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants