source: repository/Dockerfile

Last change on this file was 815:6319bb6e4f74, checked in by GomoR <gomor@…>, 8 months ago
  • bugfix: file::csv: write header in overwrite mote too if asked
  • update: Dockerfile: latest Ubuntu base
File size: 4.8 KB
Line 
1FROM ubuntu:yakkety
2
3RUN apt-get -y update
4RUN apt-get -y upgrade
5
6#
7# Set locale
8#
9RUN locale-gen en_GB.UTF-8
10RUN update-locale LANG=en_GB.UTF-8
11
12#
13# Avoid being prompted to set some options
14#
15RUN apt-get install -y debconf-utils
16RUN echo 'console-setup console-setup/charmap47 select  UTF-8' | debconf-set-selections
17RUN echo 'console-setup console-setup/fontsize-text47   select  8x16' | debconf-set-selections
18RUN echo 'console-setup console-setup/fontsize  string  8x16' | debconf-set-selections
19RUN echo 'console-setup console-setup/codeset47 select  . Combined - Latin; Slavic Cyrillic; Greek' | debconf-set-selections
20RUN echo 'console-setup console-setup/fontsize-fb47     select  8x16' | debconf-set-selections
21RUN echo 'console-setup console-setup/codesetcode       string  Uni2' | debconf-set-selections
22RUN echo 'console-setup console-setup/fontface47        select  Fixed' | debconf-set-selections
23RUN echo 'console-setup console-setup/store_defaults_in_debconf_db      boolean true' | debconf-set-selections
24RUN echo 'keyboard-configuration        keyboard-configuration/modelcode        string  pc105' | debconf-set-selections
25RUN echo 'keyboard-configuration        console-setup/detect    detect-keyboard ' | debconf-set-selections
26RUN echo 'keyboard-configuration        keyboard-configuration/unsupported_layout       boolean true' | debconf-set-selections
27RUN echo 'keyboard-configuration        keyboard-configuration/model    select  Generic 105-key (Intl) PC' | debconf-set-selections
28RUN echo 'keyboard-configuration        keyboard-configuration/store_defaults_in_debconf_db     boolean true' | debconf-set-selections
29RUN echo 'keyboard-configuration        keyboard-configuration/switch   select  No temporary switch' | debconf-set-selections
30RUN echo 'keyboard-configuration        keyboard-configuration/variantcode      string  latin9' | debconf-set-selections
31RUN echo 'keyboard-configuration        keyboard-configuration/unsupported_config_layout        boolean true' | debconf-set-selections
32RUN echo 'keyboard-configuration        keyboard-configuration/unsupported_config_options       boolean true' | debconf-set-selections
33RUN echo 'keyboard-configuration        keyboard-configuration/toggle   select  No toggling' | debconf-set-selections
34RUN echo 'keyboard-configuration        keyboard-configuration/compose  select  No compose key' | debconf-set-selections
35RUN echo 'keyboard-configuration        keyboard-configuration/ctrl_alt_bksp    boolean false' | debconf-set-selections
36RUN echo 'keyboard-configuration        keyboard-configuration/layout   select  French' | debconf-set-selections
37RUN echo 'keyboard-configuration        keyboard-configuration/unsupported_options      boolean true' | debconf-set-selections
38RUN echo 'keyboard-configuration        keyboard-configuration/xkb-keymap       select  fr(latin9)' | debconf-set-selections
39RUN echo 'keyboard-configuration        keyboard-configuration/layoutcode       string  fr' | debconf-set-selections
40RUN echo 'keyboard-configuration        keyboard-configuration/optionscode      string  ' | debconf-set-selections
41RUN echo 'keyboard-configuration        console-setup/ask_detect        boolean false' | debconf-set-selections
42RUN echo 'keyboard-configuration        keyboard-configuration/variant  select  French - French (legacy, alternative)' | debconf-set-selections
43RUN echo 'keyboard-configuration        keyboard-configuration/altgr    select  The default for the keyboard layout' | debconf-set-selections
44RUN echo 'keyboard-configuration        console-setup/detected  note' | debconf-set-selections
45
46#
47# Packages required by Metabrik::Core
48#
49# Packaged programs
50#
51RUN apt-get install -y build-essential sudo less cpanminus nvi iputils-ping mercurial libreadline-dev
52#
53# Perl modules
54#
55RUN cpanm -n Metabrik
56RUN cpanm -n Metabrik::Repository
57
58#
59# Update Metabrik to latest head
60#
61RUN mkdir -p /root/metabrik/brik-tool
62RUN perl -MMetabrik::Core::Context -e 'Metabrik::Core::Context->new_brik_run("brik::tool","update")'
63
64# Initialise the environment
65RUN perl -MMetabrik::Core::Context -e 'Metabrik::Core::Context->new_brik_run("shell::rc", "write_default")'
66RUN echo 'use shell::command' >> /root/.metabrik_rc
67RUN echo 'use shell::history' >> /root/.metabrik_rc
68RUN echo 'use brik::tool' >> /root/.metabrik_rc
69RUN echo 'use brik::search' >> /root/.metabrik_rc
70RUN echo 'alias ! "run shell::history exec"' >> /root/.metabrik_rc
71RUN echo 'alias history "run shell::history show"' >> /root/.metabrik_rc
72RUN echo 'set core::shell ps1 docker' >> /root/.metabrik_rc
73RUN echo 'alias ls "run shell::command capture ls -Fh"' >> /root/.metabrik_rc
74RUN echo 'alias l "run shell::command capture ls -lFh"' >> /root/.metabrik_rc
75RUN echo 'alias ll "run shell::command capture ls -lFh"' >> /root/.metabrik_rc
76RUN echo 'run shell::history load' >> /root/.metabrik_rc
77
78# Install dependencies
79RUN perl -MMetabrik::Core::Context -e 'Metabrik::Core::Context->new_brik_run("brik::tool","install_all_need_packages")'
80RUN perl -MMetabrik::Core::Context -e 'Metabrik::Core::Context->new_brik_run("brik::tool","install_all_require_modules")'
81
82CMD ["/usr/local/bin/metabrik.sh"]
Note: See TracBrowser for help on using the repository browser.