Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
containerize
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Studio R215
containerize
Commits
36dc4084
Commit
36dc4084
authored
1 month ago
by
Sebastian Karius
Browse files
Options
Downloads
Patches
Plain Diff
add ubuntu 24
parent
3d5a2906
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+8
-0
8 additions, 0 deletions
docker-compose.yml
docker/coder-ubuntu_24-python/Dockerfile
+66
-0
66 additions, 0 deletions
docker/coder-ubuntu_24-python/Dockerfile
with
74 additions
and
0 deletions
docker-compose.yml
+
8
−
0
View file @
36dc4084
...
...
@@ -15,6 +15,14 @@ services:
cache_from
:
-
${CI_REGISTRY}/studio-r215/containerize/coder-ubuntu-python:22
coder-ubuntu-python-24
:
image
:
${CI_REGISTRY}/studio-r215/containerize/coder-ubuntu-python:24
build
:
dockerfile
:
Dockerfile
context
:
./docker/coder-ubuntu_24-python
cache_from
:
-
${CI_REGISTRY}/studio-r215/containerize/coder-ubuntu-python:24
coder-med
:
image
:
${CI_REGISTRY}/studio-r215/containerize/coder-med:25
build
:
...
...
This diff is collapsed.
Click to expand it.
docker/coder-ubuntu_24-python/Dockerfile
0 → 100644
+
66
−
0
View file @
36dc4084
FROM
ubuntu:24.04
LABEL
authors="sebastian"
SHELL
["/bin/bash", "-c"]
# prevent tensorflow from allocation all vram
ENV
TF_FORCE_GPU_ALLOW_GROWTH=true
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
&&
apt-get upgrade
-y
# install basic tools
RUN
apt-get
install
-y
git wget curl
# install python, pip and venv
RUN
apt-get
install
-y
python3 python3-pip python3-venv
# install pipx
ENV
TZ=Europe/Berlin
RUN
apt-get
install
-y
pipx
RUN
pipx ensurepath
# install pipenv
RUN
apt-get
install
-y
pipenv
# install conda
RUN
mkdir
-p
/opt/miniconda3
RUN
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O
./miniconda.sh
RUN
bash ./miniconda.sh
-b
-u
-p
/opt/miniconda3
RUN
rm
./miniconda.sh
RUN
source
/opt/miniconda3/bin/activate
RUN
/opt/miniconda3/bin/conda init
--all
# install poetry
RUN
pipx
install
poetry
RUN
apt-get
install
-y
htop
\
sudo
\
unzip
\
rsync
\
vim
\
nano
\
cargo
\
tmux
\
screen
\
byobu
\
pv
\
brotli
# create coder user
RUN
useradd
-ms
/bin/bash coder
RUN
usermod
-aG
sudo
coder
# allow sudo without password
RUN
echo
'%sudo ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
# clean up
RUN
apt-get clean
RUN
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# switch to coder user
USER
coder
WORKDIR
/home/coder
# add .local/bin to PATH to be able to directly call python modules installed by pipx
ENV
PATH="${PATH}:/home/coder/.local/bin"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment