Skip to content

Commit a48b045

Browse files
committed
R2023a release!
1 parent 8e13a92 commit a48b045

File tree

10 files changed

+222
-46
lines changed

10 files changed

+222
-46
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ To view instructions for deploying the MATLAB reference architecture, select a M
4040
| [R2019b](releases/R2019b/README.md) | |
4141
| [R2019a\_and\_older](releases/R2019a_and_older/README.md) | |
4242

43+
4344
The above instructions allow you to launch instances based on the latest prebuilt MathWorks® Amazon Machine Images (AMIs).
4445
MathWorks periodically replaces older AMIs with new images.
4546
For more details, see
@@ -125,4 +126,4 @@ You can also create a custom image by building your own using the Packer scripts
125126
The AMI uses MathWorks Hosted License Manager by default. For information on how to use other license managers, see [MATLAB Licensing in the Cloud](https://www.mathworks.com/help/licensingoncloud/matlab-on-the-cloud.html).
126127

127128
# Technical Support
128-
If you require assistance or have a request for additional features or capabilities, please contact [MathWorks Technical Support](https://www.mathworks.com/support/contact_us.html).
129+
If you require assistance or have a request for additional features or capabilities, please contact [MathWorks Technical Support](https://www.mathworks.com/support/contact_us.html).

img/aws-matlab-diagram.png

301 KB
Loading

packer/v1/build/cleanup.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ set -euo pipefail
88
# Ensure noninteractive frontend is disabled
99
echo 'debconf debconf/frontend select dialog' | sudo debconf-set-selections
1010

11-
# Clean up
12-
sudo rm -rf ~/ubuntu/.bash_history ~/ubuntu/.sudo* ~/root/.bash_history
13-
sudo rm -rf /etc/ssh/*_key /etc/ssh/*_key.pub ~/ubuntu/.ssh/* /root/.ssh/*
14-
sudo rm -rf /home/packer/
11+
# Clear build configuration files
1512
sudo rm -rf /var/tmp/config/
13+
14+
# Clear SSH host keys
15+
sudo rm -f /etc/ssh/ssh_host_*_key*
16+
# Clear SSH local config (including authorized keys)
17+
sudo rm -rf ~/.ssh/ /root/.ssh/
18+
19+
# Clear command history
20+
rm -f ~/.bash_history ~/.sudo*

packer/v1/build/config/desktop/matlab.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Name=MATLAB
44
Comment=Start MATLAB
55
GenericName=Technical Computing
66
Keywords=Programming
7-
Exec=/bin/sh -lc "killall MathWorksServiceHost; /usr/local/bin/matlab -desktop -softwareopengl"
7+
Exec=/bin/sh -lc "/usr/local/bin/matlab -desktop -softwareopengl"
88
Terminal=false
99
X-MultipleArgs=false
1010
Type=Application
@@ -15,4 +15,4 @@ Actions=new-window;new-private-window;
1515

1616
[Desktop Action new-window]
1717
Name=Open a New Window
18-
Exec=/bin/sh -lc "killall MathWorksServiceHost; /usr/local/bin/matlab -desktop -softwareopengl"
18+
Exec=/bin/sh -lc "/usr/local/bin/matlab -desktop -softwareopengl"

packer/v1/build/config/matlab/mw_context_tag.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
# Your content, and information about the content within your files, is not shared with MathWorks.
66
# To opt out of this service, delete this file as well as the corresponding section in install-matlab.sh.
77

8+
MW_DDUX_FORCE_ENABLE=true
89
MW_CONTEXT_TAGS=MATLAB:AWS:PACKERFILE:V1
9-
export MW_CONTEXT_TAGS
10+
export MW_DDUX_FORCE_ENABLE MW_CONTEXT_TAGS

packer/v1/build/install-ubuntu-desktop.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ sudo sed -i 's/^#storage-root.*/storage-root="%home%"/' /etc/dcv/dcv.conf
187187
# Enable users to have upto 4K resolution while using web clients
188188
sudo sed -i 's/display]/&\nweb-client-max-head-resolution=(4096, 2160)/' /etc/dcv/dcv.conf
189189

190+
# Enable software encoders. Uncomment the following line if you do not want NICE DCV to use the GPU.
191+
#sudo sed -i "s/display]/&\ndisplay-encoders=['ffmpeg', 'turbojpeg', 'lz4']/" /etc/dcv/dcv.conf
192+
190193
sudo sed -i 's/enabled=1/enabled=0/' /etc/default/apport
191194

192195
# Disable ubuntu upgrade notification pop-ups

packer/v1/release-config/R2023a.pkrvars.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// For more information on these variables, see /packer/v1/build-matlab-ami.pkr.hcl.
55
RELEASE = "R2023a"
66
BASE_AMI = "ami-0778521d914d23bc1"
7-
STARTUP_SCRIPTS = [".env", "10_setup-disks.sh", "20_setup-machine.sh", "30_setup-logging.sh", "40_setup-rdp.sh", "50_setup-nicedcv.sh", "60_setup-matlab.sh", "70_warmup-matlab.sh", "99_run-optional-user-command.sh"]
7+
STARTUP_SCRIPTS = [".env", "00_check-profile.sh", "10_setup-disks.sh", "20_setup-machine.sh", "30_setup-logging.sh", "40_setup-rdp.sh", "50_setup-nicedcv.sh", "60_setup-matlab.sh", "70_warmup-matlab.sh", "99_run-optional-user-command.sh"]
88
RUNTIME_SCRIPTS = ["swap-desktop-solution.sh"]
99
BUILD_SCRIPTS = ["install-startup-scripts.sh", "install-swap-desktop-solution.sh", "install-dependencies.sh", "install-ubuntu-desktop.sh", "install-mate.sh", "install-matlab.sh", "install-glibc-ubuntu2004.sh", "setup-startup-accelerator.sh", "install-fabric-manager-ubuntu2004.sh", "cleanup.sh"]
1010
PRODUCTS = "5G_Toolbox Antenna_Toolbox Aerospace_Blockset Mixed-Signal_Blockset Phased_Array_System_Toolbox AUTOSAR_Blockset Aerospace_Toolbox Audio_Toolbox Bioinformatics_Toolbox Bluetooth_Toolbox Simscape_Battery C2000_Microcontroller_Blockset Curve_Fitting_Toolbox Communications_Toolbox MATLAB_Compiler Control_System_Toolbox Simulink_Coverage Database_Toolbox DDS_Blockset Datafeed_Toolbox Deep_Learning_HDL_Toolbox Parallel_Computing_Toolbox Automated_Driving_Toolbox DSP_System_Toolbox Simulink_Design_Verifier MATLAB_Parallel_Server Medical_Imaging_Toolbox Embedded_Coder HDL_Verifier Econometrics_Toolbox Filter_Design_HDL_Coder Financial_Toolbox Fuzzy_Logic_Toolbox GPU_Coder Global_Optimization_Toolbox HDL_Coder DSP_HDL_Toolbox SoC_Blockset Image_Acquisition_Toolbox Instrument_Control_Toolbox System_Identification_Toolbox Image_Processing_Toolbox Financial_Instruments_Toolbox Simscape_Driveline Wireless_HDL_Toolbox Lidar_Toolbox LTE_Toolbox MATLAB_Coder Mapping_Toolbox MATLAB_Compiler_SDK MATLAB Model_Predictive_Control_Toolbox MATLAB_Report_Generator Simscape_Multibody Motor_Control_Blockset MATLAB_Web_App_Server Deep_Learning_Toolbox Navigation_Toolbox Optimization_Toolbox Industrial_Communication_Toolbox Partial_Differential_Equation_Toolbox Simulink_PLC_Coder Predictive_Maintenance_Toolbox Fixed-Point_Designer MATLAB_Production_Server Simscape_Electrical Powertrain_Blockset Radar_Toolbox RF_Blockset Robust_Control_Toolbox RF_Toolbox Risk_Management_Toolbox Reinforcement_Learning_Toolbox Robotics_System_Toolbox RF_PCB_Toolbox Requirements_Toolbox ROS_Toolbox Simulink_Coder SimBiology Simulink_Control_Design SimEvents Stateflow Signal_Processing_Toolbox Simscape_Fluids Satellite_Communications_Toolbox Simulink_Compiler Simulink Symbolic_Math_Toolbox Simulink_Design_Optimization Signal_Integrity_Toolbox Simulink_Report_Generator Simscape Statistics_and_Machine_Learning_Toolbox SerDes_Toolbox Simulink_Test Text_Analytics_Toolbox MATLAB_Test Sensor_Fusion_and_Tracking_Toolbox UAV_Toolbox Vehicle_Dynamics_Blockset Vehicle_Network_Toolbox Computer_Vision_Toolbox Simulink_3D_Animation Vision_HDL_Toolbox Simulink_Check Wavelet_Toolbox Wireless_Testbench WLAN_Toolbox Simulink_Real-Time System_Composer"

packer/v1/startup/00_check-profile.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
# This script checks if an instance profile has been attached to this instance. This needs to be run before any AWS API calls that would require IAM permissions for the instance.
3+
# Copyright 2023 The MathWorks Inc.
4+
5+
response=""
6+
until [ ! -z "$response" ]; do
7+
# Keep querying IMDS till a valid Instance profile ARN is obtained
8+
response=$(curl -s http://169.254.169.254/latest/meta-data/iam/info | grep InstanceProfileArn)
9+
sleep 2
10+
done
11+
echo "Found attached instance profile: ${response}"

releases/R2023a/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ After you click the Launch Stack button above, the “Create stack” page will
4646
| **Custom IAM Role (Optional)** | Name of a custom IAM Role to associate with this instance. If not specified, a predefined role is used. If specified, features requiring special permissions will be unavailable (NICE DCV, CloudWatch, IAM Policies). |
4747
| **Additional IAM Policies (Optional)** | Semicolon-delimited list of IAM Policy ARNs to add to the predefined role. This option cannot be used with a custom IAM Role. |
4848
| **VPC to deploy this stack to** | ID of an existing VPC in which to deploy this stack |
49-
| **Subnet** | ID of an existing subnet |
49+
| **Subnet** | ID of an existing subnet. To access the instance from anywhere, ensure that your subnet auto-assigns public IP addresses and is connected to the internet. |
5050
| **SSH Key Pair** | Name of an existing EC2 KeyPair to allow SSH access to all the instances. See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html for details on creating these. |
5151
| **Allow connections from** | IP address range that will be allowed to connect to this instance from outside of the VPC. This field should be formatted as \<ip_address>/\<mask>. E.g. 10.0.0.1/32. This is the public IP address which can be found by searching for 'what is my ip address' on the web. The mask determines the number of IP addresses to include. A mask of 32 is a single IP address. This calculator can be used to build a specific range: https://www.ipaddressguide.com/cidr. You may need to contact your IT administrator to determine which address is appropriate. |
5252
| **Remote password** | Password for the "ubuntu" user |
@@ -105,4 +105,4 @@ CloudWatch logs enables you to access logs from all the resources in your stack
105105

106106
Copyright (c) 2018-2023 The MathWorks, Inc. All rights reserved.
107107

108-
----
108+
----

releases/R2023a/aws-matlab-template.json

Lines changed: 190 additions & 35 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)