feat: launch scripts, dockerfiles for more languages

This commit is contained in:
2026-07-02 09:53:01 +02:00
parent 93e212607a
commit e0ebb5e5bc
17 changed files with 132 additions and 5 deletions
+7 -1
View File
@@ -1,4 +1,10 @@
# dev-env
Utilities for a more secure development environment.
Docker container build resources for all the languages I use regularly
Docker container build resources for all the languages I use regularly
The scripts directory here contains scripts to create a docker container.
Each of them takes as arguments first the container name, then the folder to mount.
My [dotfiles](https://git.janishutz.com/janishutz/dotfiles) also have a script that is a
one-stop solution for all of the containers, and also features autocomplete
+5 -2
View File
@@ -1,5 +1,8 @@
FROM archlinux
LABEL org.opencontainers.image.title="janishutz dev containers base"
LABEL org.opencontainers.image.description="janishutz dev containers base image, off which other containers are to be based"
RUN pacman --noconfirm -Sy fish wget git
# TODO: Finish
# RUN wget https://git.janishutz.com/
CMD [ "fish" ]
+20 -2
View File
@@ -1,13 +1,31 @@
#!/bin/sh
echo "
Building base container
"
cd base
docker buildx build . -t git.janishutz.com/registry/dev-container-base
echo "
Building npm container
"
cd ../npm
docker buildx build . -t git.janishutz.com/registry/dev-container-npm
# cd ../vue
# docker buildx build . -t git.janishutz.com/registry/dev-container-vue
echo "
Building Vue container
"
cd ../vue
docker buildx build . -t git.janishutz.com/registry/dev-container-vue
#
# echo "
# Building Python container
# "
# cd ../python
# docker buildx build . -t git.janishutz.com/registry/dev-container-python
#
# echo "
# Building php container
# "
# cd ../php
# docker buildx build . -t git.janishutz.com/registry/dev-container-php
+2
View File
@@ -1,3 +1,5 @@
FROM git.janishutz.com/registry/dev-container-base
RUN pacman --noconfirm -S nodejs npm yarn
RUN npm i -g express express-session @types/express @types/express-session
View File
+3
View File
@@ -0,0 +1,3 @@
FROM git.janishutz.com/registry/dev-container-base
RUN pacman --noconfirm -S composer php
View File
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "devcontainer")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt
"
docker run -it \
-v $containermount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $containername \
-w /mnt \
git.janishutz.com/registry/dev-container-base
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "node")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt (in container)
"
docker run -it \
-v $containermount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $containername \
-w /mnt \
git.janishutz.com/registry/dev-container-npm
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "php")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt
"
docker run -it \
-v $containermount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $containername \
-w /mnt \
git.janishutz.com/registry/dev-container-php
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "python")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt (in container)
"
docker run -it \
-v $containermount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $containername \
-w /mnt \
git.janishutz.com/registry/dev-container-python
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "vue")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt (in container)
"
docker run -it \
-v $containermount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $containername \
-w /mnt \
git.janishutz.com/registry/dev-container-vue
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "webserver")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt
"
docker run --rm \
-v $containermount:/mnt \
git.janishutz.com/registry/dev-container-base
# TODO: Update the used image
+2
View File
@@ -1 +1,3 @@
FROM git.janishutz.com/registry/dev-container-npm
RUN npm i -g create-vue vite typescript-eslint @eslint/js @stylistic/eslint-plugin eslint-plugin-vue globals