Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Datasance improvements #405

Open
wants to merge 120 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
8089d51
Initial commit
emirhandurmus Jun 14, 2023
9913c8d
clone iofog Agent 3.0.1
emirhandurmus Jun 14, 2023
b41702f
Create ci.yml
emirhandurmus Aug 11, 2023
331f20c
workflow
emirhandurmus Aug 11, 2023
707f39a
commit
emirhandurmus Aug 11, 2023
a938b43
workflow
emirhandurmus Aug 11, 2023
2a14edc
Merge branch 'main' of https://github.com/Datasance/Agent
emirhandurmus Aug 11, 2023
571c925
Merge branch 'main' of https://github.com/Datasance/Agent
emirhandurmus Aug 11, 2023
dba9544
commit
emirhandurmus Aug 11, 2023
d2a4104
commit
emirhandurmus Aug 11, 2023
341bed7
commmit
emirhandurmus Aug 11, 2023
2edab65
Merge branch 'main' of https://github.com/Datasance/Agent
emirhandurmus Aug 11, 2023
44d15bf
commit
emirhandurmus Aug 11, 2023
247278b
Merge branch 'main' of https://github.com/Datasance/Agent
emirhandurmus Aug 11, 2023
f014121
commit
emirhandurmus Aug 12, 2023
d72cfd7
commit
emirhandurmus Aug 12, 2023
2d7ce8a
version_msg
emirhandurmus Aug 12, 2023
1dc3dc1
build.gradle version
emirhandurmus Aug 12, 2023
686ccd3
build
emirhandurmus Aug 12, 2023
50bd190
build edit
emirhandurmus Aug 12, 2023
31f502b
workflow
emirhandurmus Aug 12, 2023
f417162
workflow
emirhandurmus Aug 12, 2023
07c9702
workflow
emirhandurmus Aug 12, 2023
ce266e6
ci.yml
emirhandurmus Aug 12, 2023
a9e2e13
version and distributions
emirhandurmus Aug 12, 2023
52c71b5
ghcr.io
emirhandurmus Aug 12, 2023
79257d2
ci.yaml
emirhandurmus Aug 12, 2023
1804309
workflow docker image ignore
emirhandurmus Aug 13, 2023
7e0d466
commit
emirhandurmus Aug 13, 2023
07efb97
commit
emirhandurmus Aug 13, 2023
200f46a
version
emirhandurmus Aug 13, 2023
71cfc51
edit workflow
emirhandurmus Aug 13, 2023
372017d
gradlew copyJar
emirhandurmus Aug 13, 2023
40b1bb3
workflow
emirhandurmus Aug 15, 2023
c54cb74
List contents of build directory before copy
emirhandurmus Aug 15, 2023
9ace345
copyJar
emirhandurmus Aug 15, 2023
da56041
List contents of destination directory after copy
emirhandurmus Aug 15, 2023
8856e11
workflow permissions
emirhandurmus Aug 15, 2023
60eaa81
workflow edit
emirhandurmus Aug 15, 2023
6d919ba
dockerfile and workflow edit
emirhandurmus Aug 21, 2023
2ae7487
workflow edit
emirhandurmus Aug 21, 2023
fa61097
Create gradle-publish.yml
emirhandurmus Aug 21, 2023
9595c40
Update gradle-publish.yml
emirhandurmus Aug 21, 2023
3ad98a8
grade-new workflow
emirhandurmus Aug 21, 2023
7b9b592
test workflow
emirhandurmus Aug 21, 2023
595fd4c
test workflow
emirhandurmus Aug 21, 2023
1e578d3
test workflow copyjar
emirhandurmus Aug 21, 2023
314fe5f
test
emirhandurmus Aug 21, 2023
70ec9ee
test
emirhandurmus Aug 21, 2023
9fba033
test
emirhandurmus Aug 21, 2023
1776feb
workflow checkout
emirhandurmus Aug 21, 2023
b09fba3
commit
emirhandurmus Aug 21, 2023
54d2006
java version
emirhandurmus Nov 19, 2023
adb52e6
java version_2
emirhandurmus Nov 19, 2023
09d6b6d
grade version
emirhandurmus Nov 19, 2023
dad5a74
gradle
emirhandurmus Nov 19, 2023
12d6278
iofog-agent-client/built.grade dependencies
emirhandurmus Nov 19, 2023
dbc30fe
build.grade for iofog-agent-daemon
emirhandurmus Nov 19, 2023
aaf6979
iofog-agent-client build.grade jar dup. strategy
emirhandurmus Nov 19, 2023
d71c21e
old version with soucecompatibility
emirhandurmus Nov 19, 2023
2614a51
grade.dist
emirhandurmus Nov 19, 2023
1ed40ed
gradle version
emirhandurmus Nov 19, 2023
797ac0a
3.0.1
emirhandurmus Nov 19, 2023
ff899f0
debian pack openjdk-17
emirhandurmus Dec 13, 2023
280a35f
github package publish
emirhandurmus Dec 17, 2023
2d66e74
upload artifact
emirhandurmus Dec 17, 2023
a3e66e5
upload artifact
emirhandurmus Dec 17, 2023
29f89dd
upload artifact
emirhandurmus Dec 17, 2023
3dd77b4
upload artifact
emirhandurmus Dec 17, 2023
d06efb7
upload artifact
emirhandurmus Dec 17, 2023
bec4b6e
workflow test
emirhandurmus Dec 18, 2023
19e13a1
worklow
emirhandurmus Dec 18, 2023
abaea64
worklow release
emirhandurmus Dec 18, 2023
10cb35c
workflow update
emirhandurmus Dec 18, 2023
61be9cb
workflow upload release assets
emirhandurmus Dec 18, 2023
03665a7
upload release asset
emirhandurmus Dec 18, 2023
6756a4d
workflow asset upload url
emirhandurmus Dec 18, 2023
d8472a9
workflow_asset content
emirhandurmus Dec 18, 2023
a439332
workflow_artifact download
emirhandurmus Dec 19, 2023
35fa584
workflowf release edit
emirhandurmus Dec 19, 2023
61a34f7
workflow
emirhandurmus Dec 19, 2023
e13d556
controller api version edited
emirhandurmus Feb 3, 2024
d037386
dependency edited
emirhandurmus Feb 3, 2024
63e2ebe
podman dependency added for build packages
emirhandurmus Feb 3, 2024
5541780
podman deps removed
emirhandurmus Feb 3, 2024
dd329f7
version updates
emirhandurmus Feb 17, 2024
e76c0a0
workflow edited
emirhandurmus Feb 17, 2024
3707bb8
workflow edited
emirhandurmus Feb 17, 2024
459173a
workflow updated
emirhandurmus Feb 17, 2024
117f440
modification for microservice config for wasmedge integration
emirhandurmus Jul 16, 2024
558a81f
docker-java version updated and withDevices definition fixed
emirhandurmus Jul 16, 2024
e4b9ee4
docker-java version reverted
emirhandurmus Jul 16, 2024
4fe7ac3
fix
emirhandurmus Jul 16, 2024
6be6408
fix
emirhandurmus Jul 16, 2024
2afbf5a
fix
emirhandurmus Jul 16, 2024
2059728
Xlint:deprecation added to build.gradle
emirhandurmus Jul 16, 2024
7a2350f
depreceated apis updated
emirhandurmus Jul 16, 2024
d839cad
import fixed
emirhandurmus Jul 16, 2024
4090b20
device class modified
emirhandurmus Jul 16, 2024
0f73d01
Device class references modified
emirhandurmus Jul 16, 2024
e17c12b
cdi device request added to create container hostconfig
emirhandurmus Jul 17, 2024
5ca92ce
ambiguity for device class fixed
emirhandurmus Jul 17, 2024
2fef304
microservice devices class changed as cidDevs
emirhandurmus Jul 17, 2024
f059bdc
devicerequest modified
emirhandurmus Jul 17, 2024
4f0c0ba
dockerutiltest class edited
emirhandurmus Jul 17, 2024
651c8a1
dockerutil test class fixed
emirhandurmus Jul 17, 2024
55f801f
microservice nullpointer execption fixed
emirhandurmus Jul 18, 2024
8e62d91
mockito-core version reverted
emirhandurmus Jul 18, 2024
bc245ea
workflow setup ruby updated
emirhandurmus Jul 18, 2024
806295b
version alpha updated
emirhandurmus Jul 18, 2024
eb0285d
docker api version updated-1.45
emirhandurmus Jul 18, 2024
dc9cf2a
version naming
emirhandurmus Jul 18, 2024
429ee33
field agent msvc cdidevs value fixed
emirhandurmus Jul 18, 2024
3f9f766
ClassCastException handling for microservice
emirhandurmus Jul 18, 2024
2a82929
docker util devicerequest fixed
emirhandurmus Jul 20, 2024
de51b02
Merge pull request #1 from Datasance/feature/wasmEdge-integration
emirhandurmus Jul 22, 2024
c8167c7
workflow modified agent docker dependency fixed
emirhandurmus Jul 22, 2024
e911243
jms and other dependencies version updared, source and target compata…
emirhandurmus Oct 17, 2024
104f376
java version upgraded to 17, gradle version updated to 8.4
emirhandurmus Oct 18, 2024
6a13c71
Merge branch 'feature/jms-upgrade' of https://github.com/Datasance/Ag…
emirhandurmus Oct 19, 2024
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
147 changes: 147 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: CI
on:
push:
branches:
- main
tags: [v*]
paths-ignore:
- README.md
- CHANGELOG.md
- LICENSE
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- main
paths-ignore:
- README.md
- CHANGELOG.md
- LICENSE
env:
PROJECT: 'datasance-pot'
IMAGE_NAME: 'agent'
POTCTL_VERSION: '1.0.0'
CONTROLLER_IMAGE: 'ghcr.io/datasance/controller:latest'

jobs:
build:
runs-on: ubuntu-20.04
permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
name: Build and Publish
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# cache: 'gradle'
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.4
arguments: build copy

- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.0
- name: Set image tag
shell: bash
id: tags
run: |
if [[ ${{ github.ref_name }} =~ ^v.* ]] ; then
VERSION=${{ github.ref_name }}
echo "VERSION=${VERSION:1}" >> "${GITHUB_OUTPUT}"
else
VERSION=${{ steps.previoustag.outputs.tag }}
echo "VERSION=${VERSION:1}-${{ github.run_number }}" >> "${GITHUB_OUTPUT}"
fi

- name: Login to Github Container Registry

uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: ${{ github.actor }}
password: ${{ secrets.GH_PAT }}

- name: Build and Push to ghcr

uses: docker/build-push-action@v3
id: build_push_ghcr
with:
file: Dockerfile
push: true
tags: |
ghcr.io/datasance/${{ env.IMAGE_NAME }}:${{ steps.tags.outputs.VERSION }}
ghcr.io/datasance/${{ env.IMAGE_NAME }}:latest
ghcr.io/datasance/${{ env.IMAGE_NAME }}:main

- name: Set up Ruby 3.1.4
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.4
- run: |
gem install --no-document fpm
fpm -h
- name: get gradle version
shell: bash
id: version
run: echo "version=$(./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')" >> "${GITHUB_OUTPUT}"
- name: get package version
shell: bash
id: pkg_version
run: |
if [[ ${{ github.ref_name }} =~ ^v.* ]] ; then
echo "version=${{ steps.version.outputs.version }}" >> "${GITHUB_OUTPUT}"
else
echo "version=${{ steps.version.outputs.version }}-${{ github.run_number }}" >> "${GITHUB_OUTPUT}"
fi
- run: echo ${{ steps.version.outputs.version }}
- name: Create deb package
shell: bash
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
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;
echo "pkg created"
ls

- uses: bluwy/substitute-string-action@v1
id: sub
with:
_input-text: ${{ steps.pkg_version.outputs.version }}
'-': _
- run: echo ${{ steps.sub.outputs.result }}

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
packaging/iofog-agent/iofog-agent_${{ steps.pkg_version.outputs.version }}_all.deb
packaging/iofog-agent/iofog-agent-${{ steps.pkg_version.outputs.version }}-1.noarch.rpm

- uses: actions/checkout@v3
with:
fetch-depth: 0
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@ RUN mkdir -p /usr/share/gradle /usr/share/gradle/ref \
&& ln -s /usr/share/gradle/gradle-${GRADLE_VERSION} /usr/bin/gradle

# 5- Define environmental variables required by gradle
ENV GRADLE_VERSION 8.4
ENV GRADLE_HOME /usr/bin/gradle
ENV GRADLE_USER_HOME /cache
ENV PATH $PATH:$GRADLE_HOME/bin
ENV GRADLE_VERSION=8.4
ENV GRADLE_HOME=/usr/bin/gradle
ENV GRADLE_USER_HOME=/cache
ENV PATH=$PATH:$GRADLE_HOME/bin

VOLUME $GRADLE_USER_HOME

COPY . .

RUN gradle build copy -x test --no-daemon
RUN gradle build -x test --no-daemon
RUN gradle copy -x test --no-daemon

FROM registry.access.redhat.com/ubi8/ubi-minimal:8.5
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

RUN true && \
microdnf install -y curl ca-certificates java-17-openjdk-headless sudo shadow-utils && \
Expand Down Expand Up @@ -90,4 +91,4 @@ RUN true && \
chown :iofog-agent /usr/bin/iofog-agent && \
true

CMD [ "java", "-jar", "/usr/bin/iofog-agentd.jar", "start" ]
CMD [ "java", "-jar", "/usr/bin/iofog-agentd.jar", "start" ]
Loading