Skip to content

Commit 64b35ef

Browse files
authored
Merge pull request #358 from youngtaekiim/demo25
init demo25
2 parents 016d315 + 2373a23 commit 64b35ef

36 files changed

+3439
-78
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build
22

33
on:
4-
schedule:
5-
- cron: '0 16 * * *'
64
workflow_dispatch:
75

86
permissions:

.github/workflows/ci-dispatcher.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CI Dispatcher
22

33
on:
4-
push:
5-
branches: [ "main", "release", "debug" ]
6-
pull_request:
7-
branches: [ "refactoring","main", "release", "debug" ]
84
workflow_dispatch:
95

106
jobs:

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ install:
6262
-mkdir -p /etc/containers/systemd/piccolo/
6363
-mkdir -p /etc/containers/systemd/piccolo/etcd-data/
6464
-cp -r ./src/settings.yaml /etc/containers/systemd/piccolo/
65+
-cp -r ./doc/scripts/version.txt /etc/containers/systemd/piccolo/
6566
-cp -r ./containers/piccolo-*.* /etc/containers/systemd/piccolo/
6667
-cp -r ./scripts/update_server_ip.sh /etc/containers/systemd/piccolo/
6768

@@ -73,6 +74,7 @@ install:
7374
uninstall:
7475
-systemctl stop piccolo-player
7576
-systemctl stop piccolo-server
77+
-systemctl stop nodeagent
7678
systemctl daemon-reload
7779
-rm -rf /etc/piccolo/yaml
7880
-rm -rf /etc/containers/systemd/*

containers/piccolo-player.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ spec:
1313
hostPid: true
1414
containers:
1515
- name: filtergateway
16-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
16+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
1717
command: ["/piccolo/filtergateway"]
1818
volumeMounts:
1919
- name: piccolo-yaml
2020
mountPath: /root/piccolo_yaml
2121
- name: config-path
2222
mountPath: /etc/piccolo/settings.yaml
2323
- name: actioncontroller
24-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
24+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
2525
command: ["/piccolo/actioncontroller"]
2626
volumeMounts:
2727
- name: piccolo-yaml
@@ -33,7 +33,7 @@ spec:
3333
- name: config-path
3434
mountPath: /etc/piccolo/settings.yaml
3535
- name: statemanager
36-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
36+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
3737
command: ["/piccolo/statemanager"]
3838
volumeMounts:
3939
- name: piccolo-yaml

containers/piccolo-server.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
hostPid: true
1414
containers:
1515
- name: etcd
16-
image: gcr.io/etcd-development/etcd:v3.5.11
16+
image: gcr.io/etcd-development/etcd:v3.5.24
1717
command: ["/usr/local/bin/etcd"]
1818
args:
1919
- "--data-dir=/etcd-data"
@@ -23,27 +23,27 @@ spec:
2323
- name: etcd-data
2424
mountPath: /etcd-data
2525
- name: apiserver
26-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
26+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
2727
command: ["/piccolo/apiserver"]
2828
volumeMounts:
2929
- name: piccolo-yaml
3030
mountPath: /etc/piccolo/yaml
3131
- name: config-path
3232
mountPath: /etc/piccolo/settings.yaml
3333
- name: policymanager
34-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
34+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
3535
command: ["/piccolo/policymanager"]
3636
- name: monitoringserver
37-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
37+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
3838
command: ["/piccolo/monitoringserver"]
3939
volumeMounts:
4040
- name: piccolo-yaml
4141
mountPath: /etc/piccolo/yaml
4242
- name: config-path
4343
mountPath: /etc/piccolo/settings.yaml
4444
- name: settingsservice
45-
image: ghcr.io/eclipse-pullpiri/pullpiri:latest
46-
command: ["/piccolo/settingsservice", "--bind-address=0.0.0.0", "--bind-port=8080", "--log-level=info"]
45+
image: ghcr.io/eclipse-pullpiri/pullpiri:$(VERSION)
46+
command: ["/piccolo/settingsservice", "--bind-address=$(HOST_IP)", "--bind-port=8080", "--log-level=debug"]
4747
volumeMounts:
4848
- name: piccolo-yaml
4949
mountPath: /etc/piccolo/yaml

doc/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ You can see container list via `podman ps`. (infra container is omitted.)
110110
```Text
111111
[root@master pullpiri]# podman ps
112112
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
113-
fd03b211e2ac gcr.io/etcd-development/etcd:v3.5.11 --data-dir=/etcd-... 32 seconds ago Up 32 seconds 2379-2380/tcp piccolo-server-etcd
113+
fd03b211e2ac gcr.io/etcd-development/etcd:v3.5.24 --data-dir=/etcd-... 32 seconds ago Up 32 seconds 2379-2380/tcp piccolo-server-etcd
114114
c6fbbb6feca5 localhost/pullpiri-server:latest 32 seconds ago Up 31 seconds piccolo-server-apiserver
115115
341edada2c33 localhost/pullpiri-agent:latest 31 seconds ago Up 31 seconds piccolo-agent-nodeagent
116116
eee2153bb581 localhost/pullpiri-player:latest 31 seconds ago Up 30 seconds piccolo-player-filtergateway

doc/scripts/download_etcdctl.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
wget https://github.com/etcd-io/etcd/releases/download/v3.5.24/etcd-v3.5.24-linux-amd64.tar.gz
2+
wget https://github.com/etcd-io/etcd/releases/download/v3.5.24/etcd-v3.5.24-linux-arm64.tar.gz
3+
4+
tar -xvf etcd-v3.5.24-linux-amd64.tar.gz
5+
tar -xvf etcd-v3.5.24-linux-arm64.tar.gz
6+
7+
cp etcd-v3.5.24-linux-amd64/etcdctl ./etcdctl-amd64
8+
cp etcd-v3.5.24-linux-arm64/etcdctl ./etcdctl-arm64
9+
10+
rm -rf etcd-*

doc/scripts/install_nodeagent.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if [ "$(id -u)" -ne 0 ]; then
1212
fi
1313

1414
# Initialize variables
15-
MASTER_IP=""
16-
NODE_IP=""
15+
MASTER_IP="172.31.26.216"
16+
NODE_IP="172.31.26.216"
1717
NODE_NAME=$(hostname) # Always use system hostname
1818
NODE_ROLE="bluechi" # Default node role (master, nodeagent, bluechi)
1919
NODE_TYPE="vehicle" # Default node type (vehicle, cloud)
@@ -163,8 +163,10 @@ install_required_packages() {
163163
# MASTER_IP and NODE_IP are set from command line arguments
164164
GRPC_PORT="47004"
165165
#DOWNLOAD_URL="https://github.com/piccolo-framework/piccolo/releases/download/latest"
166-
DOWNLOAD_URL="https://github.com/eclipse-pullpiri/pullpiri/releases/latest/download"
167166
#DOWNLOAD_URL="https://raw.githubusercontent.com/eclipse-pullpiri/pullpiri/main/examples/binarys"
167+
VERSION_TXT="./version.txt"
168+
VERSION=$(cat "$VERSION_TXT")
169+
DOWNLOAD_URL="https://github.com/eclipse-pullpiri/pullpiri/releases/download/${VERSION}"
168170
CHECKSUM_URL="${DOWNLOAD_URL}" # Define CHECKSUM_URL
169171
INSTALL_DIR="/opt/piccolo"
170172
CONFIG_DIR="/etc/piccolo"
@@ -247,11 +249,11 @@ chmod +x ${INSTALL_DIR}/${BINARY_NAME}
247249
echo "Downloading system check script..."
248250
SCRIPT_DOWNLOAD_SUCCESS=false
249251
if command -v curl &> /dev/null; then
250-
if curl -L "${DOWNLOAD_URL}/scripts/node_ready_check.sh" -o /usr/local/bin/node_ready_check.sh --fail; then
252+
if curl -L "${DOWNLOAD_URL}/node_ready_check.sh" -o /usr/local/bin/node_ready_check.sh --fail; then
251253
SCRIPT_DOWNLOAD_SUCCESS=true
252254
fi
253255
elif command -v wget &> /dev/null; then
254-
if wget "${DOWNLOAD_URL}/scripts/node_ready_check.sh" -O /usr/local/bin/node_ready_check.sh; then
256+
if wget "${DOWNLOAD_URL}/node_ready_check.sh" -O /usr/local/bin/node_ready_check.sh; then
255257
SCRIPT_DOWNLOAD_SUCCESS=true
256258
fi
257259
fi

doc/scripts/node_ready_check.sh

100644100755
File mode changed.

doc/scripts/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v10.27.0-demo

0 commit comments

Comments
 (0)