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

If user is 0, they should be able to write to any groups #65

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kaovilai
Copy link
Contributor

@kaovilai kaovilai commented Nov 1, 2024

debugging an install in crc.dev environment and blocked by directory is writable check despite running as gid 0.

docker buildx build --push --pull -t $(ghcr_tag)-$(cluster-arch-only) -f deploy/Dockerfile --build-arg VERSION=$(current-branch) --platform=$(cluster-arch) .

ghcr.io/kaovilai/local-volume-provider:writeUser0-arm64

docker buildx build --push --pull -t $(ghcr_tag) -f deploy/Dockerfile --build-arg VERSION=$(current-branch) --platform=$(multiarch) .

ghcr.io/kaovilai/local-volume-provider:writeUser0
Note: above images are single arch for now.. cause I am having out of memory issues on my dev laptop.

for testing vmware-tanzu/velero#8358

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

this is not for production

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

0.099 /go/src/github.com/replicatedhq/local-volume-provider/local-volume-fileserver/go.mod:3: invalid go version '1.22.4': must match format 1.23

bumping go mod to 1.23

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

142.7 github.com/klauspost/compress/internal/cpuinfo: /usr/local/go/pkg/tool/linux_amd64/compile: signal: segmentation fault (core dumped)
169.1 runtime: /usr/local/go/pkg/tool/linux_amd64/asm: signal: segmentation fault (core dumped)

increases docker vm ram?

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

can't cross compile on arm64 mac.. prob golang/go#46644

92.91 internal/bytealg: /usr/local/go/pkg/tool/linux_amd64/asm: signal: segmentation fault (core dumped)
------
Dockerfile:23
--------------------
  21 |     COPY pkg ./pkg
  22 |     ARG VERSION=main
  23 | >>> RUN CGO_ENABLED=0 go build -ldflags=" -X github.com/replicatedhq/local-volume-provider/pkg/version.version=$VERSION " -o /go/bin/local-volume-fileserver ./cmd/local-volume-fileserver
  24 |     
  25 |     FROM debian:bullseye-slim
--------------------
ERROR: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c CGO_ENABLED=0 go build -ldflags=\" -X github.com/replicatedhq/local-volume-provider/pkg/version.version=$VERSION \" -o /go/bin/local-volume-fileserver ./cmd/local-volume-fileserver" did not complete successfully: exit code: 1

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.

1 participant