Dockerfile now builds correctly.

[?]
Jun 8, 2015, 9:43 PM
JEOPOOPTQ7ESS2IG7KROXNF67RB37X63GVM6UK3FYMZG6VUUQG2AC

Dependencies

  • [2] 4ZLEDBK7 Initial attempts at dockerizing, cabal isn't cooperating.
  • [*] DLZRD7VB Add a preliminary, probably somewhat broken set of setup instructions.

Change contents

  • edit in Dockerfile at line 8
    [2.231]
    [2.231]
    # Base GHC/cabal install
  • replacement in Dockerfile at line 12
    [2.437][2.437:737]()
    apt-get install -y --no-install-recommends \
    cabal-install-1.22 \
    ghc-7.10.2 \
    happy-1.19.5 \
    alex-3.1.4 \
    zlib1g-dev \
    libtinfo-dev \
    libsqlite3-0 \
    libsqlite3-dev \
    ca-certificates && \
    [2.437]
    [2.737]
    apt-get install -y --no-install-recommends cabal-install-1.22 ghc-7.8.4 happy-1.19.4 alex-3.1.3 \
    zlib1g-dev libtinfo-dev libsqlite3-0 libsqlite3-dev ca-certificates && \
  • replacement in Dockerfile at line 16
    [2.770][2.770:884]()
    ENV PATH /root/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.2/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin:$PATH
    [2.770]
    [2.884]
    ENV PATH /root/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:/opt/happy/1.19.4/bin:/opt/alex/3.1.3/bin:$PATH
    # Install libpq-dev to enable postgresql-simple build
    RUN apt-get update && \
    apt-get install -y --no-install-recommends wget && \
    echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list && \
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
    apt-get update && \
    apt-get install -y --no-install-recommends libpq-dev
  • edit in Dockerfile at line 26
    [2.885]
    [2.885]
    # Install the aftok dependencies
  • replacement in Dockerfile at line 29
    [2.943][2.943:1024]()
    RUN cd /opt/aftok && cabal sandbox init && cabal install --only-dependencies -j4
    [2.943]
    [2.1024]
    RUN cd /opt/aftok && cabal install cpphs && cabal install --only-dependencies -j4
  • edit in Dockerfile at line 31
    [2.1025]
    [2.1025]
    # Install and build aftok-server sources
  • edit in Dockerfile at line 34
    [2.1081]
    [2.1081]
    RUN cd /opt/aftok && cabal configure && cabal build aftok-server
  • replacement in Dockerfile at line 39
    [2.1182][2.1182:1232]()
    ADD ./conf/aftok.example.cfg /etc/aftok/aftok.cfg
    [2.1182]
    [2.1232]
    ADD ./conf/aftok.cfg.example /etc/aftok/aftok.cfg
  • replacement in Dockerfile at line 43
    [2.1329][2.1329:1412]()
    RUN mkdir /etc/services/aftok
    ADD ./docker/aftok-server.sh /etc/services/aftok/run
    [2.1329]
    [2.1412]
    RUN mkdir /etc/service/aftok
    ADD ./docker/aftok-server.sh /etc/service/aftok/run
  • edit in INSTALL.md at line 1
    [4.1]
    [4.2]
    Development Installation
    ========================
  • edit in INSTALL.md at line 50
    [4.2202]
    Docker Installation
    ===================
    The Aftok server application is now deployable under Docker. Here's how you can
    go about running the server in a local docker container:
    docker build -t <yourid>/aftok:<version> .
    for example,
    docker build -t nuttycom/aftok:0.1 .