Skip to content

Commit

Permalink
Initial checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
wkozaczuk committed Jun 13, 2018
1 parent 8f33f22 commit d820857
Show file tree
Hide file tree
Showing 12 changed files with 952 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# Copyright (C) 2017 XLAB, Ltd.
# Copyright (C) 2018 Waldemar Kozaczuk
#
# This work is open source software, licensed under the terms of the
# BSD license as described in the LICENSE file in the top-level directory.
#
# This Docker file defines a container intended to demonstrate running
# applications on OSv unikernel
#
FROM ubuntu:18.04

ENV DEBIAN_FRONTEND noninteractive
ENV TERM=linux

COPY ./etc/keyboard /etc/default/keyboard
COPY ./etc/console-setup /etc/default/console-setup

RUN apt-get update -y && apt-get install -y \
curl \
qemu-system-x86 \
qemu-utils \
wget && apt-get autoremove && apt-get clean

#
# PREPARE ENVIRONMENT
#
# - install Mikelangelo Capstan
RUN curl https://raw.githubusercontent.com/mikelangelo-project/capstan/master/scripts/download | bash

# Copy capstan apps
WORKDIR /capstan-apps
COPY ./apps/* /capstan-apps

# Download latest OSv kernel and packages
RUN mkdir /scripts
COPY ./scripts/* /scripts/
RUN /scripts/download_packages.sh all

CMD /bin/bash

#
# NOTES
#
# Build this container with:
# docker build -t osv/runner .
#
# Run this container with:
# docker run -it --privileged osv/runner
8 changes: 8 additions & 0 deletions apps/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Run this to compose:
```
capstan package compose cli-example
```
Run this run the app:
```
capstan run cli-example --boot default
```
6 changes: 6 additions & 0 deletions apps/cli/meta/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: cli-example
title: Command Line
author: Anonymous
require:
- osv.cli
created: 2018-06-02T22:43:08Z
8 changes: 8 additions & 0 deletions apps/nginx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Run this to compose:
```
capstan package compose nginx-example
```
Run this run the app:
```
capstan run nginx-example --boot default
```
6 changes: 6 additions & 0 deletions apps/nginx/meta/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: nginx-example
title: Nginx
author: Anonymous
require:
- osv.nginx
created: 2018-06-02T22:18:54Z
8 changes: 8 additions & 0 deletions apps/redis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Run this to compose:
```
capstan package compose redis-example
```
Run this run the app:
```
capstan run redis-example --boot default
```
6 changes: 6 additions & 0 deletions apps/redis/meta/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: redis-example
title: Redis
author: Anonymous
require:
- osv.redis-memonly
created: 2018-06-02T22:14:41Z
Loading

0 comments on commit d820857

Please sign in to comment.