diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..87432b2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,39 @@ +# hsteininger/DoMaLiMa +# VERSION 1.0.0 + +#what image to use +FROM debian + +#maintainer +MAINTAINER Herbert Steininger + +#set env variables +ENV DEBIAN_FRONTEND noninteractive + +#set timezone +RUN echo "TZ='Europe/Berlin'; export TZ" >> /root/.bashrc + +#run aptitude +RUN apt-get update && apt-get install -y --fix-missing tar less vim wget lynx psmisc lsof strace + +##MATLABstuff +RUN apt-get install -y --fix-missing lsb + +#copy matlabstuff +ADD matlab_R2017a_glnxa64 /root/ +COPY license.dat /root/license.dat +COPY activate.ini /root/activate.ini +COPY installer_input.txt /root/installer_input.txt + +RUN chmod -R 755 /root +RUN /root/install -inputFile /root/installer_input.txt + +ADD ./start.sh /root/bin/ +RUN chmod -R 755 /root/bin/start.sh + +RUN ln -s /tmp /usr/tmp + +RUN adduser --disabled-password --gecos '' matlab + +ENTRYPOINT ["/root/bin/start.sh"] +#CMD ["/bin/bash"] diff --git a/activate.ini b/activate.ini new file mode 100644 index 0000000..28fa648 --- /dev/null +++ b/activate.ini @@ -0,0 +1,114 @@ +################################################################## +# +# Name: activate.ini +# +# Copyright 2008-2010 The MathWorks, Inc. +# +# Purpose: Activation application initialization file template. +# Use this file to specify parameters required by the activation +# application at runtime. This file provides the activation +# application with required input without using the GUI. +# +# INSTRUCTIONS FOR RUNNING IN SILENT MODE +# +# To run the activation application in silent mode: +# +# 1. Create a copy of this template file and fill in the required +# information. +# +# 2. Navigate to the folder containing the activation application. +# (Windows) $MATLABROOT\bin\$ARCH +# (Mac/Linux) $MATLABROOT/bin +# +# 3. Launch the activation application from the command line, +# using the -propertiesFile option to specify the name of your +# activation initialization file. +# +# (Windows) activate_matlab.exe -propertiesFile +# (Mac/Linux) activate_matlab.sh -propertiesFile +# +# NOTE: If you want to perform silent activation automatically +# after performing silent installation, specify the name of your +# activation initialization file as the value of the +# activationPropertiesFile= option in the installer initialization +# file (installer_input.txt). This option causes the installer +# to launch the activation application in silent mode. You can +# also specify the activation initialization file as an argument +# when you launch the installer, using the -activationPropertiesFile +# option. +# +# NOTE: When run in silent mode, the activation application does +# not display the activation dialog boxes. +# +################################################################## +# +# SPECIFY ACTIVATION MODE +# +# Specify whether or not to run in silent mode. +# +# Valid values: true / false +# +# Default: isSilent=true. + +isSilent=true + +# +# SPECIFY ACTIVATION TYPE (Required) +# +# Specify the type of activation you want to do. +# +# Valid values: activateDcAnon / activateOffline + +activateCommand=activateOffline + +# +# SPECIFY LICENSE FILE LOCATION (Required if activateCommand=activateOffline) +# +# If you specified the activation type activateOffline, you +# must specify the location of the License File that you want +# to install. +# +# Mac/Linux example: +# licenseFile=/Central/license.dat +# +# Windows example: +# licenseFile=C:\license.dat + +licenseFile=/root/license.dat + +# +# SPECIFY ACTIVATION KEY (Required if activateCommand=activateDcAnon) +# +# If you specified the activation type activateDcAnon,you must +# specify a valid Activation Key. +# +# Example: activationKey=55555-55555-55555-55555 + +activationKey= + +# +# SPECIFY LICENSE FILE DESTINATION DIRECTORY (Optional) +# +# Specify the directory into which you want to install the license file. +# You must specify the full path of a directory that already exists. +# +# NOTE: This option is only for advanced users since it could make MATLAB +# unable to start without specifying special options. +# +# Mac/Linux example: +# installLicenseFileDir=/Central/LicenseDirectory +# +# Windows examples: +# installLicenseFileDir=C:\License Directory + +installLicenseFileDir= + +# +# SPECIFY NAME OF INSTALLED LICENSE FILE (Optional) +# +# Specify the name of the installed License File. The file name +# must have with either .lic or .dat file extension. +# +# Example: installLicenseFileName=license.dat + +installLicenseFileName= diff --git a/installer_input.txt b/installer_input.txt new file mode 100644 index 0000000..70befbd --- /dev/null +++ b/installer_input.txt @@ -0,0 +1,342 @@ +################################################################## +## +## Use this file to specify parameters required by the installer at runtime. +## +## Instructions for using this file. +## +## 1. Create a copy of this template file and fill in the required +## information. +## +## 2. Uncomment only those lines that start with a single '#' +## and set the desired values. All allowed values for the +## parameters are defined in the comments section for each +## parameter. +## +## 3. Launch the installer from the command line, using the -inputFile option +## to specify the name of your installer initialization file. +## +## (Windows) setup.exe -inputFile +## (Mac/Unix) install -inputFile +## +## NOTE: +## If you want to run the activation application in silent +## mode immediately after the installer completes, you must create +## an activation initialization file and specify its name as the +## value of the activationPropertiesFile= option. You can also +## pass the name of the activation initialization file to the +## installer using the -activationPropertiesFile command line +## option. +## +################################################################## +## +## +## SPECIFY INSTALLATION FOLDER +## +## Example: +## (Windows) destinationFolder=C:\Program Files\MATLAB\RXXXX +## (Unix) destinationFolder=/usr/local/RXXXX +## (Mac) destinationFolder=/Applications +## +## Set the desired value for destinationFolder and +## uncomment the line. + +#destinationFolder= +destinationFolder=/usr/local/MatLab/2017a + +## +## SPECIFY FILE INSTALLATION KEY +## +## Example: fileInstallationKey=xxxxx-xxxxx-xxxxx-xxxxx..... +## +## Set the desired value for fileInstallationKey and +## uncomment the line. + +# fileInstallationKey= +fileInstallationKey=$PUT-YOUR-KEY-HERE + +## +## ACCEPT LICENSE AGREEMENT +## +## You must agree to the license agreement to install MathWorks products. +## The license agreement can be found in the license_agreement.txt file at the +## root level of the installation DVD. +## +## Example: agreeToLicense=yes +## +## Set agreeToLicense value to yes or no and +## uncomment the line. + +# agreeToLicense= +agreeToLicense=yes + +## +## SPECIFY OUTPUT LOG +## +## Specify full path of file into which you want the results of the +## installation to be recorded. +## +## Example: +## (Windows) outputFile=C:\TEMP\mathworks_.log +## (Unix/Mac) outputFile=/tmp/mathworks_.log +## +## Set the desired value for outputFile and +## uncomment the line. + +# outputFile= +outputFile=/tmp/matlab_install.log + +## SPECIFY INSTALLER MODE +## +## interactive: Run the installer GUI, waiting for user input on all +## dialog boxes. +## +## silent: Run the installer without displaying the GUI. +## +## automated: Run the installer GUI, displaying all dialog boxes, but only +## waiting for user input on dialogs that are missing required +## input. +## +## Set mode value to either interactive, silent, or automated and +## uncomment the line. + +# mode= +mode=silent + +## SPECIFY LENGTH OF TIME DIALOG BOXES ARE DISPLAYED +## +## Specify how long the installer dialog boxes are displayed, in milliseconds. +## +## NOTE: Use this value only if you set the installer mode to automated. +## +## By default, the dialog boxes display on the screen for one second. +## +## Example: (To specify a value of 1 second.) automatedModeTimeout=1000 +## +## Set the desired value for automatedModeTimeout and +## uncomment the line. + +# automatedModeTimeout= + +## SPECIFY ACTIVATION PROPERTIES FILE (For non-network license types only) +## +## Enter the path to an existing file that contains properties to configure +## the activation process. + +# activationPropertiesFile= + +########## Begin: Options for Network License Types ######### +## +## SPECIFY PATH TO LICENSE FILE (Required for network license types only) +## +## This value is required when installing either the License Manager or when +## installing as a Network End-User +## Example: +## (Windows) licensePath=C:\TEMP\license.dat +## (Unix) licensePath=/tmp/license.dat +## Set the desired value for licensePath and +## uncomment the line. + +# licensePath= +licensePath=/root/license.dat + +## CHOOSE TO INSTALL LICENSE MANAGER (For network license types only) +## +## Installs license manager files to disk. +## +## NOTE: You only need to install the license manager files +## on your license server. +## +## Set lmgrFiles value to true or false and +## uncomment the line. + +# lmgrFiles= +lmgrFiles=true + +## INSTALL LICENSE MANAGER AS A SERVICE (For network license types only) +## +## Configure the license manager as a service on Windows. +## +## NOTE: Not applicable for Unix or Mac. +## +## NOTE: The lmgr_files option (set in previous step) must also be set to true. +## +## Set lmgrService value to true or false and +## uncomment the line. + +# lmgrService= + +########## End: Options for Network License Types ######### + + + +################# Begin - Windows Only Options ################ +## +## CHOOSE TO SET FILE ASSOCIATIONS +## +## Set to true if you want the installer to associate file types used by MathWorks +## products to this version of MATLAB, or false if you do not want the installer to +## associate MathWorks file types with this version of MATLAB. +## +## Default value is true. +## +## Set setFileAssoc value to true or false and +## uncomment the line. + +# setFileAssoc= + +## +## CHOOSE TO CREATE WINDOWS DESKTOP SHORTCUT +## +## Set to true if you would like the installer to create a desktop shortcut icon +## when MATLAB is installed or false if you don't want the shortcut created. +## +## Set desktopShortcut value to true or false and +## uncomment the line. + +# desktopShortcut= + +## CHOOSE TO ADD SHORTCUT TO WINDOWS START MENU +## +## Set to true if you would like the installer to create a Start Menu shortcut +## icon when MATLAB is installed or false if you don't want the shortcut created. +## +## Set startMenuShortcut value to true or false and +## uncomment the line. + +# startMenuShortcut= + +## CREATE a MATLAB Startup Accelerator task +## +## The MATLAB Startup Accelerator installer creates a +## system task to preload MATLAB into the system’s cache +## for faster startup. +## +## NOTE: By default, a MATLAB Startup Accelerator task will +## automatically be created. +## +## If you want a MATLAB Startup Accelerator task to be created, +## do not edit this section. +## +## Set createAccelTask value to false if you do not want to +## create an Accelerator task and uncomment the line. + +# createAccelTask= + +## Enable Login Named User licensing +## +## Set to Yes to enable use of a Login Named User license for all users of this MATLAB installation +## Users must log in to their MathWorks Account when MATLAB starts. +## +## Example: enableLNU=yes +## +## NOTE: This flag is valid in silent installations only. + +# enableLNU=yes + + + +################ End - Windows Only Options ################ + + +## SPECIFY PRODUCTS YOU WANT TO INSTALL +## +## By default, the installer installs all the products and +## documentation for which you are licensed. Products you are not licensed for +## are not installed, even if they are listed here. +## +## Note: +## 1. To automatically install all your licensed products, do not edit +## any lines in this section. +## +## 2. To install a specific product or a subset of products for +## which you are licensed, uncomment the line for the product(s) you want +## to install. + +#product.Aerospace_Blockset +#product.Aerospace_Toolbox +#product.Antenna_Toolbox +#product.Audio_System_Toolbox +#product.Automated_Driving_System_Toolbox +#product.Bioinformatics_Toolbox +#product.Communications_System_Toolbox +#product.Computer_Vision_System_Toolbox +#product.Control_System_Toolbox +#product.Curve_Fitting_Toolbox +#product.DO_Qualification_Kit +#product.DSP_System_Toolbox +#product.Data_Acquisition_Toolbox +#product.Database_Toolbox +#product.Datafeed_Toolbox +#product.Econometrics_Toolbox +#product.Embedded_Coder +#product.Filter_Design_HDL_Coder +#product.Financial_Instruments_Toolbox +#product.Financial_Toolbox +#product.Fixed_Point_Designer +#product.Fuzzy_Logic_Toolbox +#product.Global_Optimization_Toolbox +#product.HDL_Coder +#product.HDL_Verifier +#product.IEC_Certification_Kit +#product.Image_Acquisition_Toolbox +#product.Image_Processing_Toolbox +#product.Instrument_Control_Toolbox +#product.LTE_System_Toolbox +#product.MATLAB +#product.MATLAB_Coder +#product.MATLAB_Compiler +#product.MATLAB_Compiler_SDK +#product.MATLAB_Distributed_Computing_Server +#product.MATLAB_Production_Server +#product.MATLAB_Report_Generator +#product.Mapping_Toolbox +#product.Model_Predictive_Control_Toolbox +#product.Model_Based_Calibration_Toolbox +#product.Neural_Network_Toolbox +#product.OPC_Toolbox +#product.Optimization_Toolbox +#product.Parallel_Computing_Toolbox +#product.Partial_Differential_Equation_Toolbox +#product.Phased_Array_System_Toolbox +#product.Polyspace_Bug_Finder +#product.Polyspace_Code_Prover +#product.Powertrain_Blockset +#product.RF_Blockset +#product.RF_Toolbox +#product.Risk_Management_Toolbox +#product.Robotics_System_Toolbox +#product.Robust_Control_Toolbox +#product.Signal_Processing_Toolbox +#product.SimBiology +#product.SimEvents +#product.SimRF +#product.Simscape +#product.Simscape_Driveline +#product.Simscape_Electronics +#product.Simscape_Fluids +#product.Simscape_Multibody +#product.Simscape_Power_Systems +#product.Simulink +#product.Simulink_3D_Animation +#product.Simulink_Code_Inspector +#product.Simulink_Coder +#product.Simulink_Control_Design +#product.Simulink_Design_Optimization +#product.Simulink_Design_Verifier +#product.Simulink_Desktop_Real_Time +#product.Simulink_PLC_Coder +#product.Simulink_Real_Time +#product.Simulink_Report_Generator +#product.Simulink_Test +#product.Simulink_Verification_and_Validation +#product.Spreadsheet_Link +#product.Stateflow +#product.Statistics_and_Machine_Learning_Toolbox +#product.Symbolic_Math_Toolbox +#product.System_Identification_Toolbox +#product.Trading_Toolbox +#product.Vehicle_Network_Toolbox +#product.Vision_HDL_Toolbox +#product.WLAN_System_Toolbox +#product.Wavelet_Toolbox + diff --git a/license.dat b/license.dat new file mode 100644 index 0000000..85781cb --- /dev/null +++ b/license.dat @@ -0,0 +1 @@ +Replace this File with your 'license.dat'-File. diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..dbb25d5 --- /dev/null +++ b/start.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +/usr/local/MatLab/2017a/etc/lmstart -v -u matlab +/usr/local/MatLab/2017a/etc/lmstat + +/bin/bash