GithubHelp home page GithubHelp logo

docker-compose-aarch64's Issues

exec format error

Cloned and ran using a aarch64 architecture. This is the error:

standard_init_linux.go:190: exec user process caused "exec format error"

Any ideas?

curl: (6) Could not resolve host: github.com

when I build the dockfile, an issue found:
Step 8/13 : RUN curl -fsSL https://github.com/pyinstaller/pyinstaller/releases/download/v$PYINSTALLER_VER/PyInstaller-$PYINSTALLER_VER.tar.gz | tar xvz >/dev/null && cd PyInstaller*/bootloader && python3 ./waf all
---> Running in 94b50f4ede87
curl: (6) Could not resolve host: github.com

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

I had set DNS in /etc/docker/daemon.json and /etc/resolv.conf
Why docker can not resolve host? thanks

Build fails constantly

> Collecting six==1.12.0
>   Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f92ee0d68>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/six/
> 

Likely not a problem with this Docker file.

Tried various solution discussed on stackoverflow, but none works. Any help is appreciated .

Gerry

`Cannot find ('compose/GITSHA', 'compose/GITSHA', 1, 'x')`

In Step 15 i get following output after the process ran for > 20 Minutes:

Step 13/15 : RUN mkdir ./dist     && pip install -q -r requirements.txt -r requirements-build.txt     && ./script/build/write-git-sha     && pyinstaller docker-compose.spec     && mv dist/docker-compose ./docker-compose-$(uname -s)-$(uname -m)
 ---> Running in de31b22ea62d

8d51620a
366 INFO: PyInstaller: 3.6
368 INFO: Python: 3.6.5
375 INFO: Platform: Linux-5.3.0-40-generic-aarch64-with-debian-9.4
380 INFO: UPX is not available.
387 INFO: Extending PYTHONPATH with paths
['/build/dockercompose/bin', '/build/dockercompose']
387 INFO: checking Analysis
388 INFO: Building Analysis because Analysis-00.toc is non existent
388 INFO: Initializing module dependency graph...
395 INFO: Caching module graph hooks...
452 INFO: Analyzing base_library.zip ...
34339 INFO: Caching module dependency graph...
35212 INFO: running Analysis Analysis-00.toc
35422 INFO: Analyzing bin/docker-compose
36456 INFO: Processing pre-find module path hook   distutils
36458 INFO: distutils: retargeting to non-venv dir '/usr/local/lib/python3.6'
38141 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
50585 INFO: Processing pre-safe import module hook   six.moves
90159 INFO: Processing module hooks...
90161 INFO: Loading module hook "hook-certifi.py"...
90165 INFO: Loading module hook "hook-cryptography.py"...
91567 INFO: Loading module hook "hook-jsonschema.py"...
91580 INFO: Loading module hook "hook-importlib_metadata.py"...
91587 INFO: Loading module hook "hook-distutils.py"...
91593 INFO: Loading module hook "hook-encodings.py"...
92097 INFO: Loading module hook "hook-nacl.py"...
92104 INFO: Loading module hook "hook-pydoc.py"...
92106 INFO: Loading module hook "hook-xml.py"...
92927 INFO: Looking for ctypes DLLs
93434 INFO: Analyzing run-time hooks ...
93501 INFO: Including run-time hook 'pyi_rth_certifi.py'
93508 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
93657 INFO: Looking for dynamic libraries
100774 INFO: Looking for eggs
100774 INFO: Using Python library /usr/local/lib/libpython3.6m.so.1.0
100848 INFO: Warnings written to /build/dockercompose/build/docker-compose/warn-docker-compose.txt
101618 INFO: Graph cross-reference written to /build/dockercompose/build/docker-compose/xref-docker-compose.html
101857 INFO: checking PYZ
101857 INFO: Building PYZ because PYZ-00.toc is non existent
101857 INFO: Building PYZ (ZlibArchive) /build/dockercompose/build/docker-compose/PYZ-00.pyz
108207 INFO: Building PYZ (ZlibArchive) /build/dockercompose/build/docker-compose/PYZ-00.pyz completed successfully.
108373 INFO: checking PKG
108373 INFO: Building PKG because PKG-00.toc is non existent
108373 INFO: Building PKG (CArchive) PKG-00.pkg
Cannot find ('compose/GITSHA', 'compose/GITSHA', 1, 'x')
Traceback (most recent call last):
  File "/usr/local/bin/pyinstaller", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/__main__.py", line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/__main__.py", line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 734, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 681, in build
    exec(code, spec_namespace)
  File "docker-compose.spec", line 102, in <module>
    bootloader_ignore_signals=True)
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/building/api.py", line 436, in __init__
    upx_exclude=self.upx_exclude
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/building/api.py", line 199, in __init__
    self.__postinit__()
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__
    self.assemble()
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/building/api.py", line 284, in assemble
    pylib_name=pylib_name)
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/archive/writers.py", line 336, in __init__
    super(CArchiveWriter, self).__init__(archive_path, logical_toc)
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/archive/writers.py", line 63, in __init__
    self._add_from_table_of_contents(logical_toc)
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/archive/writers.py", line 88, in _add_from_table_of_contents
    self.add(toc_entry)  # The guts of the archive.
  File "/usr/local/lib/python3.6/site-packages/PyInstaller/archive/writers.py", line 383, in add
    fh = open(pathnm, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'compose/GITSHA'
The command '/bin/sh -c mkdir ./dist     && pip install -q -r requirements.txt -r requirements-build.txt     && ./script/build/write-git-sha     && pyinstaller docker-compose.spec     && mv dist/docker-compose ./docker-compose-$(uname -s)-$(uname -m)' returned a non-zero code: 1

New versions

I managed to build with:
PyInstaller==0.3.4
six==0.12.0
docker-compose (git) == 1.23.2 (soon 1.24.0 will be available).

I can prepare a proper pull request if you prefer.

Thanks!

BTW, removing those lines allowing building on aarch64:

COPY ./vendor/qemu-bin /usr/bin/
RUN [ "cross-build-start" ]

"/qemu-bin: no such file or directory"

This error happened on my build:

Step 3/16 : COPY ./vendor/qemu-bin /usr/bin/
COPY failed: stat /var/lib/docker/tmp/docker-builder083465351/vendor/qemu-bin: no such file or directory

Any help is appreciated.
Thx
Gerry

Build fails on Raspberry Pi 4 - Ubuntu 19.10 - aarch64

Hi there... I am trying to build this but I am getting an error, I have no idea.

Please advice, thanks in advance.

[root@pi4 ~/docker-compose-aarch64-1.25.4]  docker build . -t docker-compose-aarch64-builder
Sending build context to Docker daemon  4.881MB
Step 1/16 : FROM arm64v8/python:3.7.7-stretch
3.7.7-stretch: Pulling from arm64v8/python
668c278237ef: Pull complete 
8b41cac09012: Pull complete 
094b35393827: Pull complete 
95fba2538bf9: Pull complete 
6e1c9497c36a: Pull complete 
a74f16752538: Pull complete 
6f44aa925681: Pull complete 
5ba35f89967f: Pull complete 
85d06a3370cf: Pull complete 
Digest: sha256:6cf8ebe03f8b86f7e5acf9abc74563bcfe122f33daa87ba4e64588f37d6d75ab
Status: Downloaded newer image for arm64v8/python:3.7.7-stretch
 ---> 5c374f780c14
Step 2/16 : ENV LANG C.UTF-8
 ---> Running in 2c65d8c14415
Removing intermediate container 2c65d8c14415
 ---> d934376883bf
Step 3/16 : COPY ./vendor/qemu-bin /usr/bin/
 ---> 5fab3866f592
Step 4/16 : RUN [ "cross-build-start" ]
 ---> Running in 3e388da7c03d
standard_init_linux.go:211: exec user process caused "exec format error"
The command 'cross-build-start' returned a non-zero code: 1

--------------------------------------------------------------------

[root@pi4 ~/docker-compose-aarch64-1.25.4]  docker --version
Docker version 19.03.8, build afacb8b


[root@pi4 ~/docker-compose-aarch64-1.25.4]  lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.10
Release:	19.10
Codename:	eoan


[root@pi4 ~/docker-compose-aarch64-1.25.4]  uname -a
Linux pi4 5.3.0-1019-raspi2 #21-Ubuntu SMP Mon Feb 17 14:05:03 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.