Git Product home page Git Product logo

Comments (4)

awantoch avatar awantoch commented on May 31, 2024

some thoughts on the format for the valist.yml and how to keep config consistent between desktop/CI

in the valist.yml file, we'll need the following keys:

image: DOCKER_IMAGE
install: INSTALL_COMMAND
build: BUILD_COMMAND
out: OUTPUT_DIR_OR_FILE_INSIDE_CONTAINER

the build and install commands are optional if the image that is set already builds what's needed for out

after image is set, we run the install command, then the build command provided inside of a new container (or build a new image from the supplied one). then, we mount and copy the out directory on the container that contains the artifact, and copy it to the host + publish.

image could also be set to the location of a Dockerfile that's already in the repository, and the rest of the flow stays the same.

eventually, we could/should use a system like buildpacks.io that would auto-detect the package type and start with the relevant container image.

from valist.

jiyuu-jin avatar jiyuu-jin commented on May 31, 2024

To that end, maybe something like:

const generateDockerfile = (baseImage: string, source: string, buildCommand: string) =>  ` 
  FROM ${baseImage}
  WORKDIR /opt/build
  CP ${source} ./
  WORKDIR /opt/build/${source}
  RUN ${buildCommand}
`;

from valist.

jiyuu-jin avatar jiyuu-jin commented on May 31, 2024

Oh and +1 to the buildpacks.io, we should add that to the roadmap.

from valist.

awantoch avatar awantoch commented on May 31, 2024

Closed by #28

from valist.

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.