tuanavu / airflow-tutorial

Apache Airflow tutorial
MIT License
927 stars 1.01k forks source link

docker-compose up fails #39

Open alanknipmeyer opened 4 years ago

alanknipmeyer commented 4 years ago

git clone then docker-compose up fails

docker-compose up
Building webserver
ERROR: error initializing submodules: usage: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] deinit [-f|--force] [--] <path>...
   or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--rebase] [--reference <repository>] [--merge] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--recursive] [--] [<path>...]
: exit status

Docker Version -

docker version
Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:46:54 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:45:28 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

docker-compose version

[docker-compose version 1.26.2, build eefe0d31
docker-py version: 4.2.2
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019]
```(url)

Git version

git version git version 1.8.3.1

cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)

alanknipmeyer commented 4 years ago

On centos 7 minimial install downloaded latest git source version and included developer tools, resulted in the docker-compose to not fail on this specific point.

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
yum group install "Development Tools" 
yum install perl-devel
yum install zlib-devel.x86_64
tar xvfz git-2.9.5.tar.gz
cd git-2.9.5
./configure ; make; make install
mv /bin/git /var/tmp/
ln -s /usr/local/bin/git /bin/git
git --version
git version 2.9.5
alanknipmeyer commented 4 years ago

Next error :)

# docker-compose up
Building webserver
ERROR: error fetching: fatal: Unable to find remote helper for 'https'
: exit status 128

yum install curl-devel
cd git-2-9-5
./configure ; make ; make install

fixed the issue