bachp / s2i-rust

Source-to-Image template for Rust applications

Home Page:https://www.rust-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust source-to-image

This repository contains the source for building Rust applications as reproducible Docker images using source-to-image.

For more information about using these images with OpenShift, please see the official OpenShift Documentation.

Installation

To prepare the builder image:

$ git clone https://github.com/kargakis/sti-rust.git
$ cd sti-rust
$ make build

Use

Use the s2i tool to build the final image that contains your application code:

$ s2i build ./1.7/test/test-app/ openshift/rust-17-centos7 rust-test-app
  • ./1.7/test/test-app/ is the top directory of your source code.
  • openshift/rust-17-centos7 is the name of the builder image created by make build above.
  • rust-test-app is the name of the new image that contains your application code.

Finally, run the image:

$ docker run rust-test-app

Versions

Rust versions currently supported:

  • 1.7

About

Source-to-Image template for Rust applications

https://www.rust-lang.org/

License:Other


Languages

Language:Shell 83.3%Language:Makefile 15.7%Language:Rust 1.0%