feat (docker) : add standalone docker image
This commit is contained in:
parent
f249f78d9f
commit
65c1aa57fe
@ -31,6 +31,12 @@ Tâches [Make](https://fr.wikipedia.org/wiki/Make) génériques à utiliser de p
|
||||
|
||||
3. Vous pouvez commencer à utiliser les tâches Make partagées !
|
||||
|
||||
### Utilisation standalone
|
||||
1. Lancer l'image docker en créant un volume avec les fichers de votre projet dans /code
|
||||
```
|
||||
docker run -it -v $PWD:/code reg.cadoles.com/cadoles/mktools:1.0 mkt-project-version
|
||||
```
|
||||
|
||||
## Tâches disponibles
|
||||
|
||||
|Tâches|Description|Documentation|
|
||||
|
21
misc/image/Dockerfile
Normal file
21
misc/image/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM alpine:3.21
|
||||
|
||||
RUN apk update --no-cache \
|
||||
&& apk add --no-cache \
|
||||
make \
|
||||
curl \
|
||||
bash \
|
||||
git \
|
||||
&& mkdir /mktools
|
||||
|
||||
COPY ./tasks/* mktools/
|
||||
|
||||
RUN touch /mktools/Makefile \
|
||||
&& echo "-include /mktools/*.mk" >> /mktools/Makefile \
|
||||
&& mkdir /code \
|
||||
&& git config --global --add safe.directory /code
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY --chmod=550 ./misc/image/mktools /usr/local/bin/mktools
|
||||
ENTRYPOINT [ "mktools" ]
|
2
misc/image/mktools
Executable file
2
misc/image/mktools
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env sh
|
||||
make -f /mktools/Makefile $1
|
Loading…
x
Reference in New Issue
Block a user