bravissimolabs / docker-alpine-git

Alpine based docker image with git installed.
MIT License
18 stars 16 forks source link

git submodule does not work #1

Open steefdebruijn opened 8 years ago

steefdebruijn commented 8 years ago

perl seems not to be installed and that seems to be required for git submodule use.

reproduce:

docker run --rm -ti bravissimolabs/alpine-git bash
bash-4.3# mkdir t
bash-4.3# cd t
bash-4.3# git init
Initialized empty Git repository in /t/.git/
bash-4.3# git submodule init
/usr/libexec/git-core/git-submodule: line 1: /usr/bin/perl: not found
bash-4.3#
steefdebruijn commented 8 years ago

Just adding perl seems to be enough:

bash-4.3# apk add --no-cache perl
fetch http://alpine.gliderlabs.com/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch http://alpine.gliderlabs.com/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
(1/1) Installing perl (5.22.1-r0)
Executing busybox-1.24.1-r7.trigger
OK: 77 MiB in 27 packages
bash-4.3# git submodule init
bash-4.3#