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
|
RUN pacman --noconfirm -Sy fish wget git
|
||||||
|
|
||||||
|
WORKDIR /mnt
|
||||||
|
|
||||||
CMD [ "fish" ]
|
CMD [ "fish" ]
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
Building base container
|
Building base container
|
||||||
"
|
"
|
||||||
@@ -14,13 +16,19 @@ echo "
|
|||||||
Building Vue container
|
Building Vue container
|
||||||
"
|
"
|
||||||
./build-helper.sh git.janishutz.com/registry/dev-container-vue vue
|
./build-helper.sh git.janishutz.com/registry/dev-container-vue vue
|
||||||
#
|
|
||||||
# echo "
|
echo "
|
||||||
# Building Python container
|
Building Python container
|
||||||
# "
|
"
|
||||||
# ./build-helper.sh git.janishutz.com/registry/dev-container-python python
|
./build-helper.sh git.janishutz.com/registry/dev-container-python python
|
||||||
#
|
#
|
||||||
# echo "
|
# echo "
|
||||||
# Building php container
|
# Building php container
|
||||||
# "
|
# "
|
||||||
# ./build-helper.sh git.janishutz.com/registry/dev-container-php php
|
# ./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/")
|
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
=> Mounting folder to /mnt
|
=> Mounting folder $containermount to /mnt (in container)
|
||||||
"
|
"
|
||||||
|
|
||||||
docker run -it \
|
docker run -it \
|
||||||
|
|||||||
@@ -3,11 +3,7 @@
|
|||||||
containername=$([[ $1 ]] && echo $1 || echo "webserver")
|
containername=$([[ $1 ]] && echo $1 || echo "webserver")
|
||||||
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||||
|
|
||||||
echo "
|
|
||||||
=> Mounting folder to /mnt
|
|
||||||
"
|
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v $containermount:/mnt \
|
-v $containermount:/var/www/html \
|
||||||
git.janishutz.com/registry/dev-container-base
|
--name $containername \
|
||||||
# TODO: Update the used image
|
erseco/alpine-php-webserver
|
||||||
|
|||||||
Reference in New Issue
Block a user