Skip to content

Commit 6a7fbd3

Browse files
authored
Merge branch 'master' into fix/s3_largefile_timeouts
2 parents 1defbe6 + 2c5d308 commit 6a7fbd3

File tree

6,812 files changed

+180255
-69170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,812 files changed

+180255
-69170
lines changed

.devcontainer/Dockerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM ubuntu:focal
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
# PHP
6+
RUN apt-get update -y
7+
RUN apt-get install --no-install-recommends -y \
8+
php7.4 \
9+
php7.4-gd \
10+
php7.4-zip \
11+
php7.4-curl \
12+
php7.4-xml \
13+
php7.4-mbstring \
14+
php7.4-sqlite \
15+
php7.4-xdebug \
16+
php7.4-pgsql \
17+
php7.4-intl \
18+
php7.4-imagick \
19+
php7.4-gmp \
20+
php7.4-apcu \
21+
php7.4-bcmath \
22+
libmagickcore-6.q16-3-extra \
23+
curl \
24+
vim \
25+
lsof \
26+
make \
27+
nodejs \
28+
npm
29+
30+
RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
31+
RUN echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
32+
33+
# Docker
34+
RUN apt-get -y install \
35+
apt-transport-https \
36+
ca-certificates \
37+
curl \
38+
gnupg-agent \
39+
software-properties-common
40+
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
41+
RUN add-apt-repository \
42+
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
43+
$(lsb_release -cs) \
44+
stable"
45+
RUN apt-get update -y
46+
RUN apt-get install -y docker-ce docker-ce-cli containerd.io
47+
RUN ln -s /var/run/docker-host.sock /var/run/docker.sock

.devcontainer/codespace.config.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
$cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
4+
5+
$CONFIG = [
6+
'mail_from_address' => 'no-reply',
7+
'mail_smtpmode' => 'smtp',
8+
'mail_sendmailmode' => 'smtp',
9+
'mail_domain' => 'example.com',
10+
'mail_smtphost' => 'localhost',
11+
'mail_smtpport' => '1025',
12+
'memcache.local' => '\OC\Memcache\APCu',
13+
];
14+
15+
if($cloudEnvironmentId !== true) {
16+
$CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com';
17+
$CONFIG['overwriteprotocol'] = 'https';
18+
}

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "NextcloudServer",
3+
"dockerComposeFile": "docker-compose.yml",
4+
"service": "nextclouddev",
5+
"postCreateCommand": ".devcontainer/setup.sh",
6+
"forwardPorts": [
7+
80,
8+
8080,
9+
8025
10+
],
11+
"runArgs": [
12+
"--privileged"
13+
],
14+
"extensions": [
15+
"felixfbecker.php-debug",
16+
"felixfbecker.php-intellisense",
17+
"ms-azuretools.vscode-docker"
18+
],
19+
"settings": {
20+
"php.suggest.basic": false,
21+
}
22+
}

.devcontainer/docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3'
2+
services:
3+
nextclouddev:
4+
build: .
5+
volumes:
6+
- .:/workspace:cached
7+
- /var/run/docker.sock:/var/run/docker-host.sock
8+
command: /bin/sh -c "while sleep 1000; do :; done"
9+
ports:
10+
- 80:80
11+
- 8080:8080
12+
- 8025:8025
13+
14+
db:
15+
image: postgres
16+
restart: always
17+
environment:
18+
POSTGRES_PASSWORD: postgres
19+
network_mode: service:nextclouddev
20+
21+
adminer:
22+
image: adminer
23+
restart: always
24+
network_mode: service:nextclouddev
25+
26+
mailhog:
27+
image: mailhog/mailhog
28+
restart: always
29+
network_mode: service:nextclouddev

.devcontainer/setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )"
3+
4+
cd $DIR/
5+
git submodule update --init
6+
7+
# Codespace config
8+
cp .devcontainer/codespace.config.php config/codespace.config.php

0 commit comments

Comments
 (0)