arui-scripts 13.3.0-feat-fast-docker-build.1 → 13.3.0-feat-fast-docker-build.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [13.3.0-feat-fast-docker-build.3](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v13.3.0-feat-fast-docker-build.2...v13.3.0-feat-fast-docker-build.3) (2022-12-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **docker-build-fast:** don't remove build directory ([0909182](https://git.moscow.alfaintra.net/ef/arui-scripts/commit/09091820f10fffc54702ae6572f6c9a716fe0784))
7
+
8
+ # [13.3.0-feat-fast-docker-build.2](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v13.3.0-feat-fast-docker-build.1...v13.3.0-feat-fast-docker-build.2) (2022-12-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * **docker-fast:** don't build anything inside of container ([8f255bd](https://git.moscow.alfaintra.net/ef/arui-scripts/commit/8f255bd8fb9818a8498bddee71ef83ce4a7ba11b))
14
+
1
15
  # [13.3.0-feat-fast-docker-build.1](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v13.2.1...v13.3.0-feat-fast-docker-build.1) (2022-12-05)
2
16
 
3
17
 
@@ -62,7 +62,6 @@ const imageFullName = `${dockerRegistry ? `${dockerRegistry}/` : ''}${imageName}
62
62
  fs_extra_1.default.writeFile(path_1.default.join(pathToTempDir, 'Dockerfile'), dockerfile, 'utf8'),
63
63
  fs_extra_1.default.writeFile(path_1.default.join(pathToTempDir, 'nginx.conf'), nginxConf, 'utf8'),
64
64
  fs_extra_1.default.writeFile(path_1.default.join(pathToTempDir, 'start.sh'), start_template_1.default, { encoding: 'utf8', mode: 0o555 }),
65
- fs_extra_1.default.remove(app_configs_1.default.buildPath),
66
65
  ]);
67
66
  console.timeEnd('Setting up time');
68
67
  console.time('Build docker image time');
@@ -11,23 +11,22 @@ ARG START_SH_LOCATION
11
11
  ARG NGINX_CONF_LOCATION
12
12
 
13
13
  WORKDIR /src
14
- ADD $START_SH_LOCATION /src/start.sh
15
- ADD $NGINX_CONF_LOCATION /src/nginx.conf
16
- ADD . /src
17
- RUN yarn install --no-progress --ignore-optional --frozen-lockfile --unsafe-perm && \\
18
- yarn build && \\
19
- yarn install --production --ignore-optional --frozen-lockfile --ignore-scripts --prefer-offline && \\
20
- yarn cache clean
21
-
22
- RUN chown -R nginx:nginx /src && chmod -R 755 /src && \
23
- mkdir -p /var/lib/nginx && \
24
- chown -R nginx:nginx /var/lib/nginx && \
25
- chown -R nginx:nginx /var/log/nginx && \
26
- chown -R nginx:nginx /etc/nginx/conf.d
14
+ RUN mkdir -p /var/lib/nginx && \
15
+ chown -R nginx:nginx /var/lib/nginx && \
16
+ chown -R nginx:nginx /var/log/nginx && \
17
+ chown -R nginx:nginx /etc/nginx/conf.d
27
18
 
28
19
  RUN touch /var/run/nginx.pid && \
29
20
  chown -R nginx:nginx /var/run/nginx.pid
30
21
 
22
+ ADD $START_SH_LOCATION /src/start.sh
23
+ ADD $NGINX_CONF_LOCATION /src/nginx.conf
24
+ ADD --chown=nginx:nginx yarn.lock /src/yarn.lock
25
+ ADD --chown=nginx:nginx package.json /src/package.json
26
+ RUN yarn install --production --ignore-optional --frozen-lockfile --ignore-scripts --prefer-offline && \\
27
+ yarn cache clean
28
+ ADD --chown=nginx:nginx . /src
29
+
31
30
  USER nginx
32
31
  `;
33
32
  exports.default = apply_overrides_1.default('Dockerfile-fast', dockerfileTemplate);
@@ -1332,12 +1332,12 @@
1332
1332
  "affectsGlobalScope": false
1333
1333
  },
1334
1334
  "../src/templates/dockerfile-fast.template.ts": {
1335
- "version": "b1d7be2c0c46a78c1d275908f7900d1dcdd1d796fef11ff0cf208a7bb285372c",
1335
+ "version": "8b5c10b7736147b912c1128fdd6de7cf4544de27e1dccfb9b47dfe35d512f46c",
1336
1336
  "signature": "0fffbf1a5f54522ff7b89592bab1cf72966d7bdc613d52b0087717fcfec14b29",
1337
1337
  "affectsGlobalScope": false
1338
1338
  },
1339
1339
  "../src/commands/docker-build-fast/index.ts": {
1340
- "version": "f4a693ea311275f3493c35ef55079adbec1c1c24162c7c7f2c8c42e1cf9b758e",
1340
+ "version": "e8fd26b7db7bf66a0eb3e42a9df0806e5b740c0ed748b888125df3833cb2c950",
1341
1341
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
1342
1342
  "affectsGlobalScope": false
1343
1343
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-scripts",
3
- "version": "13.3.0-feat-fast-docker-build.1",
3
+ "version": "13.3.0-feat-fast-docker-build.3",
4
4
  "main": "./build/index.js",
5
5
  "typings": "./build/index.d.ts",
6
6
  "license": "MPL-2.0",