ONLYOFFICE/build_tools

build server in docker run error

mypursuit opened this issue · 6 comments

Describe your problem:

use the mast source code , but run docker throw error
image

Dockerfile like this

FROM ubuntu:16.04

ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get -y update && \
    apt-get -y install python \
    python3 \
    sudo
RUN rm /usr/bin/python && ln -s /usr/bin/python2 /usr/bin/python
ADD . /build_tools
WORKDIR /build_tools

CMD cd tools/linux && \
    python3 ./automate.py server

docker commnad like this

mkdir /onlyoffice-builder/out
cd /onlyoffice-builder
docker build -t onlyoffice-builder:7.5.0 .
docker run --name onlyoffice-builder -v /onlyoffice-builder/out:/build_tools/out onlyoffice-builder:7.5.0

docker info

Client: Docker Engine - Community
 Version:    26.1.4
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.14.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.27.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 7
 Server Version: 26.1.4
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: d2d58213f83a351ca8f528a95fbd145f5654e957
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-35-generic
 Operating System: Ubuntu 24.04 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 23.31GiB
 Name: FZJ
 ID: c4fe8b49-5896-4efe-aaf9-fa907d7ac1e3
 Docker Root Dir: /virtual/docker/data
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  https://8seoxtt9.mirror.aliyuncs.com/
 Live Restore Enabled: false

throw the same error when I build in ubuntu 16.4.8(install in virtualbox 7.0)

Hello @mypursuit, i checked the compilation, got no errors. You have an archive error, usually occurs due to unstable internet connection when downloading. I recommend compiling on a cloud server if your network has internet problems.

@igwyd Thank you, but can you tell me, how to see what's archive get error.
0A7CB537

If you look at your screenshot, it looks like it's an archive with qt.

I close this issue. Feel free to comment or reopen it if you got further questions.