@fishawack/lab-env 4.33.2 → 4.34.0

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,5 +1,14 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.34.0 (2024-08-21)
4
+ * [Feature] enable pipelines by default when running new command
5
+ * [Bug] limit elasticsearch memory size so it doesnt attempt to take up all the space
6
+ * [Bug] point to new archivel ocation for auto ssl scripts
7
+ * [Bug] remove art alias
8
+
9
+ ### 4.33.3 (2024-07-23)
10
+ * [Bug] set node container to always restart
11
+
3
12
  ### 4.33.2 (2024-07-16)
4
13
  * [Change] Bumped fishawack/lab-env-core-1 to 1.4.1
5
14
  * [Bug] use new ENV syntax
@@ -26,6 +26,7 @@ services:
26
26
  node:
27
27
  image: node:20.6
28
28
  working_dir: /app
29
+ restart: always
29
30
  networks:
30
31
  - default
31
32
  volumes:
package/commands/ace.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const _ = require('../globals.js');
2
2
 
3
3
  module.exports = [
4
- ['ace [command...]', 'art'],
4
+ ['ace [command...]'],
5
5
  'run ace command',
6
6
  yargs => {
7
7
  yargs.positional('command', {
@@ -40,6 +40,8 @@ module.exports = [
40
40
  if(!await bitbucket.exists(name)){
41
41
  if(await bitbucket.exists(template.name)){
42
42
  await bitbucket.fork(name, template);
43
+
44
+ await bitbucket.enablePipelines(name);
43
45
 
44
46
  execSync(`echo "git clone ${vars.urls.bitbucketSSH}/${name}" | pbcopy`);
45
47
 
@@ -89,4 +89,21 @@ module.exports.fork = async (slug, template) => {
89
89
 
90
90
  return false;
91
91
  }
92
+ };
93
+
94
+ module.exports.enablePipelines = async (slug, config) => {
95
+ let spinner = new Spinner(`Enabling pipelines for ${slug}`);
96
+
97
+ try {
98
+ await api(headers.bbHeaders).put(`${apis.bbWorkspaceAPI}/${slug}/pipelines_config`, {
99
+ enabled: true
100
+ });
101
+
102
+ spinner.update(`Pipelines enabled for ${slug}`);
103
+
104
+ return true;
105
+ } catch (error) {
106
+ console.log(error.message);
107
+ spinner.update(`Failed to enable pipelines for ${slug}.`, 'fail');
108
+ }
92
109
  };
@@ -21,9 +21,9 @@ commands:
21
21
 
22
22
  container_commands:
23
23
  10_downloadepel:
24
- command: "wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/"
24
+ command: "wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/"
25
25
  20_installepel:
26
- command: "rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm --force"
26
+ command: "rpm -Uvh dl.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-*.rpm --force"
27
27
  30_enableepl:
28
28
  command: "yum-config-manager --enable epel*"
29
29
  40_installcertbot:
@@ -21,9 +21,9 @@ commands:
21
21
 
22
22
  container_commands:
23
23
  10_downloadepel:
24
- command: "wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/"
24
+ command: "wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/"
25
25
  20_installepel:
26
- command: "rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm --force"
26
+ command: "rpm -Uvh dl.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-*.rpm --force"
27
27
  30_enableepl:
28
28
  command: "yum-config-manager --enable epel*"
29
29
  40_installcertbot:
@@ -56,6 +56,7 @@ services:
56
56
  - "${PORT_ES:-9200}:9200"
57
57
  volumes:
58
58
  - elasticsearch:/usr/share/elasticsearch/data
59
+ mem_limit: 2G
59
60
  networks:
60
61
  default:
61
62
  driver: "bridge"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "4.33.2",
3
+ "version": "4.34.0",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {