Giter Club home page Giter Club logo

capella-dockerimages's People

Contributors

amolenaar avatar dependabot[bot] avatar dominik003 avatar ewuerger avatar henrik429 avatar jamilraichouni avatar moritzweber0 avatar paula-kli avatar romeonicholas avatar timobbz avatar vik378 avatar wuestengecko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

capella-dockerimages's Issues

Build GTK from source

The description editor in Capella doesn't work with the latest GTK version. For the installation of older GTK versions we depend on the focal apt repository of Ubuntu. Versions for architectures like arm are missing in the registry. It would be nice to build them from source.

Allow different Java version

We should add an option to install a specific Java version instead of using the integrated Java version of Capella.

Line Formatting Bug

Hi,

I recently noticed that there exists a simple line formatting error in teams for capella web instance. For example in the picture below there is an arrow which has added by line formatting i.e. using right click -> format -> arrow type.
image
The issue here is that, the arrow or any other formatting with regards to line thickness or line type done on the line vanishes on session restart i.e. Starting a session post termination.

metrics script runs at 100% CPU

The metrics script on the remote container runs 100% CPU.

The script is busy-looping at the end of the file. This is not needed for a simple HTTP server that should only perform a bit of work when invoked.

read-only sessions: Move model loading into separate script

When the script is invoked via EASE, one doesn't get any stacktrace. We should move all parts which are unrelated to the workspace import into a separate script. When running externally, we can get the stracktrace, which makes debugging a lot easier.

Migrate commits from T4C CDO repository in model backup job

Users want to see their original commits in the history of their GitLab repository. Currently the backup job is just doing one commit and all individual commits with their messages are not included in the model repository on GitLab. Having the original commits migrated, enables many features/actions available on GitLab. For e.g. issues on the model repo, or Jira tickets can be referenced and their status can be changed (e.g. closed).

pyease not found

Clone command/submodule command cannot update this submodule:

git submodule update --init --recursive

remote: Repository not found.
fatal: repository 'https://github.com/DSD-DBS/pyease.git/' not found
fatal: clone of 'https://github.com/DSD-DBS/pyease.git' into submodule path 'DS_Capella/capella-dockerimages/ease/pyease' failed

What is pyease and is it a closed component?
Thanks!

Iteratively generate dockerignore file for different CAPELLA_VERSIONS

Currently, we load all archives for each Capella version into the Docker build context. This is not a good solution as it slows down the whole build process. We need to generate a dockerignore file before we start the build in the Makefile, which ignores all other Capella versions, so that only the relevant version is loaded into the build context.

Instrument session container

We need a service within a session container (capella-dockerimages/remote) to expose user inactivity time (in seconds) on port 9118 (configurable) in OpenMetrics format

The service start should be managed by supervisord so that the service is available even before a user is logged in

Use `-archiveProject` for TeamForCapella backups

Currently, the TeamForCapella backup flattens the directory structure, leading to failed backups when an image appears two times in different directories.

With -archiveProject, the directory structure is not flattened. We can use -archiveProject and unzip the archive automatically.

Auto-enable Team for Capella Administration capability for admins

To use the CDO session view, administrators need to enable the Team for Capella - Administration in Window > Preferences > General > Capabilties.
image

This can be automated, administrators should have it enabled automatically.
Eventually, we can also pre-fill the server location.

Add public Capella images with dropins included

Many Capella models depend on specific dropins.

We should offer three sets of dropins for all Capella based images:

Use host X server istead of RDP proposal

Hi guys!
Thank you very much for this images are really useful. (I was getting mad about the downgrade dependencies of gtk) .

My little contribution is the following (how I use it):
I've created a docker-compose.yml like the following:

version: "3"
services:
  capella:
    image: capella/base:latest
    environment:
      - DISPLAY=${DISPLAY}
      - GTK_THEME=Adwaita
    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix
      - ./git:/git
      - ./extworkspace:/extworkspace
    network_mode: host
    entrypoint: ./capella/capella -data /extworkspace

Basically it sets the DISPLAY variable accordingly to execute GUIs application inside the docker and sets my git and an external workspace to use by default.

here some reference on GUI apps on docker.
https://gursimar27.medium.com/run-gui-applications-in-a-docker-container-ca625bad4638

Add integration test for `backup` Docker image

In Capella 6.0.0, the arguments of the importer script have been changed. Thus, the backups fail as we haven't noticed it.
We need a full integration test.

Add a new pytest for the backup job:

  • Spawn the T4C server in the pytest
  • Populate the server with an existing project. The data has to be placed in a specific location, e.g. t4c/server/tests/data/$CAPELLA_VERSION
  • Start a Git server. The git http-backend command might be helpful.
  • Run the backup Docker container
  • Check if the Git server contains the project with all important files.

In addition, the backup image should have support for Capella 6.0.0:

  • Fix the backup Dockerfile / Python script to support Capella 6.0.0.

Error Message when linking model element to description

In a team-for-capella model, I tried to add a model element link to a logical function description. The link dialog showed up, I successfully selected a model element and confirmed the link dialog. Then, when I'd have expected the link to be added to the description text, the description window freezes and I get this error prompt:
image

The Capella session doesn't recover after that, repeatedly error messages pop up when trying to edit any description. The only way out is to close it and open a new one.
The error also occurs when I don't select a model element and cancel the link dialog.

Add quickstart guide

Add a quick start section to build all Dockerimages in their default configurations. We should write a Makefile with targets for all images.
Additionally, we should have some goals to run images.

Simplify image structure

Our number of images has grown, leading to long build times. We can simplify it a bit:

  • Move the CLI features into capella/base and t4c/client/base, deprecate capella/cli and t4c/client/cli.
  • Move the readonly features into capella/base as "preparation script", deprecate capella/readonly
  • Move backup and exporter features to t4c/client/base, deprecate t4c/client/backup and t4c/client/exporter.

Read env variables in pytest

Consider the environment variables that are used in the Makefile as variables in the test for the image.
DOCKER_REGISTRY and DOCKER_TAG are the interesting ones.

Change default Git clone path

Git repositories should be cloned into /workspace/git instead of /home/techuser/git. In the Git preferences, this can be changed. The workspace should be prepared properly.

Git LFS authentication doesn't work in persistent sessions

While the authentication for normal Git repositories works fine, cloning a Git LFS repository from the Capella GUI results in an error. It tries to use the GIT_AKSPASS, which fails because the GIT_USERNAME and GIT_PASSWORD environment variables are not set.

`pure-variants` license path is hardcoded for version 5

The pure::variants license path /home/techuser/pure-variants-5 is hardcoded for pure::variants version 5. It is should depend on the version, for version 6 it should be /home/techuser/pure-variants-6.

Possible workaround:

  1. The user gets this prompt when opening a model:
    image
  2. Click "yes"
  3. Navigate to "Home":
    image
  4. Double-click on pure-variants-5
    image
  5. Double-click on de.license
  6. Accept the certificate:
    image

Allow Git basic authentication in user session

Due to the GIT_ASKPASS configuration, the usage of the Git integration of Eclipse is not possible. However, users would like to clone and push Git repositories with authentication. Therefore, we have to set a proper git credential manager during preparation.

Add backups test using GIT_REPO_ENTRYPOINT

It is possible to set an entry point (GIT_REPO_ENTRYPOINT) that specifies where the .aird file should be placed. Therefore, we should also perform a backup test using this environment variable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.