@wocker/ws 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{AppModule.d.ts → RootModule.d.ts} +1 -1
- package/lib/RootModule.js +93 -0
- package/lib/controllers/DebugController.d.ts +1 -1
- package/lib/controllers/DebugController.js +7 -9
- package/lib/controllers/ExperimentalController.d.ts +8 -0
- package/lib/controllers/ExperimentalController.js +76 -0
- package/lib/controllers/PluginController.d.ts +2 -1
- package/lib/controllers/PluginController.js +3 -3
- package/lib/controllers/ProjectController.d.ts +8 -7
- package/lib/controllers/ProjectController.js +123 -240
- package/lib/controllers/index.d.ts +1 -4
- package/lib/controllers/index.js +1 -4
- package/lib/env.d.ts +2 -3
- package/lib/env.js +3 -4
- package/lib/main.js +8 -8
- package/lib/makes/Plugin.d.ts +0 -1
- package/lib/makes/Plugin.js +0 -1
- package/lib/makes/index.d.ts +0 -2
- package/lib/makes/index.js +0 -2
- package/lib/modules/app/index.d.ts +2 -0
- package/lib/modules/app/index.js +32 -0
- package/lib/modules/docker/index.d.ts +8 -0
- package/lib/modules/docker/index.js +41 -0
- package/lib/modules/docker/services/ContainerService.d.ts +14 -0
- package/lib/modules/docker/services/ContainerService.js +115 -0
- package/lib/{services → modules/docker/services}/DockerService.d.ts +12 -5
- package/lib/{services → modules/docker/services}/DockerService.js +27 -114
- package/lib/modules/docker/services/ImageService.d.ts +18 -0
- package/lib/modules/docker/services/ImageService.js +68 -0
- package/lib/modules/docker/services/ModemService.d.ts +15 -0
- package/lib/modules/docker/services/ModemService.js +138 -0
- package/lib/modules/docker/services/ProtoService.d.ts +6 -0
- package/lib/modules/docker/services/ProtoService.js +20 -0
- package/lib/modules/index.d.ts +6 -0
- package/lib/{keystore → modules}/index.js +6 -1
- package/lib/{controllers → modules/keystore/controllers}/KeystoreController.d.ts +2 -2
- package/lib/{controllers → modules/keystore/controllers}/KeystoreController.js +4 -5
- package/lib/modules/keystore/index.d.ts +4 -0
- package/lib/modules/keystore/index.js +29 -0
- package/lib/{keystore → modules/keystore}/providers/FileKeystoreProvider.d.ts +3 -4
- package/lib/{keystore → modules/keystore}/providers/FileKeystoreProvider.js +4 -5
- package/lib/{keystore → modules/keystore}/providers/KeytarKeystoreProvider.js +1 -1
- package/lib/{keystore → modules/keystore/services}/KeystoreService.d.ts +4 -3
- package/lib/{keystore → modules/keystore/services}/KeystoreService.js +9 -6
- package/lib/modules/preset/controllers/PresetController.d.ts +18 -0
- package/lib/modules/preset/controllers/PresetController.js +157 -0
- package/lib/modules/preset/controllers/PresetListener.d.ts +14 -0
- package/lib/modules/preset/controllers/PresetListener.js +140 -0
- package/lib/modules/preset/index.d.ts +5 -0
- package/lib/modules/preset/index.js +39 -0
- package/lib/modules/preset/repositories/PresetRepository.d.ts +16 -0
- package/lib/{repositories → modules/preset/repositories}/PresetRepository.js +9 -11
- package/lib/{services → modules/preset/services}/PresetService.d.ts +4 -12
- package/lib/{services → modules/preset/services}/PresetService.js +22 -27
- package/lib/modules/project/controllers/ProjectController.d.ts +13 -0
- package/lib/modules/project/controllers/ProjectController.js +127 -0
- package/lib/modules/project/index.d.ts +5 -0
- package/lib/modules/project/index.js +39 -0
- package/lib/modules/project/repositories/ProjectRepository.d.ts +13 -0
- package/lib/modules/project/repositories/ProjectRepository.js +90 -0
- package/lib/modules/project/services/ProjectService.d.ts +21 -0
- package/lib/modules/project/services/ProjectService.js +211 -0
- package/lib/{controllers → modules/proxy/controllers}/CertController.d.ts +2 -1
- package/lib/{controllers → modules/proxy/controllers}/CertController.js +4 -3
- package/lib/{controllers → modules/proxy/controllers}/ProxyController.d.ts +5 -4
- package/lib/{controllers → modules/proxy/controllers}/ProxyController.js +12 -11
- package/lib/modules/proxy/index.d.ts +5 -0
- package/lib/modules/proxy/index.js +41 -0
- package/lib/{services → modules/proxy/services}/CertService.d.ts +5 -6
- package/lib/{services → modules/proxy/services}/CertService.js +13 -14
- package/lib/{services → modules/proxy/services}/ProxyService.d.ts +4 -4
- package/lib/{services → modules/proxy/services}/ProxyService.js +27 -20
- package/lib/services/PluginService.d.ts +1 -3
- package/lib/services/PluginService.js +12 -18
- package/lib/utils/followProgress2.d.ts +1 -0
- package/lib/utils/followProgress2.js +63 -0
- package/lib/utils/index.d.ts +1 -2
- package/lib/utils/index.js +1 -2
- package/package.json +7 -8
- package/proto/buildkit.proto +55 -0
- package/proto/solver/pb/ops.proto +443 -0
- package/lib/AppModule.js +0 -84
- package/lib/controllers/PresetController.d.ts +0 -23
- package/lib/controllers/PresetController.js +0 -361
- package/lib/keystore/index.d.ts +0 -1
- package/lib/keystore/types/Encryption.d.ts +0 -9
- package/lib/keystore/types/Encryption.js +0 -81
- package/lib/keystore/types/Encryptor.d.ts +0 -10
- package/lib/keystore/types/Encryptor.js +0 -59
- package/lib/makes/FS.d.ts +0 -27
- package/lib/makes/FS.js +0 -284
- package/lib/makes/LineConvertStream.d.ts +0 -11
- package/lib/makes/LineConvertStream.js +0 -42
- package/lib/makes/Logger.d.ts +0 -9
- package/lib/makes/Logger.js +0 -34
- package/lib/plugins/MongodbPlugin.d.ts +0 -20
- package/lib/plugins/MongodbPlugin.js +0 -288
- package/lib/plugins/index.d.ts +0 -1
- package/lib/plugins/index.js +0 -17
- package/lib/repositories/PresetRepository.d.ts +0 -23
- package/lib/repositories/index.d.ts +0 -1
- package/lib/repositories/index.js +0 -17
- package/lib/services/AppConfigService.d.ts +0 -35
- package/lib/services/AppConfigService.js +0 -163
- package/lib/services/AppEventsService.d.ts +0 -9
- package/lib/services/AppEventsService.js +0 -43
- package/lib/services/LogService.d.ts +0 -15
- package/lib/services/LogService.js +0 -67
- package/lib/services/ProjectService.d.ts +0 -27
- package/lib/services/ProjectService.js +0 -207
- package/lib/services/index.d.ts +0 -10
- package/lib/services/index.js +0 -26
- package/lib/utils/followProgress.d.ts +0 -1
- package/lib/utils/followProgress.js +0 -73
- package/presets/go/Dockerfile +0 -19
- package/presets/go/config.json +0 -14
- package/presets/php-fpm/Dockerfile +0 -173
- package/presets/php-fpm/bin/compare-version +0 -3
- package/presets/php-fpm/config.json +0 -55
- package/presets/php-fpm/etc/nginx/sites-available/default.conf +0 -36
- /package/lib/{utils/format-size-units.d.ts → modules/docker/utils/formatSizeUnits.d.ts} +0 -0
- /package/lib/{utils/format-size-units.js → modules/docker/utils/formatSizeUnits.js} +0 -0
- /package/lib/{keystore → modules/keystore}/providers/KeytarKeystoreProvider.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/types/FileKeystore.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/types/FileKeystore.js +0 -0
- /package/lib/{keystore → modules/keystore}/types/Keytar.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/types/Keytar.js +0 -0
- /package/lib/{keystore → modules/keystore}/utils/createEncryptionKey.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/utils/createEncryptionKey.js +0 -0
- /package/lib/{keystore → modules/keystore}/utils/createPasswordHash.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/utils/createPasswordHash.js +0 -0
- /package/lib/{keystore → modules/keystore}/utils/decrypt.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/utils/decrypt.js +0 -0
- /package/lib/{keystore → modules/keystore}/utils/encrypt.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/utils/encrypt.js +0 -0
- /package/lib/{keystore → modules/keystore}/utils/index.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/utils/index.js +0 -0
- /package/lib/{keystore → modules/keystore}/utils/verifyPasswordHash.d.ts +0 -0
- /package/lib/{keystore → modules/keystore}/utils/verifyPasswordHash.js +0 -0
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.followProgress = void 0;
|
|
4
|
-
const LineConvertStream_1 = require("../makes/LineConvertStream");
|
|
5
|
-
const format_size_units_1 = require("./format-size-units");
|
|
6
|
-
const makes_1 = require("../makes");
|
|
7
|
-
const followProgress = async (stream) => {
|
|
8
|
-
const lineStream = new LineConvertStream_1.LineConvertStream(stream);
|
|
9
|
-
let line = 0;
|
|
10
|
-
const mapLines = {};
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
let isEnded = false;
|
|
13
|
-
const handleEnd = () => {
|
|
14
|
-
if (!isEnded) {
|
|
15
|
-
resolve(null);
|
|
16
|
-
}
|
|
17
|
-
isEnded = true;
|
|
18
|
-
};
|
|
19
|
-
lineStream.on("data", (chunk) => {
|
|
20
|
-
const data = JSON.parse(chunk.toString());
|
|
21
|
-
const { stream, id, status, progressDetail: { current, total } = {}, aux, error, errorDetail } = data;
|
|
22
|
-
if (stream) {
|
|
23
|
-
process.stdout.write(`${stream}`);
|
|
24
|
-
line += stream.split("\n").length - 1;
|
|
25
|
-
}
|
|
26
|
-
else if (id) {
|
|
27
|
-
if (typeof mapLines[id] === "undefined") {
|
|
28
|
-
mapLines[id] = line;
|
|
29
|
-
}
|
|
30
|
-
const targetLine = typeof mapLines[id] !== "undefined" ? mapLines[id] : line;
|
|
31
|
-
const dy = line - targetLine;
|
|
32
|
-
if (dy > 0) {
|
|
33
|
-
process.stdout.write("\x1b[s");
|
|
34
|
-
process.stdout.write(`\x1b[${dy}A`);
|
|
35
|
-
}
|
|
36
|
-
process.stdout.write("\x1b[2K");
|
|
37
|
-
let str = `${id}: ${status}\n`;
|
|
38
|
-
if (status === "Downloading") {
|
|
39
|
-
const width = process.stdout.columns;
|
|
40
|
-
const sizeWidth = 19, totalWidth = width - id.length - status.length - sizeWidth - 7, currentWidth = Math.floor(totalWidth * (current / total)), formatSize = `${(0, format_size_units_1.formatSizeUnits)(current)}/${(0, format_size_units_1.formatSizeUnits)(total)}`;
|
|
41
|
-
str = `${id}: ${status} [${"█".repeat(currentWidth)}${"░".repeat(totalWidth - currentWidth)}] ${formatSize}\n`;
|
|
42
|
-
}
|
|
43
|
-
process.stdout.write(str);
|
|
44
|
-
if (dy > 0) {
|
|
45
|
-
process.stdout.write("\x1b[u");
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
line++;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else if (status) {
|
|
52
|
-
process.stdout.write(`${status}\n`);
|
|
53
|
-
line += Math.ceil(status.length / process.stdout.columns);
|
|
54
|
-
}
|
|
55
|
-
else if (aux) {
|
|
56
|
-
const str = `auxID: ${aux.ID}`;
|
|
57
|
-
process.stdout.write(`${str}\n`);
|
|
58
|
-
line += Math.ceil(str.length / process.stdout.columns);
|
|
59
|
-
}
|
|
60
|
-
else if (error) {
|
|
61
|
-
reject(new Error(error));
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
makes_1.Logger.warn("followProgress: unexpected data", data);
|
|
65
|
-
reject(new Error(`(followProgress) unexpected data: ${JSON.stringify(data)}`));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
lineStream.on("end", handleEnd);
|
|
69
|
-
lineStream.on("close", handleEnd);
|
|
70
|
-
lineStream.on("error", reject);
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
exports.followProgress = followProgress;
|
package/presets/go/Dockerfile
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
FROM golang:latest
|
|
2
|
-
|
|
3
|
-
ENV GO_RUN "go run main.go"
|
|
4
|
-
|
|
5
|
-
WORKDIR /usr/app
|
|
6
|
-
|
|
7
|
-
# -----
|
|
8
|
-
RUN apt-get update
|
|
9
|
-
RUN apt-get install -y \
|
|
10
|
-
xvfb \
|
|
11
|
-
libfontconfig \
|
|
12
|
-
wkhtmltopdf
|
|
13
|
-
# -----
|
|
14
|
-
|
|
15
|
-
EXPOSE 80
|
|
16
|
-
|
|
17
|
-
CMD go mod download && \
|
|
18
|
-
# go get github.com/loov/watchrun && \
|
|
19
|
-
${GO_RUN}
|
package/presets/go/config.json
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
ARG PHP_VERSION
|
|
2
|
-
|
|
3
|
-
FROM php:${PHP_VERSION}-fpm
|
|
4
|
-
|
|
5
|
-
# WS Tools
|
|
6
|
-
ADD ./bin/compare-version /usr/local/bin/compare-version
|
|
7
|
-
RUN chmod +x /usr/local/bin/compare-version
|
|
8
|
-
|
|
9
|
-
RUN apt-get update --fix-missing -y && \
|
|
10
|
-
apt-get install -y curl git nginx && \
|
|
11
|
-
chown -R www-data:www-data /var/lib/nginx
|
|
12
|
-
|
|
13
|
-
# Http
|
|
14
|
-
ARG HTTP_ENABLE=false
|
|
15
|
-
RUN if [ "$HTTP_ENABLE" = "true" ]; then \
|
|
16
|
-
apt-get update && apt-get install -y \
|
|
17
|
-
libpcre3-dev \
|
|
18
|
-
libssl-dev \
|
|
19
|
-
libcurl4-openssl-dev \
|
|
20
|
-
libicu-dev \
|
|
21
|
-
g++ \
|
|
22
|
-
zlib1g-dev && \
|
|
23
|
-
docker-php-ext-install pcntl && \
|
|
24
|
-
pecl install raphf && docker-php-ext-enable raphf && \
|
|
25
|
-
pecl install pecl_http && docker-php-ext-enable http; \
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
# Mysqli
|
|
29
|
-
ARG MYSQLI_ENABLE=false
|
|
30
|
-
RUN if [ "$MYSQLI_ENABLE" = "true" ]; then \
|
|
31
|
-
docker-php-ext-install -j "$(nproc)" mysqli && \
|
|
32
|
-
docker-php-ext-enable mysqli; \
|
|
33
|
-
fi
|
|
34
|
-
|
|
35
|
-
# pdo
|
|
36
|
-
ARG PDO_MYSQL_ENABLE=false
|
|
37
|
-
RUN if [ "$PDO_MYSQL_ENABLE" = "true" ]; then \
|
|
38
|
-
docker-php-ext-install pdo pdo_mysql && \
|
|
39
|
-
docker-php-ext-enable pdo_mysql; \
|
|
40
|
-
fi
|
|
41
|
-
|
|
42
|
-
# pgsql
|
|
43
|
-
ARG PGSQL_ENABLE=false
|
|
44
|
-
RUN if [ "$PGSQL_ENABLE" = "true" ]; then \
|
|
45
|
-
apt-get install -y libpq-dev && \
|
|
46
|
-
docker-php-ext-install -j "$(nproc)" pgsql pdo_pgsql && \
|
|
47
|
-
docker-php-ext-enable pgsql pdo_pgsql; \
|
|
48
|
-
fi
|
|
49
|
-
|
|
50
|
-
#gd
|
|
51
|
-
ARG GD_ENABLE=false
|
|
52
|
-
RUN if [ "$GD_ENABLE" = "true" ]; then \
|
|
53
|
-
apt-get update && apt-get install -y \
|
|
54
|
-
libfreetype6-dev \
|
|
55
|
-
libjpeg62-turbo-dev \
|
|
56
|
-
libpng-dev && \
|
|
57
|
-
compare-version $PHP_VERSION "7.3" && \
|
|
58
|
-
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include || \
|
|
59
|
-
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
|
60
|
-
docker-php-ext-install -j$(nproc) gd && \
|
|
61
|
-
docker-php-ext-install exif; \
|
|
62
|
-
fi
|
|
63
|
-
|
|
64
|
-
# Zip
|
|
65
|
-
ARG ZIP_ENABLE=false
|
|
66
|
-
RUN if [ "$ZIP_ENABLE" = "true" ]; then \
|
|
67
|
-
apt-get install -y libzip-dev zip unzip && \
|
|
68
|
-
docker-php-ext-configure zip && \
|
|
69
|
-
docker-php-ext-install -j "$(nproc)" zip; \
|
|
70
|
-
fi
|
|
71
|
-
|
|
72
|
-
# memcache
|
|
73
|
-
ARG MEMCACHE_ENABLE=false
|
|
74
|
-
RUN if [ "$MEMCACHE_ENABLE" = "true" ]; then \
|
|
75
|
-
apt-get update && apt-get install -y \
|
|
76
|
-
zlib1g-dev \
|
|
77
|
-
libmemcached-dev && \
|
|
78
|
-
pecl install memcache && docker-php-ext-enable memcache; \
|
|
79
|
-
fi
|
|
80
|
-
|
|
81
|
-
# memcached
|
|
82
|
-
ARG MEMCACHED_ENABLE=false
|
|
83
|
-
RUN if [ "$MEMCACHED_ENABLE" = "true" ]; then \
|
|
84
|
-
apt-get update && apt-get install -y \
|
|
85
|
-
libcurl4-openssl-dev \
|
|
86
|
-
libssl-dev \
|
|
87
|
-
libmemcached-dev \
|
|
88
|
-
zlib1g-dev && \
|
|
89
|
-
pecl install memcached && docker-php-ext-enable memcached; \
|
|
90
|
-
fi
|
|
91
|
-
|
|
92
|
-
# Intl
|
|
93
|
-
ARG INTL_ENABLE=false
|
|
94
|
-
RUN if [ "$INTL_ENABLE" = "true" ]; then \
|
|
95
|
-
apt-get update && apt-get install -y \
|
|
96
|
-
libicu-dev && \
|
|
97
|
-
docker-php-ext-configure intl && \
|
|
98
|
-
docker-php-ext-install intl; \
|
|
99
|
-
fi
|
|
100
|
-
|
|
101
|
-
# Pcntl
|
|
102
|
-
ARG PCNTL_ENABLE=false
|
|
103
|
-
RUN if [ "$PCNTL_ENABLE" = "true" ]; then \
|
|
104
|
-
docker-php-ext-install pcntl && \
|
|
105
|
-
docker-php-ext-enable pcntl; \
|
|
106
|
-
fi
|
|
107
|
-
|
|
108
|
-
# Soap
|
|
109
|
-
ARG SOAP_ENABLE=false
|
|
110
|
-
RUN if [ "$SOAP_ENABLE" = "true" ]; then \
|
|
111
|
-
apt-get update && apt-get install -y \
|
|
112
|
-
libxml2-dev && \
|
|
113
|
-
docker-php-ext-install soap && \
|
|
114
|
-
docker-php-ext-enable soap; \
|
|
115
|
-
fi
|
|
116
|
-
|
|
117
|
-
# XDebug
|
|
118
|
-
ARG XDEBUG_ENABLE=false
|
|
119
|
-
RUN if [ "$XDEBUG_ENABLE" = "true" ]; then \
|
|
120
|
-
pecl install xdebug && \
|
|
121
|
-
docker-php-ext-enable xdebug; \
|
|
122
|
-
fi
|
|
123
|
-
|
|
124
|
-
# Gettext
|
|
125
|
-
ARG GETTEXT_ENABLE=false
|
|
126
|
-
RUN if [ "$GETTEXT_ENABLE" = "true" ]; then \
|
|
127
|
-
apt-get update && apt-get install -y gettext && \
|
|
128
|
-
docker-php-ext-install -j "$(nproc)" gettext && \
|
|
129
|
-
docker-php-ext-enable gettext; \
|
|
130
|
-
fi
|
|
131
|
-
|
|
132
|
-
# Bcmath
|
|
133
|
-
ARG BCMATH_ENABLE=false
|
|
134
|
-
RUN if [ "$BCMATH_ENABLE" = "true" ]; then \
|
|
135
|
-
docker-php-ext-install -j "$(nproc)" bcmath && \
|
|
136
|
-
docker-php-ext-enable bcmath; \
|
|
137
|
-
fi
|
|
138
|
-
|
|
139
|
-
# Sockets
|
|
140
|
-
ARG SOCKETS_ENABLE=false
|
|
141
|
-
RUN if [ "$SOCKETS_ENABLE" = "true" ]; then \
|
|
142
|
-
docker-php-ext-install sockets && \
|
|
143
|
-
docker-php-ext-enable sockets; \
|
|
144
|
-
fi
|
|
145
|
-
|
|
146
|
-
# Composer
|
|
147
|
-
ARG COMPOSER_ENABLE=false
|
|
148
|
-
|
|
149
|
-
SHELL ["/bin/bash", "-c"]
|
|
150
|
-
RUN if [ "$COMPOSER_ENABLE" = "true" ]; then \
|
|
151
|
-
apt-get update && \
|
|
152
|
-
apt-get install -y bash-completion; \
|
|
153
|
-
echo "source /etc/bash_completion" >> /home/$USER/.bashrc; \
|
|
154
|
-
mkdir -p /home/$USER/.composer; \
|
|
155
|
-
curl -sL https://getcomposer.org/installer | php && \
|
|
156
|
-
mv composer.phar /usr/local/bin/composer && \
|
|
157
|
-
chmod +x /usr/local/bin/composer; \
|
|
158
|
-
echo ". <(composer completion bash)" >> /home/$USER/.bashrc; \
|
|
159
|
-
fi
|
|
160
|
-
SHELL ["/bin/sh", "-c"]
|
|
161
|
-
|
|
162
|
-
ARG WORKDIR=/var/www
|
|
163
|
-
ARG NGINX_DOCUMENT_ROOT=/var/www
|
|
164
|
-
WORKDIR $WORKDIR
|
|
165
|
-
|
|
166
|
-
ADD etc/nginx/sites-available/default.conf /tmp/default.conf.txt
|
|
167
|
-
RUN envsubst '\${NGINX_DOCUMENT_ROOT}' < /tmp/default.conf.txt > /etc/nginx/sites-available/default
|
|
168
|
-
|
|
169
|
-
EXPOSE 80
|
|
170
|
-
EXPOSE 9000
|
|
171
|
-
|
|
172
|
-
#CMD ["nginx", "-g", "daemon off;"]
|
|
173
|
-
CMD service nginx start && php-fpm
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "php-fpm",
|
|
3
|
-
"dockerfile": "./Dockerfile",
|
|
4
|
-
"buildArgsOptions": {
|
|
5
|
-
"PHP_VERSION": {
|
|
6
|
-
"message": "PHP version",
|
|
7
|
-
"type": "select",
|
|
8
|
-
"hash": false,
|
|
9
|
-
"options": [
|
|
10
|
-
"8.0",
|
|
11
|
-
"8.1",
|
|
12
|
-
"8.2"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"EXTENSIONS": {
|
|
16
|
-
"type": "select",
|
|
17
|
-
"multiple": true,
|
|
18
|
-
"message": "Extensions",
|
|
19
|
-
"options": {
|
|
20
|
-
"MYSQLI_ENABLE": "Mysqli",
|
|
21
|
-
"PDO_MYSQL_ENABLE": "PDO",
|
|
22
|
-
"PGSQL_ENABLE": "Pgsql",
|
|
23
|
-
"GD_ENABLE": "GD",
|
|
24
|
-
"ZIP_ENABLE": "Zip",
|
|
25
|
-
"MEMCACHE_ENABLE": "Memcache",
|
|
26
|
-
"MEMCACHED_ENABLE": "Memcached",
|
|
27
|
-
"HTTP_ENABLE": "Raphf+Http",
|
|
28
|
-
"INTL_ENABLE": "Intl",
|
|
29
|
-
"PCNTL_ENABLE": "Pcntl",
|
|
30
|
-
"SOAP_ENABLE": "Soap",
|
|
31
|
-
"XDEBUG_ENABLE": "XDebug",
|
|
32
|
-
"GETTEXT_ENABLE": "GetText",
|
|
33
|
-
"BCMATH_ENABLE": "Bcmath",
|
|
34
|
-
"SOCKETS_ENABLE": "Sockets"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"COMPOSER_ENABLE": {
|
|
38
|
-
"message": "Install composer?",
|
|
39
|
-
"type": "boolean"
|
|
40
|
-
},
|
|
41
|
-
"WORKDIR": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"message": "Workdir",
|
|
44
|
-
"default": "/var/www"
|
|
45
|
-
},
|
|
46
|
-
"NGINX_DOCUMENT_ROOT": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"message": "Nginx document root",
|
|
49
|
-
"default": "/var/www"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"volumeOptions": [
|
|
53
|
-
"./:/var/www"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
server {
|
|
2
|
-
listen 80 default_server;
|
|
3
|
-
root ${NGINX_DOCUMENT_ROOT};
|
|
4
|
-
|
|
5
|
-
index index.php index.html index.htm;
|
|
6
|
-
|
|
7
|
-
server_name _;
|
|
8
|
-
|
|
9
|
-
if ($request_uri ~ "index\.(php|htm|html|asp|cfm|jsp)") {
|
|
10
|
-
rewrite ^(.*/).*$ $1 permanent;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
location / {
|
|
14
|
-
try_files $uri $uri/ @rew;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
location @rew {
|
|
18
|
-
rewrite ^(.*)$ /index.php last;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
location ~ \.php$ {
|
|
22
|
-
include fastcgi.conf;
|
|
23
|
-
include fastcgi_params;
|
|
24
|
-
fastcgi_read_timeout 30s;
|
|
25
|
-
try_files $uri /index.php;
|
|
26
|
-
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
27
|
-
fastcgi_pass 127.0.0.1:9000;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
# deny access to .htaccess files, if Apache's document root
|
|
31
|
-
# concurs with nginx's one
|
|
32
|
-
#
|
|
33
|
-
location ~ /\.(ht|env|git|ide)* {
|
|
34
|
-
return 404;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|