Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build browser docker image by git url #367

Open
inklesspen1rus opened this issue Jun 30, 2024 · 0 comments
Open

Unable to build browser docker image by git url #367

inklesspen1rus opened this issue Jun 30, 2024 · 0 comments

Comments

@inklesspen1rus
Copy link

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant