Skip to content

Conversation

@adelbertc
Copy link

So I may have gone overboard and rewritten the bootstrap script into something fancier. Unsure if this is something you'd want as part of the project but I'm finding it useful to have on my MacBook to build Docker images with since Nix + Docker + OSX does not make for a good time.

Also per our IRC conversation earlier today, the missing pieces were:

  • The README's suggestion of nix-build -A hello --argstr system x86_64-linux to test seems to no longer work for reasons beyond me. I ended up testing with the following derivation:
with import <nixpkgs> { system = "x86_64-linux"; };

pkgs.dockerTools.buildImage {
  name = "nix-htop";
  contents = pkgs.htop;
  config = {
    Cmd = [ "/bin/htop" ];
  };
}
  • I tried using the original script but that was missing setting up of the environment variables done in remote-build-env.

@adelbertc adelbertc force-pushed the nix-docker-script branch 2 times, most recently from ac1be9e to 89f50e2 Compare August 5, 2017 05:13
export_env

remove_instructions
finish_message
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also in some cases that I can't seem to isolate the script does not give back the prompt at the end, which is one of the reasons why I added this line.. not sure if you have any ideas.

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