Skip to content

Commit

Permalink
updated docker-compose.yml and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pisaia01 authored and pisaia01 committed May 5, 2023
1 parent 3628cb0 commit 7fae83e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ services:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_INSTALL_PLUGINS=grafana-worldmap-panel
matlab:
build: ./matlab
stdin_open: true
tty: true
ports:
- 22:22
sumo:
build: ./sumo
ports:
Expand All @@ -54,12 +60,6 @@ services:
- ./:/usr/src/app/
stdin_open: true
tty: true
matlab:
build: ./matlab
stdin_open: true
tty: true
ports:
- 22:22
volumes:
postgres_data:
grafana_data:
Expand Down
7 changes: 4 additions & 3 deletions matlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

FROM debian:stretch-slim
ENV DEBIAN_FRONTEND noninteractive

RUN echo "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list
RUN echo "deb http://deb.debian.org/debian/ buster main" > /etc/apt/sources.list
RUN apt-get -q update
RUN apt upgrade -q -y
RUN apt-get install -q -y --no-install-recommends xorg unzip wget curl ca-certificates ssh openssh-server iputils-ping net-tools dos2unix
COPY ./ssh/sshd_config /etc/ssh/sshd_config
RUN echo 'root:matlab' | chpasswd
Expand All @@ -17,8 +19,7 @@ RUN mkdir /opt/mcr
WORKDIR /mcr-install
COPY ./power ./power
COPY ./run.sh ./run.sh
#COPY ./MATLAB_Runtime_R2020b_glnxa64.zip ./MATLAB_Runtime_R2020b_glnxa64.zip
#COPY . .

RUN wget -q https://ssd.mathworks.com/supportfiles/downloads/R2020b/Release/0/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2020b_glnxa64.zip
RUN unzip -q MATLAB_Runtime_R2020b_glnxa64.zip
RUN ./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent
Expand Down

0 comments on commit 7fae83e

Please sign in to comment.