Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@seiichi1101
Copy link
Contributor

Fix for #1807.

FROM tinkerpop/gremlin-server:3.4.11

# Copy overriden server configuration.
COPY gremlin-server.yaml tinkergraph-empty.properties /opt/gremlin-server/conf/
Copy link
Member

Choose a reason for hiding this comment

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

Hey @seiichi1101 and thanks for contributing this fix.

The CI is failing, can you please debug why? I think you need to use this configuration file in the CI as well.

Copy link
Collaborator

@giautm giautm Aug 5, 2021

Choose a reason for hiding this comment

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

I think we should pin this version as Seiichi did. And rebuild image entgo/gremlin-server for CI.

Copy link
Contributor Author

@seiichi1101 seiichi1101 Aug 6, 2021

Choose a reason for hiding this comment

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

OK. I will debug why ci is failing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The CI is failing, can you please debug why?

This was because the configuration file is not attached to tinkerpop/gremlin-server:3.4.11 in ci.
So, I modified the gremlin-server in ci to use the local configuration file gremlin-server.yaml and tinkergraph-empty.properties.

In this PR, I changed not to use entgo/gremlin-server anymore because it looks unmaintained.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The owner of entgo/gremlin-server is the Ent team.

cc: @alexsn

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not build a entgo/gremlin-server:3.4.11 at the beginning and use it the rest of the test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, @yonidavidson

Why not build a entgo/gremlin-server:3.4.11 at the beginning and use it the rest of the test?

Could you elaborate on that?

@yonidavidson
Copy link
Contributor

Hi @seiichi1101 , to make this work the only change needed is in the dockerfile

FROM tinkerpop/gremlin-server:3.4.11

if you want to make sure that cache isn't using the old built version in ci/localhost we can TAG the file in the docker-compose as well:

gremlin:
    platform: linux/amd64
    image: entgo/gremlin-server:3.4.11
    build: gremlin-server
    restart: on-failure
    ports:
      - 8182:8182

@seiichi1101
Copy link
Contributor Author

seiichi1101 commented Aug 27, 2021

Hi, @yonidavidson

It is fine to add image: entgo/gremlin-server:3.4.11 to docker-compose.

The problem is that when CI is run, entgo/gremlin-server:3.4.11 does not exist in Docker Hub and CI fails.
Therefore, in this PR, I added the process to build the image within CI.

The other way is to update Docker Hub before running CI or within CI, but I don't have permission.


gremlin:
platform: linux/amd64
image: entgo/gremlin-server
Copy link
Contributor

Choose a reason for hiding this comment

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

why not give it the explicit name? entgo/gremlin-server:3.4.11

- 8182:8182

wait:
image: willwill/wait-for-it:latest
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a must?

Copy link
Contributor Author

@seiichi1101 seiichi1101 Aug 31, 2021

Choose a reason for hiding this comment

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

This is for CI.
This is necessary for waiting until entgo/gremlin-server image is run.

FROM tinkerpop/gremlin-server:3.4.11

# Copy overriden server configuration.
COPY gremlin-server.yaml tinkergraph-empty.properties /opt/gremlin-server/conf/
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not build a entgo/gremlin-server:3.4.11 at the beginning and use it the rest of the test?

@yonidavidson
Copy link
Contributor

@seiichi1101 , please have a look at #1894 I made the docker-compose use the tinkerpop image directly.

@yonidavidson
Copy link
Contributor

Check #1807 , I updated the dockerhub image so CI will just work, all is left is to update the integration test dockerfile.
Thanks, @seiichi1101 🥇

@seiichi1101 seiichi1101 force-pushed the bugfix/gremlin-container branch from 7172354 to 180f27f Compare September 2, 2021 04:01
@seiichi1101 seiichi1101 requested a review from a8m September 2, 2021 04:02
@seiichi1101
Copy link
Contributor Author

Thanks, everyone.
I finally updated tinkerpop/gremlin-server version in Dockerfile and README.md.

@a8m a8m merged commit 5277780 into ent:master Sep 2, 2021
@a8m
Copy link
Member

a8m commented Sep 2, 2021

@all-contributors please add @seiichi1101 for code.

@allcontributors
Copy link
Contributor

@a8m

I've put up a pull request to add @seiichi1101! 🎉

@a8m
Copy link
Member

a8m commented Sep 2, 2021

Thanks @seiichi1101 for your contribution, and thanks @yonidavidson and @giautm for the support and the review 🙏 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants