File tree Expand file tree Collapse file tree 5 files changed +20
-11
lines changed Expand file tree Collapse file tree 5 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 1
- FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntujammy-3effa35f-ls4
1
+ FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
2
2
# BASED ON WEBTOP
3
3
# set version label
4
4
ARG BUILD_DATE
5
5
ARG VERSION
6
+ LABEL build_version="CSC-Workstation version:- ${VERSION} Build-date:- ${BUILD_DATE}"
6
7
ARG DEBIAN_FRONTEND="noninteractive"
7
8
9
+ # prevent Ubuntu's firefox stub from being installed
10
+ COPY /root/etc/apt/preferences.d/firefox-no-snap /etc/apt/preferences.d/firefox-no-snap
11
+
8
12
RUN \
9
13
echo "**** install packages ****" && \
10
14
apt-get update && \
17
21
mate-system-monitor \
18
22
pluma \
19
23
wget \
24
+ unattended-upgrades \
20
25
ubuntu-mate-artwork \
21
26
ubuntu-mate-default-settings \
22
27
ubuntu-mate-desktop \
Original file line number Diff line number Diff line change 1
1
name : developer
2
2
channels :
3
3
- plotly
4
- - anaconda
5
4
- conda-forge
6
- - defaults
5
+ - nodefaults
7
6
dependencies :
8
7
- python
9
8
- seaborn
Original file line number Diff line number Diff line change @@ -3,9 +3,8 @@ channels:
3
3
- nvidia
4
4
- pytorch
5
5
- plotly
6
- - anaconda
7
6
- conda-forge
8
- - defaults
7
+ - nodefaults
9
8
dependencies :
10
9
- python
11
10
- seaborn
@@ -28,9 +27,9 @@ dependencies:
28
27
- setuptools
29
28
- matplotlib
30
29
- tqdm
31
- - pytorch-cuda=11.8
30
+ - nvidia:cudatoolkit=12.*
32
31
- torchaudio
33
- - pytorch
32
+ - pytorch:pytorch
34
33
- cudatoolkit
35
34
- torchvision
36
35
- conda-forge:cupy
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ if [ $ssl_avoid = y ] || [ $ssl_avoid = Y ]; then
8
8
echo " ssl set to avoid"
9
9
/miniconda/bin/conda config --set ssl_verify False
10
10
fi
11
- /miniconda/bin/conda update -y conda
11
+ # /miniconda/bin/conda update -y conda
12
12
/miniconda/bin/conda init
13
13
source ~ /.bashrc
14
- conda install -c conda-forge mamba -y
14
+
15
15
gpu=$( which nvidia-smi)
16
16
if [[ $gpu == ' /usr/bin/nvidia-smi' ]]; then
17
17
echo Nvidia GPU found. Installing GPU standard env.
18
- mamba env create -f /setup/conda/standard_gpu_env.yaml --prefix ~ /.conda/envs/developer
18
+ conda env create -f /setup/conda/standard_gpu_env.yaml --prefix ~ /.conda/envs/developer --yes
19
19
else
20
20
echo No Nvidia GPU found. Installing standard env.
21
- mamba env create -f /setup/conda/standard_env.yaml --prefix ~ /.conda/envs/developer
21
+ conda env create -f /setup/conda/standard_env.yaml --prefix ~ /.conda/envs/developer --yes
22
22
fi
23
23
24
24
conda activate developer
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Create cron file
4
+ sudo touch /var/spool/cron/root
5
+ # Cronjob for unattended upgrade 1am Sundays.
6
+ echo " 0 1 * * 0 /usr/bin/unattended-upgrade -v" | sudo tee -a /var/spool/cron/crontabs/root
You can’t perform that action at this time.
0 commit comments