Giter VIP home page Giter VIP logo

devcontainer-nix's People

Contributors

lucernae avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

devcontainer-nix's Issues

Command 'getconf' not found in container

Following the instruction for creating the .devcontainer using the CLI tool. I encound the following error when I try to open my project directory in the devcontainer.

[31584 ms] Command in container failed: '/path/to/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/bin/helpers/check-requirements.sh'
[31584 ms] /path/to/.vscode-server/bin/e170252f762678dec6ca2cc69aba1570769a5d39/bin/helpers/check-requirements.sh: line 45: getconf: command not found
[31584 ms] Exit code 127
[31654 ms]
[31654 ms]

It seems that the getconf command is not available inside the container.

Environment

  • Operating System:

Darwin MacBook.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:33:31 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T8112 arm64

  • Docker Version:

Client:
Cloud integration: v1.0.35+desktop.13
Version: 26.0.0
API version: 1.45
Go version: go1.21.8
Git commit: 2ae903e
Built: Wed Mar 20 15:14:46 2024
OS/Arch: darwin/arm64
Context: desktop-linux

Server: Docker Desktop 4.29.0 (145265)
Engine:
Version: 26.0.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.8
Git commit: 8b79278
Built: Wed Mar 20 15:18:02 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dorny/paths-filter action to v3

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
.devcontainer/default/docker-compose.yml
.devcontainer/development/docker-compose.yml
.devcontainer/docker-compose.yml
  • ghcr.io/lucernae/devcontainer-nix v1
.devcontainer/nixos-arion/docker-compose.build.yml
.devcontainer/nixos-arion/docker-compose.override.yml
.devcontainer/nixos/docker-compose.build.yml
.devcontainer/nixos/docker-compose.yml
docker-compose.flake.yml
docker-compose.yml
templates/src/nix/.devcontainer/docker-compose.yml
dockerfile
.devcontainer/Dockerfile
.devcontainer/development/Dockerfile
.devcontainer/nixos/Dockerfile
Dockerfile
Dockerfile-flake
templates/src/nix/.devcontainer/Dockerfile
github-actions
.github/actions/smoke-test/action.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
.github/workflows/build-base.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/setup-qemu-action v2
  • docker/setup-buildx-action v2
  • cachix/install-nix-action v23@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011
  • docker/login-action v2
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/login-action v2
.github/workflows/build-push-latest-flake.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/setup-qemu-action v2
  • docker/setup-buildx-action v2
  • cachix/install-nix-action v23@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011
  • docker/login-action v2
  • docker/metadata-action v4
  • docker/build-push-action v4
.github/workflows/build-push-latest-nixos-arion.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/setup-qemu-action v2
  • docker/setup-buildx-action v2
  • cachix/install-nix-action v23@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011
  • actions/cache v3
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/setup-qemu-action v2
  • docker/setup-buildx-action v2
  • docker/login-action v2
  • docker/metadata-action v4
  • cachix/install-nix-action v23@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011
  • actions/cache v3
.github/workflows/build-push-latest-nixos.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/setup-qemu-action v2
  • docker/setup-buildx-action v2
  • docker/login-action v2
  • docker/metadata-action v4
  • docker/build-push-action v4
.github/workflows/build-push-latest.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • docker/setup-qemu-action v2
  • docker/setup-buildx-action v2
  • cachix/install-nix-action v23@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011
  • docker/login-action v2
  • docker/metadata-action v4
  • docker/build-push-action v4
.github/workflows/release.yaml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • devcontainers/action v1
.github/workflows/test-pr.yaml
  • dorny/paths-filter v2
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
nix
.devcontainer/nixos/flake.nix
  • nixpkgs nixos-23.05
flake.nix
  • nixpkgs nixos-23.05

  • Check this box to trigger a request for Renovate to run again on this repository

Home-Manager derivation doesn't work from suspicious permission

Home-manager derivation doesn't work.
The flake based build says that it won't execute get-hm-version due to sus permissions.

Writing in this issue so I won't forget.

Diagnose:

  • check store permission
    • all user can write, should be not possible
  • check umask
    • already 022, should be okay
  • reset permission and rebuild switch
    • weirdly set to 0757 again. should be 755
  • check where it builds
    • in /tmp, so perhaps mount options is forcing the default file to be 757

will try solution on adding hooks to docker entrypoint to make sure /tmp uses the correct umask 022

Plan to support multiarch build

It's a headache in Apple Silicon because docker downloaded x86_64 image and caused nix recipe inside to break because it is not compatible with host arch.

Proposed plan:

  1. Use gh action from docker official (that can use multiarch build push on a single manifests list, not multiple tags)
  2. Make a base nix Dockerfile that installs nix in the appropriate docker arch convention
  3. Uses nix recipe to build the rest (like current method), to be compatible with devcontainer

Try out microsoft devcontainer nix features add on

I observed more and more features template, including nix in github codespace. However at the moment it's not that useful. We could try making the setup as another example and then overlay the same composition to support existing use case:

  • default.nix
  • nix direnv
  • flake
  • dockertools
  • non-codespace devcontainer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.