theia-blueprint icon indicating copy to clipboard operation
theia-blueprint copied to clipboard

Unable to build browser docker image by git url

Open inklesspen1rus opened this issue 7 months ago • 0 comments

Bug Description:

Unable to build browser docker image by git url with command: docker build -f browser.Dockerfile https://github.com/eclipse-theia/theia-blueprint.git

Steps to Reproduce:

  1. Run docker build -f browser.Dockerfile https://github.com/eclipse-theia/theia-blueprint.git

Error:

289.8 rm: cannot remove '.git': No such file or directory
------
browser.Dockerfile:15
--------------------
  14 |     # Use yarn autoclean to remove unnecessary files from package dependencies
  15 | >>> RUN yarn --pure-lockfile && \
  16 | >>>     yarn build:extensions && \
  17 | >>>     yarn download:plugins && \
  18 | >>>     yarn browser build && \
  19 | >>>     yarn && \
  20 | >>>     yarn autoclean --init && \
  21 | >>>     echo *.ts >> .yarnclean && \
  22 | >>>     echo *.ts.map >> .yarnclean && \
  23 | >>>     echo *.spec.* >> .yarnclean && \
  24 | >>>     yarn autoclean --force && \
  25 | >>>     yarn cache clean && \
  26 | >>>     rm -r .git applications/electron theia-extensions/launcher theia-extensions/updater node_modules
  27 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn --pure-lockfile &&     yarn build:extensions &&     yarn download:plugins &&     yarn browser build &&     yarn &&     yarn autoclean --init &&     echo *.ts >> .yarnclean &&     echo *.ts.map >> .yarnclean &&     echo *.spec.* >> .yarnclean &&     yarn autoclean --force &&     yarn cache clean &&     rm -r .git applications/electron theia-extensions/launcher theia-extensions/updater node_modules" did not complete successfully: exit code: 1

Building after cloning repo work fine

Additional Information

  • Operating System: Manjaro
  • Theia Version: https://github.com/eclipse-theia/theia-blueprint/tree/1dcf4430566c7faf1e0b7251772c996b734a68cb Docker:
Client:
 Version:           26.1.3
 API version:       1.43 (downgraded from 1.45)
 Go version:        go1.22.3
 Git commit:        b72abbb6f0
 Built:             Fri May 17 14:58:53 2024
 OS/Arch:           linux/amd64
 Context:           rootless

Server: Docker Engine - Community
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:56 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.1
  GitCommit:        1677a17964311325ed1c31e2c0a3589ce6d5c30d
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
 rootlesskit:
  Version:          1.1.0
  ApiVersion:       1.1.1
  NetworkDriver:    slirp4netns
  PortDriver:       builtin
  StateDir:         /tmp/rootlesskit1821628324
 slirp4netns:
  Version:          1.3.1
  GitCommit:        e5e368c4f5db6ae75c2fce786e31eef9da6bf236

inklesspen1rus avatar Jun 30 '24 07:06 inklesspen1rus