question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] bundle.tgz becomes corrupted while using docker

See original GitHub issue

Describe the bug Bundling or adding bundle file to Dockerfile

To Reproduce


# First stage
FROM node:14.15.1-alpine as bundler
WORKDIR usr/src/app

ADD . .

RUN yarn install
RUN yarn workspace @services/service bundle

WORKDIR services/service 
RUN yarn bundle
RUN apk update
RUN apk add tar
RUN ls -la ./
RUN tar xvf bundle.tgz

Step 9/14 : RUN tar xvf bundle.tgz —> Running in 93349fea266e gzip: invalid magic tar: Child returned status 1 tar: Error is not recoverable: exiting now The command ‘/bin/sh -c tar xvf bundle.tgz’ returned a non-zero code: 2

Expected behavior Extract files

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • yarn 2.4.0
  • yarn.build latest

Additional context Able to extract it in terminal. Either mounted or bundled, bundle.tgz is corrupted.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
valdestroncommented, Jan 11, 2021

Working.

0reactions
ojkellycommented, Jan 8, 2021

I’ve just released v0.9.53, which has a fix to output bundle.zip instead of .tgz.

Can you confirm if latest is now working correctly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug listing with status RESOLVED with resolution FIXED as at ...
Bug listing with status RESOLVED with resolution FIXED as at 2022/12/24 19:46:07 ... Bug:39 - "default.tar.bz2 in mplayer gets wrong digest all the...
Read more >
docker backup sometimes is corrupt and cannot be restored
This is a known issue. You cannot backup Fuel (and its nailgun DB), make changes, and then restore. Nailgun's DB cannot compensate for...
Read more >
Error processing tar file(exit status 1): unexpected EOF
I had this issue when my build directory contained several gigabytes core dump file. I've tried removing docker directory with no luck, but...
Read more >
Cluster Administration OpenShift Container Platform 3.11
Enable Images to Run with USER in the Dockerfile · 15.8.4. ... If an etcd host has become corrupted and the /etc/etcd/etcd.conf file...
Read more >
Common errors | npm Docs
Broken npm installation · Random errors · No compatible version found · Permissions errors · Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on Windows 7 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found