Giter VIP home page Giter VIP logo

coreos-omaha's Introduction

CoreOS Omaha

Partial Omaha protocol implementation used by CoreOS hosts.

Docker Repository on Quay

Usage

Configure CoreOS update server to point to CoreOS Omaha server:

# /etc/coreos/update.conf 
GROUP=stable
SERVER=http://omaha.my-server.com:8000

Cloud-init:

#cloud-config
coreos:
  update:
    group: stable
    server: http://omaha.my-server.com:8000

The following arguments are mandatory:

  • --urlbase=<URL> Base URL where CoreOS images should be downloaded
  • --channel=<channel-decl> One channel declaration, may be used once per channel

Optional arguments:

  • --date Show date and time when logging
  • --servername=<server> An optional server name used on response objects
  • --listen=<port> Port to listen, default is 8000
  • --trustproxy Use when behind a proxy which defines X-Forwarded-For header

Channels

Use as much --channel arguments as the number of channels.

The argument has the following syntax:

--channel=<name>,<version>,<size>,<sha1-hash>,<sha256-hash>

Where:

  • name is the name of the channel, like beta or stable
  • version is the complete version number, like 1122.2.0 or 1192.0.0
  • size is the file size in bytes
  • sha1-hash is the base64 encode of the sha1 hash: openssl sha -sha1 -binary update.gz | base64
  • sha256-hash is the base64 encode of the sha256 hash: openssl sha -sha256 -binary update.gz | base64

Download original images from https://update.release.core-os.net/amd64-usr/<VERSION>/update.gz.

Configure

This systemd unit has the most common configurations. Change update.my-server.com below to the server where you want CoreOS hosts download the images.

[Unit]
Description=CoreOS Omaha
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker stop coreos-omaha
ExecStartPre=-/usr/bin/docker rm coreos-omaha
ExecStart=/usr/bin/docker run \
  --name coreos-omaha \
  -p 8000:8000 \
  quay.io/jcmoraisjr/coreos-omaha:latest \
    --channel=alpha,1192.0.0,254754856,EVjNyHkg2EtSUSyf477ExtjP/Lo=,VJiWOBmoFECZk1znmglW6HrknpcQ9LJyb+meaimBjjg= \
    --channel=beta,1185.1.0,247835613,v333LDdL31kVpWeyv+/PtK7fysg=,zE55qgObyunDfNuF0Ny2zwq9hNz98umv7d43F2YY37A= \
    --channel=stable,1122.2.0,212555113,+ZFmPWzv1OdfmKHaGSojbK5Xj3k=,cSBzKN0c6vKinrH0SdqUZSHlQtCa90vmeKC7p/xk19M= \
    --urlbase=http://update.my-server.com/coreos/amd64-usr \
    --servername=update.my-server.com
ExecStop=-/usr/bin/docker stop coreos-omaha
RestartSec=10s
Restart=always
[Install]
WantedBy=multi-user.target

coreos-omaha's People

Contributors

jcmoraisjr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  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.