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
Compare revisions
27b0fc2a20bff3ea17bd4a98f677ca79a7148b56 to 641bcaeef1686d28af6922888ba151bde22cec02
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
studio-r215/containerize
Select target project
No results found
641bcaeef1686d28af6922888ba151bde22cec02
Select Git revision
Branches
main
Swap
Target
studio-r215/containerize
Select target project
studio-r215/containerize
1 result
27b0fc2a20bff3ea17bd4a98f677ca79a7148b56
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
add ubuntu 24
· 36dc4084
Sebastian Karius
authored
1 month ago
36dc4084
Merge remote-tracking branch 'origin/main'
· 641bcaee
Sebastian Karius
authored
1 month ago
641bcaee
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
View file @
641bcaee
...
...
@@ -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
View file @
641bcaee
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.