Skip to content

Commit 8c60c56

Browse files
committed
[fix] Font: 'Times New Roman' is Now Installed
1 parent 52dc18d commit 8c60c56

5 files changed

Lines changed: 24 additions & 15 deletions

File tree

Dockerfile.cpu

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG CUDA_VERSION
2-
ARG UBUNTU_VERSION
2+
ARG UBUNTU_VERSION=24.04
33

44
FROM ubuntu:${UBUNTU_VERSION}
55

@@ -27,10 +27,12 @@ SHELL ["/bin/bash", "-c"]
2727
RUN apt-get update && apt-get upgrade -y && \
2828
apt-get install -y \
2929
apt-utils lsb-release software-properties-common gnupg git acl sed\
30-
vim-gtk3 wget p7zip-full ninja-build curl jq pkg-config ssh \
31-
build-essential gdb htop tmux ttf-mscorefonts-installer kmod \
30+
vim-gtk3 wget p7zip-full ninja-build curl jq pkg-config ssh ccache \
31+
build-essential gdb htop tmux kmod \
3232
libssl-dev && \
33-
fc-cache -f -v
33+
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" \
34+
| debconf-set-selections && \
35+
apt-get --reinstall install -y ttf-mscorefonts-installer && fc-cache -f -v
3436

3537
# Vcpkg
3638
RUN git clone https://github.com/microsoft/vcpkg.git ${VCPKG_HOME} && \

Dockerfile.cuda

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG CUDA_VERSION
2-
ARG UBUNTU_VERSION
2+
ARG UBUNTU_VERSION=24.04
33

44
FROM nvidia/cuda:${CUDA_VERSION}-cudnn-devel-ubuntu${UBUNTU_VERSION}
55

@@ -27,10 +27,12 @@ SHELL ["/bin/bash", "-c"]
2727
RUN apt-get update && apt-get upgrade -y && \
2828
apt-get install -y \
2929
apt-utils lsb-release software-properties-common gnupg git acl sed \
30-
vim-gtk3 wget p7zip-full ninja-build curl jq pkg-config ssh \
31-
build-essential gdb htop tmux ttf-mscorefonts-installer kmod \
30+
vim-gtk3 wget p7zip-full ninja-build curl jq pkg-config ssh ccache \
31+
build-essential gdb htop tmux kmod \
3232
libssl-dev && \
33-
fc-cache -f -v
33+
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" \
34+
| debconf-set-selections && \
35+
apt-get --reinstall install -y ttf-mscorefonts-installer && fc-cache -f -v
3436

3537
# Vcpkg
3638
RUN git clone https://github.com/microsoft/vcpkg.git ${VCPKG_HOME} && \

data/create-shared-dir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ TARGET_DIRS=("$@")
2929
# --- Input Validation ---
3030
if [ ${#TARGET_DIRS[@]} -eq 0 ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
3131
echo "Usage: $0 <shared_group> <dir1> [<dir2> ...]"
32-
echo "Example: $0 developers /var/www/project_a"
3332
exit 1
3433
fi
3534

@@ -60,4 +59,5 @@ for target_dir in "${TARGET_DIRS[@]}"; do
6059
done
6160

6261
echo "Configuration complete."
62+
echo "[NOTE] This script is once-off. You do not need to run it again for the same dirs."
6363
exit 0

data/env_setup.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# @ https://patorjk.com/software/taag/?p=display&f=Varsity&t=JNL%2FDL&x=none
12
sed "s|\${IMAGE_NAME}|${IMAGE_NAME}|g" << 'EOF'
23
===============================================================================
34
_____ ____ _____ _____ __ ______ _____
@@ -8,9 +9,9 @@ sed "s|\${IMAGE_NAME}|${IMAGE_NAME}|g" << 'EOF'
89
`.____.' |_____|\____| |________| /_/ |______.' |________|
910
1011
-------------------------------------------------------------------------------
11-
Image Name: ${IMAGE_NAME}
12-
Creator: jamesnulliu <jamesnulliu@gmail.com>
13-
License: MIT
12+
Image Name: ${IMAGE_NAME}
13+
Creator: JamesNULLiu <jamesnulliu@gmail.com>
14+
License: MIT
1415
===============================================================================
1516
EOF
1617

@@ -71,10 +72,14 @@ if [ -d "${UV_HOME:-}" ]; then
7172
echo "[ENV-SETUP] UV initialized from $UV_HOME"
7273
echo "|- Note: For managing shared UV cache directory:"
7374
echo "|- 1. Export UV_CACHE_DIR to a target directory. (No need to create it first.)"
74-
echo "|- 2. Run: \`sudo create-shared-dir <group> \${UV_CACHE_DIR}\`"
75-
echo "|- 3. For all users in <group>, make sure UV_CACHE_DIR is set properly."
75+
echo "|- 2. Run: \`sudo create-shared-dir <group> \${UV_CACHE_DIR}\` ONLY ONCE."
76+
echo "|- 3. For all users in <group>, make sure UV_CACHE_DIR is exported properly."
7677
echo "|- You can add it to \${ENV_SETUP_FILE} for convenience."
7778
echo "|- 4. Remove this note from \${ENV_SETUP_FILE} if you want."
79+
80+
## You can uncomment the following line to set a shared cache dir for UV.
81+
## Make sure to run `sudo create-shared-dir <group> $UV_CACHE_DIR` ONLY ONCE.
82+
# export UV_CACHE_DIR="$UV_HOME/.cache"
7883
else
7984
unset UV_HOME
8085
fi

scripts/image-configs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
IMAGE_VERSION=2.4.1
1+
IMAGE_VERSION=2.4.2
22
TORCH_VERSION=2.7.1
33
CUDA_VERSION=12.8.0
44
UBUNTU_VERSION=24.04

0 commit comments

Comments
 (0)