1
1
# DOCKER-VERSION 0.9.1
2
- FROM ubuntu
2
+ FROM ubuntu
3
+ MAINTAINER pjf0
3
4
4
5
# Let's start with some yak shaving!
5
- # Ubic has the " stale file handle" bug discussed below, but needs a PPA,
6
+ # Ubic has the stale file handle bug discussed below, but needs a PPA,
6
7
# and to add the PPA we need software-properties-common.
7
8
8
9
RUN apt-get update
@@ -16,7 +17,7 @@ RUN apt-get install -y libmodule-build-perl
16
17
RUN apt-get install -y libzmq3-dev libexpat-dev libnet-ssleay-perl libnet-libidn-perl libcrypt-ssleay-perl cpanminus make liblocal-lib-perl
17
18
18
19
# These should be installable via cpanm, but have failing tests
19
- # when run inside a docker container. All relate to " stale file handle"
20
+ # when run inside a docker container. All relate to stale file handle
20
21
# errors, but I'm not sure what they mean.
21
22
22
23
RUN apt-get install -y libpath-class-perl libfile-remove-perl libchi-perl ubic
@@ -30,6 +31,9 @@ RUN apt-get install -y libmoose-perl libppi-perl libperl-critic-perl libxml-
30
31
# Add a user for exobrain
31
32
RUN adduser exobrain --disabled-password --gecos Exobrain
32
33
34
+ # Change to that user's homedir.
35
+ WORKDIR /home/exobrain
36
+
33
37
# Set up local::lib
34
38
RUN sudo -i -u exobrain perl -Mlocal::lib >> ~exobrain/.profile
35
39
@@ -40,11 +44,7 @@ RUN sudo -i -u exobrain PERL_ZMQ_BACKEND=ZMQ::LibZMQ3 cpanm ZMQ
40
44
RUN sudo -i -u exobrain cpanm Exobrain
41
45
42
46
# Install all the optional extras
43
- RUN sudo -i -u exobrain cpanm Exobrain::Beeminder
44
- RUN sudo -i -u exobrain cpanm Exobrain::Foursquare
45
- RUN sudo -i -u exobrain cpanm Exobrain::HabitRPG
46
- RUN sudo -i -u exobrain cpanm Exobrain::Idonethis
47
- RUN sudo -i -u exobrain cpanm Exobrain::Twitter
47
+ RUN sudo -i -u exobrain cpanm Exobrain::Beeminder Exobrain::Foursquare Exobrain::HabitRPG Exobrain::Idonethis Exobrain::Twitter
48
48
49
49
# Set up ubic locally
50
50
# For some reason docker containers don't like their crontab messed with
@@ -54,3 +54,4 @@ RUN sudo -i -u exobrain ubic-admin setup --batch-mode --local --reconfigure
54
54
RUN sudo -i -u exobrain cpanm https://github.com/pjf/perl-file-xdg/archive/exobrain.tar.gz
55
55
56
56
# And we're done!
57
+ ENTRYPOINT /bin/bash
0 commit comments