feat: first working version
This commit is contained in:
@@ -5,4 +5,6 @@ LABEL org.opencontainers.image.description="janishutz dev containers base image,
|
||||
|
||||
RUN pacman --noconfirm -Sy fish wget git
|
||||
|
||||
WORKDIR /mnt
|
||||
|
||||
CMD [ "fish" ]
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "
|
||||
Building base container
|
||||
"
|
||||
@@ -14,13 +16,19 @@ echo "
|
||||
Building Vue container
|
||||
"
|
||||
./build-helper.sh git.janishutz.com/registry/dev-container-vue vue
|
||||
#
|
||||
# echo "
|
||||
# Building Python container
|
||||
# "
|
||||
# ./build-helper.sh git.janishutz.com/registry/dev-container-python python
|
||||
|
||||
echo "
|
||||
Building Python container
|
||||
"
|
||||
./build-helper.sh git.janishutz.com/registry/dev-container-python python
|
||||
#
|
||||
# echo "
|
||||
# Building php container
|
||||
# "
|
||||
# ./build-helper.sh git.janishutz.com/registry/dev-container-php php
|
||||
|
||||
echo "
|
||||
|
||||
==> Build successful at $(date)
|
||||
|
||||
"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
FROM git.janishutz.com/registry/dev-container-base
|
||||
|
||||
RUN pacman --noconfirm -S python python-pip python-yaml python-wheel python-scipy \
|
||||
python-numpy python-pillow python-jsonschema python-pytest python-installer \
|
||||
python-colorama python-matplotlib python-setuptools python-sympy python-packaging \
|
||||
python-pyaml python-argcomplete python-cryptography
|
||||
|
||||
@@ -4,7 +4,7 @@ containername=$([[ $1 ]] && echo $1 || echo "devcontainer")
|
||||
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder to /mnt
|
||||
=> Mounting folder $containermount to /mnt (in container)
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
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
|
||||
-v $containermount:/var/www/html \
|
||||
--name $containername \
|
||||
erseco/alpine-php-webserver
|
||||
|
||||
Reference in New Issue
Block a user