Skip to content

Commit 92dccf5

Browse files
committed
Moar dockerfile
1 parent d9a7079 commit 92dccf5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Dockerfile

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# DOCKER-VERSION 0.9.1
2-
FROM ubuntu
2+
FROM ubuntu
3+
MAINTAINER pjf0
34

45
# 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,
67
# and to add the PPA we need software-properties-common.
78

89
RUN apt-get update
@@ -16,7 +17,7 @@ RUN apt-get install -y libmodule-build-perl
1617
RUN apt-get install -y libzmq3-dev libexpat-dev libnet-ssleay-perl libnet-libidn-perl libcrypt-ssleay-perl cpanminus make liblocal-lib-perl
1718

1819
# 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
2021
# errors, but I'm not sure what they mean.
2122

2223
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-
3031
# Add a user for exobrain
3132
RUN adduser exobrain --disabled-password --gecos Exobrain
3233

34+
# Change to that user's homedir.
35+
WORKDIR /home/exobrain
36+
3337
# Set up local::lib
3438
RUN sudo -i -u exobrain perl -Mlocal::lib >> ~exobrain/.profile
3539

@@ -40,11 +44,7 @@ RUN sudo -i -u exobrain PERL_ZMQ_BACKEND=ZMQ::LibZMQ3 cpanm ZMQ
4044
RUN sudo -i -u exobrain cpanm Exobrain
4145

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

4949
# Set up ubic locally
5050
# 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
5454
RUN sudo -i -u exobrain cpanm https://github.com/pjf/perl-file-xdg/archive/exobrain.tar.gz
5555

5656
# And we're done!
57+
ENTRYPOINT /bin/bash

0 commit comments

Comments
 (0)