Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E EMADL2CPP
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • monticore
  • EmbeddedMontiArcEmbeddedMontiArc
  • generators
  • EMADL2CPP
  • Issues
  • #17
Closed
Open
Issue created Nov 20, 2020 by Andreas Wahlen@cracksalad

Create default Dockerfile to be able to test basic scripts

Create a Dockerfile and add it to the repository to allow testing of EMADL models using the streamtest plugin.

Something like that would work (dependency is a local jdk-8u271-linux-x64.tar.gz file which is the Oracle JDK 8):

FROM ubuntu:bionic

RUN apt update && apt install -y --no-install-recommends maven g++ make cmake libarmadillo-dev

WORKDIR /root
COPY jdk-8u271-linux-x64.tar.gz .
RUN tar -xzf jdk-8u271-linux-x64.tar.gz
RUN rm jdk-8u271-linux-x64.tar.gz
RUN mv jdk1.8.0_271 /opt
RUN update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.8.0_271/bin/java" 1
RUN update-alternatives --set "java" "/opt/jdk1.8.0_271/bin/java"

A corresponding .gitlab-ci.yml would look like this (settings.xml and pom.xml files are mandatory):

stages:
  - integration

testIIR:
  stage: integration
  image: registry.git.rwth-aachen.de/se-student/ws2021/labs/connectedcars/ema
  script:
    - mvn streamtest:streamtest-execute -s settings.xml
  except:
    changes:
      - README.md
      - .gitignore
      - .gitkeep

In the mean time: Feel free to choose this image for testing of basic models (which do not have any specific dependencies)

Assignee
Assign to
Time tracking