Skip to content

Commit 8f2a28a

Browse files
committed
updates to workstation. Ubuntu Noble, remove anaconda repository dependance and unattended updates
1 parent d8edd8e commit 8f2a28a

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

docker/workstation-base/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntujammy-3effa35f-ls4
1+
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
22
# BASED ON WEBTOP
33
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6+
LABEL build_version="CSC-Workstation version:- ${VERSION} Build-date:- ${BUILD_DATE}"
67
ARG DEBIAN_FRONTEND="noninteractive"
78

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+
812
RUN \
913
echo "**** install packages ****" && \
1014
apt-get update && \
@@ -17,6 +21,7 @@ RUN \
1721
mate-system-monitor \
1822
pluma \
1923
wget \
24+
unattended-upgrades \
2025
ubuntu-mate-artwork \
2126
ubuntu-mate-default-settings \
2227
ubuntu-mate-desktop \

docker/workstation-base/setup/conda/standard_env.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: developer
22
channels:
33
- plotly
4-
- anaconda
54
- conda-forge
6-
- defaults
5+
- nodefaults
76
dependencies:
87
- python
98
- seaborn

docker/workstation-base/setup/conda/standard_gpu_env.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ channels:
33
- nvidia
44
- pytorch
55
- plotly
6-
- anaconda
76
- conda-forge
8-
- defaults
7+
- nodefaults
98
dependencies:
109
- python
1110
- seaborn
@@ -28,9 +27,9 @@ dependencies:
2827
- setuptools
2928
- matplotlib
3029
- tqdm
31-
- pytorch-cuda=11.8
30+
- nvidia:cudatoolkit=12.*
3231
- torchaudio
33-
- pytorch
32+
- pytorch:pytorch
3433
- cudatoolkit
3534
- torchvision
3635
- conda-forge:cupy

docker/workstation-base/setup/scripts/conda.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ if [ $ssl_avoid = y ] || [ $ssl_avoid = Y ]; then
88
echo "ssl set to avoid"
99
/miniconda/bin/conda config --set ssl_verify False
1010
fi
11-
/miniconda/bin/conda update -y conda
11+
#/miniconda/bin/conda update -y conda
1212
/miniconda/bin/conda init
1313
source ~/.bashrc
14-
conda install -c conda-forge mamba -y
14+
1515
gpu=$(which nvidia-smi)
1616
if [[ $gpu == '/usr/bin/nvidia-smi' ]]; then
1717
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
1919
else
2020
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
2222
fi
2323

2424
conda activate developer
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

0 commit comments

Comments
 (0)