Skip to content

Commit

Permalink
Merge pull request #29 from rwth-acis/1.2.0
Browse files Browse the repository at this point in the history
1.2.0
  • Loading branch information
lakhoune authored Apr 11, 2022
2 parents b9531d3 + ed1d7d1 commit 5596a08
Show file tree
Hide file tree
Showing 30 changed files with 1,011 additions and 653 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat text eol=crlf

19 changes: 19 additions & 0 deletions .github/workflows/docker-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ on:
branches: [ master, develop ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE LAS2PEERMON;' -uroot -proot
- name: Create db tables
run: mysql -u root -proot LAS2PEERMON < etc/create_database.sql
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run tests with Gradle
run: ./gradlew test
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
19 changes: 15 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
/tmp
/node-storage
/log
/export
/mobsos-data-processing/export
/output
/lib
/etc/ivy/ivy.jar
/service
/bin
/bin/*
.DS_Store
.DS_Store*
.DS_Store*
etc/launcher-configuration.ini
/.idea/
*.iml
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

export
mobsos-data-processing/output
etc/launcher-configuration.ini
app/output/*
4 changes: 2 additions & 2 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
Expand All @@ -18,7 +18,7 @@
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
Expand Down
8 changes: 0 additions & 8 deletions .travis.install-mysql-5.7.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FROM openjdk:14-jdk-alpine
FROM openjdk:17-jdk-alpine

ENV LAS2PEER_PORT=9011

RUN apk add --update bash mysql-client apache-ant curl && rm -f /var/cache/apk/*
RUN apk add --update bash mysql-client curl && rm -f /var/cache/apk/*
RUN addgroup -g 1000 -S las2peer && \
adduser -u 1000 -S las2peer -G las2peer

COPY --chown=las2peer:las2peer . /src
WORKDIR /src

RUN dos2unix docker-entrypoint.sh

# run the rest as unprivileged user
USER las2peer
RUN ant jar
RUN chmod +x gradlew && ./gradlew build --exclude-task test

EXPOSE $LAS2PEER_PORT
ENTRYPOINT ["/src/docker-entrypoint.sh"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MobSOS Data Processing

[![Build Status](https://travis-ci.org/rwth-acis/mobsos-data-processing.svg?branch=master)](https://travis-ci.org/rwth-acis/mobsos-data-processing) [![codecov](https://codecov.io/gh/rwth-acis/mobsos-data-processing/branch/master/graph/badge.svg)](https://codecov.io/gh/rwth-acis/mobsos-data-processing) [![Join the chat at https://gitter.im/rwth-acis/mobsos](https://badges.gitter.im/rwth-acis/mobsos.svg)](https://gitter.im/rwth-acis/mobsos?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://github.com/rwth-acis/mobsos-data-processing/workflows/Java%20CI%20with%20Gradle/badge.svg?branch=master)](https://github.com/rwth-acis/mobsos-data-processing/actions?query=workflow%3A%22Java+CI+with+Gradle%22+branch%3Amaster) [![codecov](https://codecov.io/gh/rwth-acis/mobsos-data-processing/branch/master/graph/badge.svg)](https://codecov.io/gh/rwth-acis/mobsos-data-processing) [![Join the chat at https://gitter.im/rwth-acis/mobsos](https://badges.gitter.im/rwth-acis/mobsos.svg)](https://gitter.im/rwth-acis/mobsos?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This service is part of the MobSOS monitoring concept and processes incoming monitoring data.

Expand All @@ -17,7 +17,7 @@ After that, configure the [property](etc/i5.las2peer.services.mobsos.dataProcess
Execute the following command on your shell:

```shell
ant all
./gradlew build
```

### Start
Expand Down
Loading

0 comments on commit 5596a08

Please sign in to comment.