apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.62k stars 517 forks source link

[Feature] Support build docker image from Dockerfile (Task Summary) #840

Open imbajin opened 4 years ago

imbajin commented 4 years ago

Apache HugeGraph DockerHub: https://hub.docker.com/r/hugegraph/hugegraph

Usage:

# 0. download image (latest)
docker pull hugegraph/hugegraph

# 1. start container
docker run -itd hugegraph/hugegraph  # start server in daemon mode

# (Optional configs to expose network port outside)
docker run -itd --name=graph -p 18080:8080 hugegraph/hugegraph

# 2. (Optional) enter the container & start hugegraph-hubble
docker exec -it graph bash
xxx 

Feature Needs

  1. Add Dockerfile for running HugeServer
  2. Users can pull/run the image from dockerhub directly.

And anyone who has other suggestion for docker image can comment here

After PR, will update the doc 📝

Update in 2023.11.09:

Due to the project will move to Apache Foundation, we'll use 1.0.0 as the server version & bind hubble with it, reopen this issue until it meets the new need, any suggestions for Dockerfile are welcome.

Refer:

  1. Reduce the size of container images with DockerSlim
  2. One docker container with multi process (Not graceful:)
  3. How to use dumb-init to replace the pid1 in docker
javeme commented 4 years ago

@imbajin Thanks. do we need a repository like this: https://hub.docker.com/repository/docker/hugegraph/hugegraph

imbajin commented 4 years ago

@imbajin Thanks. do we need a repository like this: https://hub.docker.com/repository/docker/hugegraph/hugegraph

Yep, and it should be associated with the current github repository, then add access token for dockerhub to auto get the change from Dockerfile & autobuild the image

Refer to :

  1. Link to Github
  2. Autobuild from Dockerhub
javeme commented 4 years ago

@imbajin done image

T-baby commented 3 years ago

什么时候支持自动发布到 dockerhub

imbajin commented 3 years ago

什么时候支持自动发布到 dockerhub

如果没有紧急需要的话, 应该是等分布式 rocksdb 版稳定之后一起处理把, 不然要改动的地方还挺多

T-baby commented 3 years ago

下版本的 hugegraph 支持分布式是吧。

imbajin commented 3 years ago

下版本的 hugegraph 支持分布式是吧。

@T-baby 没有特殊情况是哒, 不过就算分布式 rocksdb 没有 12 版发布, 也会重新出一个正式的 docker 镜像(包括 hubble 的)

niconical commented 1 year ago

Really meaningful work, I hope I can apply for this project on GLCC 2023!

niconical commented 1 year ago

It seems hard to find relevant PRs for use github actions to publish images.

imbajin commented 1 year ago

It seems hard to find relevant PRs for use github actions to publish images.

due to the permission lack, we have to publish it in separate repo: (otherwise we can't set the SECRET_TOKEN')


some refer to the auto-build in dockerhub with ASF projects, try these ways:

  1. apply the GitHub admin role (just include these repos) to ASF(Apache Software Foundation) to see if they could give us the permission (little probability)
  2. create a new org & fork all the needed repos under apache, then update manually to trigger the hook in my fork repos (seems achievable, but it's really clumsy/trick)
  3. read the ASF doc or submit a ticket on jira to them to find the help

image

DoodleBears commented 1 year ago
  • [ ] fix that hubble can't use localhost/0.0.0.0 & add a script to update the image

What should I do if I user Docker to run hugegraph/hugegraph and hugegraph/hubble and encounter

服务 localhost:8080 不可用
imbajin commented 1 year ago
  • [ ] fix that hubble can't use localhost/0.0.0.0 & add a script to update the image

What should I do if I user Docker to run hugegraph/hugegraph and hugegraph/hubble and encounter

服务 localhost:8080 不可用

could use the real ip like 10.xx.xx.7 directly @DoodleBears

@coderzc ,please assign this bug for your stu~

coderzc commented 1 year ago

@aroundabout PTAL.

aroundabout commented 1 year ago

here

aroundabout commented 1 year ago
  • [ ] fix that hubble can't use localhost/0.0.0.0 & add a script to update the image

What should I do if I user Docker to run hugegraph/hugegraph and hugegraph/hubble and encounter

服务 localhost:8080 不可用

Can you provide more information? Like the command you use.

imbajin commented 1 year ago
  • [ ] fix that hubble can't use localhost/0.0.0.0 & add a script to update the image

What should I do if I user Docker to run hugegraph/hugegraph and hugegraph/hubble and encounter

服务 localhost:8080 不可用

Can you provide more information? Like the command you use.

@aroundabout @DoodleBears better open a new issue in toolchain to handle it, this issue used for task summary (link other issue/PR), keep it clean (I'll hide them later), thanks~ 🆒

DoodleBears commented 1 year ago

opened: https://github.com/apache/incubator-hugegraph-toolchain/issues/490#issue-1796657832

DoodleBears commented 1 year ago
  • [ ] fix that hubble can't use localhost/0.0.0.0 & add a script to update the image

What should I do if I user Docker to run hugegraph/hugegraph and hugegraph/hubble and encounter

服务 localhost:8080 不可用

Can you provide more information? Like the command you use.

mentioned here: https://github.com/apache/incubator-hugegraph-toolchain/issues/490#issue-1796657832