Git Product home page Git Product logo

strato's Introduction

strato

strato is a package manager and minimal container base image. All packages in strato are created by a simple and containerized build process.

docker run -it rancher/strato
/ # strato add jq
Installing package https://github.com/rancher/strato-packages/raw/master/0.0.3/amd64/jq.tar.gz:0.0.3
/usr
/usr/bin
/usr/bin/jq
/usr/lib
/usr/lib/libjq.la
/usr/lib/libjq.so
/usr/lib/libjq.so.1
/usr/lib/libjq.so.1.0.4
/usr/share
1.178437 mb
/ # jq --version
jq-1.5

How packages are built

The build instructions for packages are described using a Dockerfile. The package will be built by extracting the files in the final layer from the build process.

As an example, the following Dockerfile builds the GNU make package.

FROM ubuntu
RUN apt-get update && apt-get install -y build-essential pkg-config wget
RUN wget -P /usr/src/ ftp://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2
RUN cd /usr/src/ && tar xf make*
RUN cd /usr/src/make* \
    && ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --disable-nls \
    && make

# The following layer is extracted to generate the resulting package
RUN cd /usr/src/make* \
    && make install

All packages are currently built using Ubuntu 16.04 as the base image, but the goal is to eventually have enough packages for strato to be able to build itself.

How to build the packages

The base Dockerfiles are in the packages directory in this repository. To build them, you need dapper - from https://github.com/rancher/dapper/releases

Run dapper build-bin to build the binaries in this repo, then build the tarballs using dapper build-packages The tarballs will be in the dist dir - and can then be uploaded to somewhere that you can get to them.

Base image

The strato base image includes busybox, glibc, and the strato package manager.

strato's People

Contributors

joshwget avatar svendowideit avatar

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.