Giter Club home page Giter Club logo

rust-s2i's Introduction

rust-s2i

This is deprecated. Use cross instead.

Rust builder image and run time image for s2i.

The images are pushed to Dockerhub

Dockerfiles

Builder

Runtime

Building the image

For the Builder image, simply docker build -t rust-s2i:1.14.0 ..

To build the runtime image, you use docker build -t rust-s2i:runtime runtime

Usage

If you want a portable Rust toolchain environment, you can simply extend your Dockerfiles from lawliet89/rust-s2i.

The real usage comes from using s2i to build your Rust applications and transplant them to a lean runtime image without the need for the Rust toolchain.

s2i build \
  /path/to/test-app \
  lawliet89/rust-s2i:1.14.0 \
  test-app \
  --runtime-image lawliet89/rust-s2i:runtime \
  -e RUST_BINARY="my_app"

Build script variables

RUST_BINARY: This is the name of the binary to run in both the builder image and the runtime image.

Extracting built binaries

If you would like to extract your Rust binaries, simply start a container with the image you just built, and use docker cp to copy the binaries.

rust-s2i's People

Contributors

lawliet89 avatar

Watchers

 avatar  avatar  avatar

rust-s2i's Issues

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.