Skip to content

Commit 31fdb24

Browse files
author
underpost.net
committed
ci(package-pwa-microservices-template-ghpkg): ⚙️ Update github repo package
1 parent 8037135 commit 31fdb24

File tree

8 files changed

+32
-37
lines changed

8 files changed

+32
-37
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Run dev client server
6868
npm run dev
6969
```
7070
<!-- -->
71-
## underpost ci/cd cli v2.8.812
71+
## underpost ci/cd cli v2.8.813
7272

7373
### Usage: `underpost [options] [command]`
7474
```

bin/deploy.js

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const updateVirtualRoot = async ({ IP_ADDRESS, architecture, host, nfsHostPath,
6666

6767
`ln -fs /usr/share/zoneinfo/${timezone} /etc/localtime`,
6868

69-
`DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata`,
69+
`DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata ntpdate`,
7070
`dpkg-reconfigure --frontend noninteractive tzdata`,
7171
];
7272
const keyboardSteps = [
@@ -78,36 +78,21 @@ const updateVirtualRoot = async ({ IP_ADDRESS, architecture, host, nfsHostPath,
7878
];
7979
// # - ${JSON.stringify([...timeZoneSteps, ...chronySetUp(chronyConfPath)])}
8080
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
8683
deb http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse
8784
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`,
9986

10087
`apt update -qq`,
88+
`apt -y full-upgrade`,
10189
`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`,
10993

11094
// Create root user
95+
`systemctl enable ssh`,
11196
`useradd -m -s /bin/bash -G sudo root`,
11297
`echo 'root:root' | chpasswd`,
11398
`mkdir -p /home/root/.ssh`,
@@ -191,12 +176,12 @@ network:
191176
version: 2
192177
ethernets:
193178
${process.env.RPI4_INTERFACE_NAME}:
194-
dhcp4: false
179+
dhcp4: true
195180
addresses:
196181
- ${ipaddr}/24
197-
routes:
198-
- to: default
199-
via: ${gatewayip}
182+
# routes:
183+
# - to: default
184+
# via: ${gatewayip}
200185
201186
# chpasswd:
202187
# expire: false
@@ -264,6 +249,16 @@ echo 'nameserver 8.8.8.8' > /run/systemd/resolve/stub-resolv.conf
264249
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf`,
265250
'utf8',
266251
);
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+
]);
267262
}
268263
};
269264

cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## underpost ci/cd cli v2.8.812
1+
## underpost ci/cd cli v2.8.813
22

33
### Usage: `underpost [options] [command]`
44
```

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
cpus: '0.25'
5959
memory: 20M
6060
labels: # labels in Compose file instead of Dockerfile
61-
engine.version: '2.8.812'
61+
engine.version: '2.8.813'
6262
networks:
6363
- load-balancer
6464

manifests/deployment/dd-template-development/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
containers:
1919
- name: dd-template-development-blue
20-
image: localhost/rockylinux9-underpost:v2.8.812
20+
image: localhost/rockylinux9-underpost:v2.8.813
2121
# resources:
2222
# requests:
2323
# memory: "124Ki"
@@ -100,7 +100,7 @@ spec:
100100
spec:
101101
containers:
102102
- name: dd-template-development-green
103-
image: localhost/rockylinux9-underpost:v2.8.812
103+
image: localhost/rockylinux9-underpost:v2.8.813
104104
# resources:
105105
# requests:
106106
# memory: "124Ki"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"main": "src/index.js",
44
"name": "@underpostnet/underpost",
5-
"version": "2.8.812",
5+
"version": "2.8.813",
66
"description": "pwa api rest template",
77
"scripts": {
88
"start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Underpost {
3232
* @type {String}
3333
* @memberof Underpost
3434
*/
35-
static version = 'v2.8.812';
35+
static version = 'v2.8.813';
3636
/**
3737
* Repository cli API
3838
* @static

0 commit comments

Comments
 (0)