Code Monkey home page Code Monkey logo

ubuntu-docker's Introduction

Ubuntu Docker

A simple Docker file to build, run, test, and package libCellML, libOpenCOR, and OpenCOR on the x86-64 version of Ubuntu 22.04 LTS. This Docker image is meant to be used on macOS using Apple silicon (since the ARM version of Ubuntu can only be used to generate ARM code).

Prerequisites

Shell scripts

You might want to add to your PATH the bin directory in this repository, so that you can access the following scripts:

  • buildubuntu: this builds the Ubuntu Docker image;
  • cleanubuntu: this removes both the Ubuntu Docker image and its container;
  • rebuildubuntu: this calls cleanubuntu and then buildubuntu;
  • rerunubuntu: this removes the Ubuntu Docker container and then calls runubuntu; and
  • runubuntu: this creates, if needed, and starts the Ubuntu Docker container.

Run the GUI version of OpenCOR

We rely on XQuartz to run the GUI version of OpenCOR. runubuntu passes the DISPLAY environment variable to the Docker container with xxx.xxx.xxx.xxx:0 as a value where xxx.xxx.xxx.xxx is the computer's IP address. So, nothing more is needed on that front.

On the XQuartz front however, we need to open its terminal and enter xhost xxx.xxx.xxx.xxx. This done, we can run the GUI version of OpenCOR just fine.

Should the computer's IP address change then you need to export DISPLAY=xxx.xxx.xxx.xxx:0 in the container and xhost xxx.xxx.xxx.xxx in XQuartz' terminal.

ubuntu-docker's People

Contributors

agarny avatar

Watchers

 avatar  avatar

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.