#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
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