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

autoupgrade support by environment variable #72

Open
prabirshrestha opened this issue Sep 2, 2019 · 3 comments
Open

autoupgrade support by environment variable #72

prabirshrestha opened this issue Sep 2, 2019 · 3 comments

Comments

@prabirshrestha
Copy link

No description provided.

@brice
Copy link

brice commented Oct 22, 2019

Or, at least, can you document a way to upgrade easily?

@pluma
Copy link

pluma commented Feb 16, 2020

As a workaround, I was able to wrap the entrypoint.sh with my own to perform an upgrade on every restart of the container by deriving my own dockerfile:

FROM arangodb:3.6.1

ENV ARANGO_STORAGE_ENGINE rocksdb
ENV ARANGO_RANDOM_ROOT_PASSWORD 1

RUN mv /entrypoint.sh /arango-entrypoint.sh

COPY docker/api-entrypoint.sh /entrypoint.sh

RUN chmod +x /arango-entrypoint.sh /entrypoint.sh

and api-entrypoint.sh:

#!/bin/sh
set -e
if [ -f /var/lib/arangodb3/SERVER ]; then
    export ARANGO_INIT_ENDPOINT=tcp://127.0.0.1:8999 # Not sure if this is strictly necessary

    arangod --config /etc/arangodb3/arangod.conf \
            --server.endpoint $ARANGO_INIT_ENDPOINT \
            --database.auto-upgrade true
fi

. /arango-entrypoint.sh $@

I think it would be nice if ArangoDB standalone had an option like the cluster coordinators have with online to perform an upgrade-and-reboot (or even just the upgrade if the reboot is no longer required?) iff necessary and otherwise just carry on as usual. Right now there's only auto-upgrade true and that forces a shutdown regardless of whether an update actually happened or not. /cc @fceller @joerg84

@nickcodefresh
Copy link

Why hasn't this option been added? It's a bit ridiculous that this was requested 3 years ago and yet there's no easy way to upgrade when running the stock Docker image.

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

No branches or pull requests

4 participants