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

Fixes needed to run on latest openshift. #144

Merged
merged 3 commits into from
Jun 1, 2018
Merged

Fixes needed to run on latest openshift. #144

merged 3 commits into from
Jun 1, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented May 28, 2018

This PR contains fixes needed to deploy ArangoDB on OpenShift.
Tested on minishift v1.17.0+f974f0c.

Note that in order to make it work, also a patched version of the ArangoDB image is needed.
A Dockerfile as below is known to work.

FROM arangodb/arangodb-preview:3.3
RUN chgrp 0 /var/lib/arangodb3 && chmod 775 /var/lib/arangodb3
RUN chgrp 0 /var/lib/arangodb3-apps && chmod 775 /var/lib/arangodb3-apps

These changes are patched into newly released arangodb images.

@@ -167,6 +167,8 @@ func (ib *imagesBuilder) fetchArangoDBImageIDAndVersion(ctx context.Context, ima
args := []string{
"--server.authentication=false",
fmt.Sprintf("--server.endpoint=tcp://[::]:%d", k8sutil.ArangoPort),

Choose a reason for hiding this comment

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

does this imply that the connection will never be ssl? and never use authentication?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the ID pod : Yes.

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 ID pod is run very quickly to fetch version information for a given image name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will never be accessible from outside, nor will it store any data or live longer than a few seconds

@ewoutp ewoutp merged commit bf880c1 into master Jun 1, 2018
@ewoutp ewoutp deleted the bugfix/openshift branch June 1, 2018 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants