Hi,

As part of the effort to upgrade OpenSSL, in order to test the changes, I 
have created a couple of Docker files allowing to create full OSv build 
setup. They are part of my repo - 
https://github.com/wkozaczuk/docker_osv_builder. In essence each of the two 
files (Dockerfile.Fedora and Dockerfile.Ubuntu) builds an image from Fedora 
or Ubuntu base, adds python and git, clones OSv repo and eventually calls 
./scripts/setup.py to install all packages.

I think they could be pretty useful for others so I was wondering if should 
simply reference my repo somewhere on OSV wiki or check in the file to OSv 
repo somewhere under scripts. Any ideas?

Also, I have not much experience with publishing docker images to 
dockerhub. Can it be done for free? Would it be useful to build those and 
publish there? I remember there was something called "router" in the past. 
But that probably is obsolete now.

Waldek

Here is how one of the Docker files looks:

#FROM fedora:27
FROM fedora:29

ENV DEBIAN_FRONTEND noninteractive
ENV TERM=linux

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

RUN yum install -y git python2 file which

#
# 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-1.8.0-openjdk/bin/java

CMD /bin/bash

#
# NOTES
#
# Build this container with:
# docker build -t osv/builder-fedora -f Dockerfile.Fedora .
#
# Run this container with:
# docker restart ID (from docker ps -a) && docker attach ID
#
# To open in another console
# docker exec -it ID /bin/bash

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/32591560-fff6-4b22-a27e-cb43189225d3%40googlegroups.com.

Reply via email to