You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # _____ _ _
  2. # | __|___ ___ ___ _| |___ _____| |_ ___ ___ ___
  3. # | __| _| -_| -_| . | . | | . | . | | -_|
  4. # |__| |_| |___|___|___|___|_|_|_|___|___|_|_|___|
  5. #
  6. # Freedom in the Cloud
  7. #
  8. # Dockerfile for Gitlab Runner. Save Electricity and Time by saving build time
  9. #
  10. # License
  11. # =======
  12. #
  13. # Copyright (C) 2019 Liam Hurwitz <liam@contra-bit.com>
  14. #
  15. # This program is free software: you can redistribute it and/or modify
  16. # it under the terms of the GNU Affero General Public License as published by
  17. # the Free Software Foundation, either version 3 of the License, or
  18. # (at your option) any later version.
  19. #
  20. # This program is distributed in the hope that it will be useful,
  21. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. # GNU Affero General Public License for more details.
  24. #
  25. # You should have received a copy of the GNU Affero General Public License
  26. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27. # Set the base image to debian
  28. FROM debian:stretch
  29. # File Author / Maintainer
  30. MAINTAINER Liam Hurwitz
  31. ################## BEGIN INSTALLATION ######################
  32. # Update the repository sources list
  33. RUN apt-get update && \
  34. apt-get -y install sudo
  35. # TODO: How to sudo without tty or askpass
  36. RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
  37. ##
  38. ## Install Essental Build Tools
  39. ##
  40. RUN apt-get install git build-essential dialog openssh-client -y
  41. ##
  42. ## Install Freedombone Tools
  43. ##
  44. RUN git clone https://gitlab.informatik.uni-bremen.de/turingcomplete/freedombone.git
  45. RUN cd freedombone &&\
  46. git checkout stretch &&\
  47. make install
  48. ##
  49. ## Install Packages for building images
  50. ##
  51. RUN echo "Reached Build \nInstalling Packages" &&\
  52. sudo freedombone-image --setup debian
  53. # Export Terminfo so tput can be executed
  54. RUN export TERMINFO=/usr/lib/terminfo
  55. USER root
  56. CMD /bin/bash