Giter VIP home page Giter VIP logo

image-builder's Introduction

image-builder

Build

Image builder contains components needed to build images within the SODALITE platform.

docker-image-definition

docker-image-definition is a TOSCA blueprint, based on tosca_simple_yaml_1_2.

Running using xOpera

Within SODALITE platform, it is executed with xOpera orchestrator. If using xOpera 1.7 via CLI:

sudo opera deploy -i inputs.yaml image_builder docker_image_definition.yaml

Sample inputs

Inputs can be found in docker-image-definition/inputs.

REST API

Prerequisites

- Ubuntu 18.04
- python 3.6 or newer

Access to docker registry

In order to be able to push built docker images to docker registry, image-builder REST API needs access to registry. If repository uses certificate-based client-server authentication, signed certificates must be installed to /etc/docker/certs.d. See docker docs for more info.

Config

REST API's configuration can be set by setting following environmental variables:

- SECRET_KEY: key to be used for encoding / decoding Bearer tokens. Default: "my_precious_secret_key"
- SESSION_TIMEOUT: time (in minutes) before Bearer token expires. Default: 1440 (1 day)
- REGISTRY_IP: IP of docker registry. Default: localhost
- SQLALCHEMY_DATABASE_URI: link to database. If left unset, local SQLITE instance will be configured and used.

Install and run

Run in venv (optional, recommended)

  • Installing: python3 -m pip install --user virtualenv
  • Creating: python3 -m venv [venv_name]
  • Activating: source [venv_name]/bin/activate

Your python venv must be activated before installation and also before every run.

Quick install and run

To install, test and run, simply run:

make all

or run stages separately:

make clean
make install
make database
make tests
make run

Sample JSON payloads

Sample JSON payloads to be used with /build/ endpoint can be found in JSON-build-params

image-builder's People

Contributors

dradx avatar mihatrajbaric avatar pmundt avatar

Watchers

 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.