-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
952 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.