-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfileOM
36 lines (25 loc) · 1.3 KB
/
DockerfileOM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This will build the necessary webgme needed for running the SystemSimulator plugin with OpenModelica
# as simulation tool.
#
# 1. Copy this file to the root of your webgme repository (a clean copy, no node_modules, blobstorage etc.)
# 2. Build the image
# $ docker build -f DockerfileOM -t webgme-dss-worker .
# https://github.com/nodejs/docker-node/blob/25f26146ac5b9f74add731b0b078e34411ae5831/8/Dockerfile
FROM node:dubnium
RUN mkdir /usr/app
WORKDIR /usr/app
# copy app source
ADD . /usr/app/
# Install the node-modules.
RUN npm install
# Uncomment this line if webgme-docker-worker-manager is a node_module
RUN cp /usr/app/node_modules/webgme-docker-worker-manager/dockerworker.js /usr/app/dockerworker.js
# Installing OpenModelica https://openmodelica.org/download/download-linux
RUN for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt jessie release"; done | tee /etc/apt/sources.list.d/openmodelica.list
# You will also need to import the GPG key used to sign the releases:
RUN wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | apt-key add -
# Then update and install OpenModelica
RUN apt-get update
RUN apt-get --assume-yes install openmodelica
# Installs optional Modelica libraries (most have not been tested with OpenModelica)
# RUN sudo apt --assume-yes install omlib-.*