feat: launch scripts, dockerfiles for more languages
This commit is contained in:
@@ -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
@@ -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" ]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM git.janishutz.com/registry/dev-container-base
|
||||
|
||||
RUN pacman --noconfirm -S composer php
|
||||
|
||||
Executable
+16
@@ -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
|
||||
Executable
+16
@@ -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
|
||||
Executable
+16
@@ -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
|
||||
Executable
+16
@@ -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
|
||||
Executable
+16
@@ -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
|
||||
Executable
+13
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user