comake

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Comake Logo

comake - Containerized Build Tool

Comake enables containerization for builds. Containerization for runtime is a good idea, it should be same for buildtime too.

Example

Given hello-build.yml as follows:

steps:

- name: greeting
  image: docker.io/library/alpine
  script:
  - echo "starting to greet everyone"
  - sh -c 'mkdir -p build'
  - sh -c 'echo "hello world" > build/hello'
comake -f hello-build.yml run

Buildfile documentation

Build steps

All build steps are listed in the build file under steps: array. The steps are ran one after another in the same order they were declared.

Step configuration

Each step is run inside a Docker container. The image for the Docker container should be provided under image field. The script field holds an array of all the commands to be run inside the container.

The working directory will be available in the container under /source/ directory. By default the working directory is the directory where the comake command is run in. It can be changed using --workdir option.

Please note that, as of now, if you need to use scripting features you need to use sh -c "<script>" (or similar for diffent shells). Better shell support will be added in the future.

Documentation

Overview

Copyright © 2020 Toghrul Jafarli <ceferlitogrul@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL