Code Monkey home page Code Monkey logo

Comments (2)

gorbak25 avatar gorbak25 commented on June 3, 2024

@jmgilman
Hocus builds a new VM for your project based on what you specify in hocus.yml. For Hocus in Hocus developement we use this VM image. All VM's are built using plain dockerfiles. I see no problem with creating a nix base image as long as some assumptions Hocus makes are fullfilled(a custom dtach binary, tmux is available etc...). Here is the base workspace image we currently use and you may infer from it what needs to be in the workspace image for Hocus to work.

Also you may specify a custom shell in your workspace tasks(if you want we may also add this feature for prebuild tasks) where you could launch nix shells for your developers :)

Also you may customize the internal VM images the agent uses for prebuilds and various tasks. Here are the Dockerfiles for those VM's.

So I see no problem in just using nix in the workspace image, I don't see whether Hocus needs to know about nix at all as we operate on VM's, as long as the assumptions we made about the VM images are fulfilled Hocus should work fine with Nix.

Perhaps I misunderstood this feature request? Could you please describe in detail what are you expecting from a Nix integration?

from hocus.

gorbak25 avatar gorbak25 commented on June 3, 2024

@jmgilman We're thinking of introducing per team/project buildkit builders. Instead of using docker we would use buildkit directly. Buildkit has support for mutiple frontends, especially for nix. Would the ability to directly specify the buildkit frontend in hocus.yml work for you?

from hocus.

Related Issues (20)

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.