@underpostnet/underpost 2.8.812 → 2.8.813

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/README.md CHANGED
@@ -68,7 +68,7 @@ Run dev client server
68
68
  npm run dev
69
69
  ```
70
70
  <!-- -->
71
- ## underpost ci/cd cli v2.8.812
71
+ ## underpost ci/cd cli v2.8.813
72
72
 
73
73
  ### Usage: `underpost [options] [command]`
74
74
  ```
package/bin/deploy.js CHANGED
@@ -66,7 +66,7 @@ const updateVirtualRoot = async ({ IP_ADDRESS, architecture, host, nfsHostPath,
66
66
 
67
67
  `ln -fs /usr/share/zoneinfo/${timezone} /etc/localtime`,
68
68
 
69
- `DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata`,
69
+ `DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata ntpdate`,
70
70
  `dpkg-reconfigure --frontend noninteractive tzdata`,
71
71
  ];
72
72
  const keyboardSteps = [
@@ -78,36 +78,21 @@ const updateVirtualRoot = async ({ IP_ADDRESS, architecture, host, nfsHostPath,
78
78
  ];
79
79
  // # - ${JSON.stringify([...timeZoneSteps, ...chronySetUp(chronyConfPath)])}
80
80
  const installSteps = [
81
- `apt update`,
82
- `apt install -y cloud-init systemd-sysv openssh-server sudo locales udev util-linux systemd-sysv iproute2 netplan.io ca-certificates curl wget chrony ntpdate keyboard-configuration`,
83
- `ln -sf /lib/systemd/systemd /sbin/init`,
84
-
85
- `echo 'deb http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse
81
+ `cat <<EOF | sudo tee /etc/apt/sources.list
82
+ deb http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse
86
83
  deb http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse
87
84
  deb http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse
88
-
89
- # Uncomment the following lines if you also need source packages (for building from source)
90
- # deb-src http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse
91
- # deb-src http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse
92
- # deb-src http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse
93
- ' > /etc/apt/sources.list`,
94
- `apt update`,
95
- `apt -y full-upgrade`,
96
- // `apt install -y cloud-init=25.1.2-0ubuntu0~24.04.1`,
97
-
98
- `systemctl enable ssh`,
85
+ EOF`,
99
86
 
100
87
  `apt update -qq`,
88
+ `apt -y full-upgrade`,
101
89
  `apt install -y xinput x11-xkb-utils usbutils`,
102
-
103
- // `date -s "${shellExec(`date '+%Y-%m-%d %H:%M:%S'`, { stdout: true }).trim()}"`,
104
- // `date`,
105
-
106
- ...timeZoneSteps,
107
- ...chronySetUp(chronyConfPath),
108
- ...keyboardSteps,
90
+ // `apt install -y cloud-init=25.1.2-0ubuntu0~24.04.1`,
91
+ `apt install -y cloud-init systemd-sysv openssh-server sudo locales udev util-linux systemd-sysv iproute2 netplan.io ca-certificates curl wget chrony keyboard-configuration`,
92
+ `ln -sf /lib/systemd/systemd /sbin/init`,
109
93
 
110
94
  // Create root user
95
+ `systemctl enable ssh`,
111
96
  `useradd -m -s /bin/bash -G sudo root`,
112
97
  `echo 'root:root' | chpasswd`,
113
98
  `mkdir -p /home/root/.ssh`,
@@ -191,12 +176,12 @@ network:
191
176
  version: 2
192
177
  ethernets:
193
178
  ${process.env.RPI4_INTERFACE_NAME}:
194
- dhcp4: false
179
+ dhcp4: true
195
180
  addresses:
196
181
  - ${ipaddr}/24
197
- routes:
198
- - to: default
199
- via: ${gatewayip}
182
+ # routes:
183
+ # - to: default
184
+ # via: ${gatewayip}
200
185
 
201
186
  # chpasswd:
202
187
  # expire: false
@@ -264,6 +249,16 @@ echo 'nameserver 8.8.8.8' > /run/systemd/resolve/stub-resolv.conf
264
249
  ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf`,
265
250
  'utf8',
266
251
  );
252
+
253
+ await timer(5000);
254
+
255
+ runSteps([
256
+ // `date -s "${shellExec(`date '+%Y-%m-%d %H:%M:%S'`, { stdout: true }).trim()}"`,
257
+ // `date`,
258
+ ...timeZoneSteps,
259
+ ...chronySetUp(chronyConfPath),
260
+ ...keyboardSteps,
261
+ ]);
267
262
  }
268
263
  };
269
264
 
package/cli.md CHANGED
@@ -1,4 +1,4 @@
1
- ## underpost ci/cd cli v2.8.812
1
+ ## underpost ci/cd cli v2.8.813
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
4
  ```
@@ -58,7 +58,7 @@ services:
58
58
  cpus: '0.25'
59
59
  memory: 20M
60
60
  labels: # labels in Compose file instead of Dockerfile
61
- engine.version: '2.8.812'
61
+ engine.version: '2.8.813'
62
62
  networks:
63
63
  - load-balancer
64
64
 
@@ -17,7 +17,7 @@ spec:
17
17
  spec:
18
18
  containers:
19
19
  - name: dd-template-development-blue
20
- image: localhost/rockylinux9-underpost:v2.8.812
20
+ image: localhost/rockylinux9-underpost:v2.8.813
21
21
  # resources:
22
22
  # requests:
23
23
  # memory: "124Ki"
@@ -100,7 +100,7 @@ spec:
100
100
  spec:
101
101
  containers:
102
102
  - name: dd-template-development-green
103
- image: localhost/rockylinux9-underpost:v2.8.812
103
+ image: localhost/rockylinux9-underpost:v2.8.813
104
104
  # resources:
105
105
  # requests:
106
106
  # memory: "124Ki"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "main": "src/index.js",
4
4
  "name": "@underpostnet/underpost",
5
- "version": "2.8.812",
5
+ "version": "2.8.813",
6
6
  "description": "pwa api rest template",
7
7
  "scripts": {
8
8
  "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
package/src/index.js CHANGED
@@ -32,7 +32,7 @@ class Underpost {
32
32
  * @type {String}
33
33
  * @memberof Underpost
34
34
  */
35
- static version = 'v2.8.812';
35
+ static version = 'v2.8.813';
36
36
  /**
37
37
  * Repository cli API
38
38
  * @static