Dockerfile now builds correctly.
[?]
Jun 8, 2015, 9:43 PM
JEOPOOPTQ7ESS2IG7KROXNF67RB37X63GVM6UK3FYMZG6VUUQG2ACDependencies
- [2]
4ZLEDBK7Initial attempts at dockerizing, cabal isn't cooperating. - [*]
DLZRD7VBAdd a preliminary, probably somewhat broken set of setup instructions.
Change contents
- edit in Dockerfile at line 8
# Base GHC/cabal install - replacement in Dockerfile at line 12
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 && \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
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:$PATHENV 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 buildRUN 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
# Install the aftok dependencies - replacement in Dockerfile at line 29
RUN cd /opt/aftok && cabal sandbox init && cabal install --only-dependencies -j4RUN cd /opt/aftok && cabal install cpphs && cabal install --only-dependencies -j4 - edit in Dockerfile at line 31
# Install and build aftok-server sources - edit in Dockerfile at line 34
RUN cd /opt/aftok && cabal configure && cabal build aftok-server - replacement in Dockerfile at line 39
ADD ./conf/aftok.example.cfg /etc/aftok/aftok.cfgADD ./conf/aftok.cfg.example /etc/aftok/aftok.cfg - replacement in Dockerfile at line 43
RUN mkdir /etc/services/aftokADD ./docker/aftok-server.sh /etc/services/aftok/runRUN mkdir /etc/service/aftokADD ./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 cango about running the server in a local docker container:docker build -t <yourid>/aftok:<version> .for example,docker build -t nuttycom/aftok:0.1 .