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

Cannot hijack task container that is based on oci-build-task #49

Closed
holgerstolzenberg opened this issue Dec 10, 2020 · 2 comments
Closed

Comments

@holgerstolzenberg
Copy link

Problem described in summary.

Task file:

---
platform: linux

inputs:
  - name: pull-request
    path: .

image_resource:
  type: registry-image
  source:
    repository: vito/oci-build-task
    tag: 0.4.0

caches:
  - path: cache

run:
  path: build

When the task failed I tried to hijack the container and git this:

Screenshot 2020-12-10 at 13 30 02

Looks like bash is missing in $PATH

@holgerstolzenberg
Copy link
Author

Okay - I wasn´t aware that the default command of hijack can be changed. I was able to access the container.
Still you might want to consider adding bash to the image.

@vito
Copy link
Member

vito commented Jan 4, 2021

This will be handled in future versions of Concourse which fall back to sh if bash doesn't exist. Should be in Concourse v7+ - it's already in master.

I could add bash to the image but it might be shortlived if we switch to kaniko-based building (#46), which requires the image to be essentially empty. Would prefer to rely on Concourse's feature change for now. Thanks!

@vito vito closed this as completed Jan 4, 2021
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

2 participants