-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.Ubuntu
60 lines (50 loc) · 1.54 KB
/
Dockerfile.Ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# 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 build, test and publish
# OSv kernel as well as many applications ...
#
#FROM ubuntu:18.10
FROM ubuntu:19.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 git python2
#
# PREPARE ENVIRONMENT
#
# - prepare directories
RUN mkdir /git-repos /result
# - clone OSv
WORKDIR /git-repos
RUN git clone https://github.com/cloudius-systems/osv.git
WORKDIR /git-repos/osv
RUN git submodule update --init --recursive
RUN scripts/setup.py
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
# - install Mikelangelo Capstan
#RUN curl https://raw.githubusercontent.com/mikelangelo-project/capstan/master/scripts/download | bash
# Copy capstan packages
#WORKDIR /capstan-packages
#COPY ./packages/* /capstan-packages
#RUN mkdir /capstan-packages/output
CMD /bin/bash
#
# NOTES
#
# Build this container with:
# docker build -t osv/builder-ubuntu -f Dockerfile.Ubuntu .
#
# Run this container FIRST time with:
# docker run -it --privileged --volume="/artifacts:/capstan-packages/output" osv/builder-ubuntu
#
# To restart:
# docker restart ID (from docker ps -a) && docker attach ID
#
# To open in another console
# docker exec -it ID /bin/bash