-
Notifications
You must be signed in to change notification settings - Fork 3
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
Docker image: need to manually enable app after installation #31
Comments
I managed to install StorJ app as Primary Storage for Nextcloud thanks to your idea about adding it in the file The app needs to be enabled during the Nextcloud installation to be used as primary storage, so, to enable it by default I added it to the See my FROM nextcloud
# Install FFI dependencies
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
# Enable php FFI extension
RUN set -ex; \
docker-php-ext-install ffi \
&& echo ffi.enable=true > /usr/local/etc/php/conf.d/storj.ffi.ini
# Download Storj app
RUN set -ex; \
mkdir -p /usr/src/nextcloud/apps \
&& cd /usr/src/nextcloud/apps \
&& curl --output storj.tar.gz https://link.storjshare.io/raw/jvfizc37vgr5ohyxwreg7abnxxrq/nextcloud-app-assets/storj-v0.0.9.tar.gz \
&& tar -x -f storj.tar.gz \
&& rm storj.tar.gz
# Enable StorJ app by default in Nextcloud
COPY storj.config.php /usr/src/nextcloud/config/storj.config.php
RUN set -ex; \
sed -i '/"shippedApps": \[/a "storj",' /usr/src/nextcloud/core/shipped.json \
&& sed -i '/"defaultEnabled": \[/a "storj",' /usr/src/nextcloud/core/shipped.json Obviously, you have to configure the credentials in your [...]
environment:
[...]
# StorJ
- OBJECTSTORE_STORJ_BUCKET=testcloud
- OBJECTSTORE_STORJ_ACCESS_GRANT=abCdAbcDabcD......... Hope it helps. BTW: I'm doing this in nextcloud 26.0.1 and it works pretty well. 👍 |
@ebirbe Hello! I'm trying to build my own Dockerfile for Storj and Nextcloud but my knowledge on the process is novice. Is there a Youtube walkthrough of the steps? I would really like to get this going. Thanks for any information. |
After going through the installation wizard I need to manually enable the Storj app in settings.
Perhaps this can be fixed by adding it to https://github.com/nextcloud/server/blob/master/core/shipped.json
The text was updated successfully, but these errors were encountered: