Browse Source

Merge pull request #71 from jld3103/fix/reorder-docker-instructions

nextcloud: Re-order test docker instructions
pull/72/head
jld3103 2 years ago committed by GitHub
parent
commit
689f8489e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      packages/nextcloud/test/helper.dart

18
packages/nextcloud/test/helper.dart

@ -246,21 +246,21 @@ class TestDockerHelper {
'RUN chown -R www-data:www-data .',
'USER www-data',
'RUN ./occ maintenance:install --admin-user admin --admin-pass $defaultPassword --admin-email admin@example.com',
// Required to workaround restrictions for localhost and http only push proxies
'RUN ./occ config:system:set allow_local_remote_servers --value=true',
'RUN sed -i "s/localhost/host.docker.internal/" /usr/src/nextcloud/apps/notifications/lib/Controller/PushController.php',
'ADD overlay /usr/src/nextcloud/',
generateCreateTestUserInstruction(),
if (users != null) ...[
for (final user in users) ...[
generateCreateUserInstruction(user),
],
],
if (apps != null) ...[
for (final app in apps) ...[
generateInstallAppInstruction(app),
],
],
// Required to workaround restrictions for localhost and http only push proxies
'RUN ./occ config:system:set allow_local_remote_servers --value=true',
'RUN sed -i "s/localhost/host.docker.internal/" /usr/src/nextcloud/apps/notifications/lib/Controller/PushController.php',
'ADD overlay /usr/src/nextcloud/',
if (users != null) ...[
for (final user in users) ...[
generateCreateUserInstruction(user),
],
],
'',
];

Loading…
Cancel
Save