Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e5c7e4c
docker pruning manager fixed, container dep fixed
emirhandurmus Mar 6, 2025
1ece80d
docker final image deb fixed
emirhandurmus Mar 6, 2025
ca7edde
cappadd and drop added to hostconfig
emirhandurmus Apr 9, 2025
debc8be
static token auth replaced with jwt signed by privatekey, updated on …
emirhandurmus Apr 22, 2025
2c6372d
router mtls cap added, new controller cert command added,
emirhandurmus May 16, 2025
8e151e2
edge guard embbed to agent config, gps device and message format hand…
emirhandurmus Jun 3, 2025
082fd42
new node debugger image, microservice exec session connectivity to co…
emirhandurmus Jun 19, 2025
671d04e
trust manager updated for router mtls and wss exec session, gps devic…
emirhandurmus Jul 3, 2025
95c9efb
test classes updated
emirhandurmus Jul 3, 2025
5aa4dd5
test class fixed
emirhandurmus Jul 3, 2025
50d3763
vm test class fixed
emirhandurmus Jul 3, 2025
e6835c7
test class error cleaning
emirhandurmus Jul 3, 2025
af0004d
test error fixed
emirhandurmus Jul 3, 2025
a047c09
missing import added to vm-test class
emirhandurmus Jul 3, 2025
68fa653
test updated
emirhandurmus Jul 3, 2025
0aa1616
final fix on test classes
emirhandurmus Jul 3, 2025
52c1017
deb rpm package creation fixed in ci yaml
emirhandurmus Jul 3, 2025
f013ffa
release packages updated on ci
emirhandurmus Jul 3, 2025
3ab9cd0
introducing new gps module for properly handle gps device and configs…
emirhandurmus Jul 6, 2025
ac4a112
SupervisorStatus test class fixed
emirhandurmus Jul 6, 2025
89cca3b
gps fallback to auto mode status update fixed
emirhandurmus Jul 7, 2025
59b8e68
docker api updated for microservice annotation support
emirhandurmus Jul 9, 2025
1fabbe9
resolveVolumeMountPath null checking added, gps duplicated scheduler …
emirhandurmus Jul 10, 2025
e7a886d
rpm build fixed in ci
emirhandurmus Jul 10, 2025
a97684b
microservice memoryLimit, cpuSetCpus, Healthcheck configuration added…
emirhandurmus Jul 12, 2025
1a82a30
remove script and systemd file updated
emirhandurmus Jul 12, 2025
a2d738a
GpsApiHandler updated for not to push unnecessary updates to all modu…
emirhandurmus Jul 23, 2025
8c84f4a
GpsApiHandler unit test fixed
emirhandurmus Jul 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
env:
PROJECT: 'datasance-pot'
IMAGE_NAME: 'agent'
DEBUGGER_IMAGE_NAME: 'node-debugger'
POTCTL_VERSION: '1.3.4'
CONTROLLER_IMAGE: 'ghcr.io/datasance/controller:latest'

Expand Down Expand Up @@ -96,6 +97,19 @@ jobs:
ghcr.io/datasance/${{ env.IMAGE_NAME }}:latest
ghcr.io/datasance/${{ env.IMAGE_NAME }}:main

- name: Build and Push Debugger to ghcr

uses: docker/build-push-action@v3
id: build_push_ghcr_debugger
with:
file: Dockerfile-debugger
platforms: linux/amd64, linux/arm64
push: true
tags: |
ghcr.io/datasance/${{ env.DEBUGGER_IMAGE_NAME }}:${{ steps.tags.outputs.VERSION }}
ghcr.io/datasance/${{ env.DEBUGGER_IMAGE_NAME }}:latest
ghcr.io/datasance/${{ env.DEBUGGER_IMAGE_NAME }}:main

- name: Set up Ruby 3.1.4
uses: ruby/setup-ruby@v1
with:
Expand All @@ -122,18 +136,37 @@ jobs:
id: create_deb_package
run: |
cd packaging/iofog-agent
fpm -s dir -d 'openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk' -d docker-ce -t deb -n iofog-agent -v ${{ steps.pkg_version.outputs.version }} -a all --deb-no-default-config-files --after-install debian.sh --after-remove remove.sh --before-upgrade upgrade.sh --after-upgrade debian.sh etc usr
fpm -s dir -d 'openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk' -d 'docker-ce | podman' -t deb -n iofog-agent -v ${{ steps.pkg_version.outputs.version }} -a all --deb-no-default-config-files --after-install debian.sh --after-remove remove.sh --before-upgrade upgrade.sh --after-upgrade debian.sh etc usr
echo "pkg created"
ls
- name: Create rpm package

# - name: Create deb package for podman
# shell: bash
# id: create_deb_package_podman
# run: |
# cd packaging/iofog-agent
# fpm -s dir -d 'openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk' -d 'podman' -t deb -n iofog-agent-podman -v ${{ steps.pkg_version.outputs.version }} -a all --deb-no-default-config-files --after-install debian.sh --after-remove remove.sh --before-upgrade upgrade.sh --after-upgrade debian.sh etc usr
# echo "pkg created"
# ls

- name: Create rpm package
shell: bash
id: create_rpm_package
run: |
cd packaging/iofog-agent
fpm -s dir --depends java-17-openjdk -d docker-ce -t rpm -n iofog-agent -v ${{ steps.pkg_version.outputs.version }} -a all --rpm-os 'linux' --after-install rpm.sh --after-remove remove.sh --before-upgrade upgrade.sh --after-upgrade rpm.sh etc usr;
fpm -s dir --depends java-17-openjdk -t rpm -n iofog-agent -v ${{ steps.pkg_version.outputs.version }} -a all --rpm-os 'linux' --after-install rpm.sh --after-remove remove.sh --before-upgrade upgrade.sh --after-upgrade rpm.sh etc usr;
echo "pkg created"
ls

# - name: Create rpm package for podman
# shell: bash
# id: create_rpm_package_podman
# run: |
# cd packaging/iofog-agent
# fpm -s dir --depends java-17-openjdk -d 'podman' -t rpm -n iofog-agent-podman -v ${{ steps.pkg_version.outputs.version }} -a all --rpm-os 'linux' --after-install rpm.sh --after-remove remove.sh --before-upgrade upgrade.sh --after-upgrade rpm.sh etc usr;
# echo "pkg created"
# ls

- uses: bluwy/substitute-string-action@v1
id: sub
with:
Expand All @@ -147,7 +180,9 @@ jobs:
with:
files: |
packaging/iofog-agent/iofog-agent_${{ steps.pkg_version.outputs.version }}_all.deb
packaging/iofog-agent/iofog-agent-podman_${{ steps.pkg_version.outputs.version }}_all.deb
packaging/iofog-agent/iofog-agent-${{ steps.pkg_version.outputs.version }}-1.noarch.rpm
packaging/iofog-agent/iofog-agent-podman-${{ steps.pkg_version.outputs.version }}-1.noarch.rpm

- uses: actions/checkout@v3
with:
Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ RUN cat iofog-agent.txt iofog-agentd.txt iofog-agentvc.txt | \
# Create a custom Java runtime
RUN $JAVA_HOME/bin/jlink \
--add-modules $(cat modules.txt) \
--add-modules jdk.crypto.ec \
--strip-debug \
--no-man-pages \
--no-header-files \
Expand All @@ -95,8 +96,8 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal:latest AS ubi-dep
# Install necessary dependencies
RUN true && \
microdnf install -y ca-certificates shadow-utils gzip procps-ng && \
microdnf reinstall -y tzdata && \
microdnf clean all && \
microdnf install -y tzdata && microdnf reinstall -y tzdata\
microdnf clean all && \
rm -rf /var/cache/* && \
true

Expand All @@ -116,6 +117,7 @@ COPY --from=ubi-dep /usr/bin/gzip /usr/bin/
COPY --from=ubi-dep /usr/bin/pgrep /usr/bin/
COPY --from=ubi-dep /usr/bin/awk /usr/bin/
COPY --from=ubi-dep /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/
COPY --from=ubi-dep /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/

# Copy required shared libraries for curl grep awk
COPY --from=ubi-dep /usr/lib64/libc.so.6 /usr/lib64/
Expand Down Expand Up @@ -168,7 +170,7 @@ ENV PATH="${JAVA_HOME}/bin:${PATH}"
COPY --from=jre-build /javaruntime $JAVA_HOME

COPY --from=builder packaging/iofog-agent/usr ./usr
COPY --from=builder packaging/iofog-agent/etc/init.d /etc/init.d/
COPY --from=builder packaging/iofog-agent/etc/systemd/system/iofog-agent.service /etc/systemd/system/iofog-agent.service
COPY --from=builder packaging/iofog-agent/etc/bash_completion.d /etc/bash_completion.d/
COPY --from=builder packaging/iofog-agent/etc/iofog-agent /etc/iofog-agent/

Expand All @@ -195,7 +197,7 @@ RUN true && \
chmod 774 -R /var/run/iofog-agent && \
chmod 774 -R /var/backups/iofog-agent && \
chmod 754 -R /usr/share/iofog-agent && \
chmod 774 /etc/init.d/iofog-agent && \
chmod 774 /etc/systemd/system/iofog-agent.service && \
chmod 754 /usr/bin/iofog-agent && \
chown :iofog-agent /usr/bin/iofog-agent && \
true
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile-debugger
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.19

RUN apk add --no-cache util-linux

CMD ["/bin/sh", "-c", "nsenter --target 1 --mount --uts --ipc --net -- sleep 14000"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ Go to [iofog.org](https://iofog.org/docs/) to learn how to deploy the ioFog Cont

 - ioFog Agent Update:

sudo service iofog-agent stop
sudo systemctl stop iofog-agent
sudo apt-get install --only-upgrade iofog-agent
sudo service iofog-agent start
sudo systemctl start iofog-agent
or
sudo service iofog-agent stop
sudo systemctl stop iofog-agent
sudo apt-get install --only-upgrade iofog-agent-dev (developer's version)
sudo service iofog-agent stop
sudo systemctl stop iofog-agent

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
id 'com.gradleup.shadow' version '8.3.0' apply false
id 'java'
}

allprojects {
group = 'org.eclipse'
version = '3.3.2'
version = '3.5.1'
}

subprojects {
Expand Down
2 changes: 1 addition & 1 deletion iofog-agent-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.github.johnrengelman.shadow" version '8.1.1'
id 'com.gradleup.shadow' version '8.3.0'
}

description = 'iofog-agent-client'
Expand Down
Loading
Loading