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

Symlink bitnami kubectl location to standard path #36

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

jgriff
Copy link
Owner

@jgriff jgriff commented Nov 18, 2022

The bitnami base image adds their location of kubectl to the PATH.

  PATH=/opt/bitnami/kubectl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

However this PATH location can be lost during a docker export/import of the image, making bundling this resource difficult.

  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

To resolve this, we now create a symbolic link in the standard PATH location:

  /usr/local/bin/kubectl -> /opt/bitnami/kubectl/bin/kubectl

The link is preserved during export/import, so our resource scripts can still locate kubectl even though the bitnami location is no longer on the PATH.

See https://concourse-ci.org/concourse-worker.html#installing-or-upgrading-bundled-resource-types
Closes #35

The bitnami base image adds their location of kubectl to the PATH.

  PATH=/opt/bitnami/kubectl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

However this PATH location can be lost during a docker export/import
of the image, making bundling this resource difficult.

  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

To resolve this, we now create a symbolic link in the standard PATH location:

  /usr/local/bin/kubectl -> /opt/bitnami/kubectl/bin/kubectl

The link is preserved during export/import, so our resource scripts can
still locate kubectl even though the bitnami location is no longer on
the PATH.

See https://concourse-ci.org/concourse-worker.html#installing-or-upgrading-bundled-resource-types
Closes #35
@jgriff jgriff merged commit 5041e5b into master Nov 18, 2022
@jgriff jgriff deleted the 35/rootfs-export branch November 18, 2022 17:07
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

Successfully merging this pull request may close these issues.

Can't use k8s-resource as a bundled resource type due to rootfs export
1 participant