Opened 3 years ago

Last modified 3 years ago

#13 new enhancement

Containerize the Bookmarks application

Reported by: peter Owned by: peter
Priority: minor Component: codebase
Keywords: Cc:
Project: BookmarksApp

Description

Containerize the Bookmarks application, and create a Docker container for it.

Change History (3)

comment:1 Changed 3 years ago by peter

[110/bookmarks]: Add a run command to the bkmkd script.

comment:2 Changed 3 years ago by peter

  • Priority changed from major to minor

comment:3 Changed 3 years ago by peter

Dockerfile:

FROM ubuntu:14.04
MAINTAINER Peter Eichman <peichman@cpan.org>
RUN apt-get update && apt-get install -y subversion make cpanminus \
    libexpat1-dev libxml-libxml-perl
RUN svn co http://svn.echodin.net/bookmarks/trunk /srv/bookmarks

WORKDIR /srv/bookmarks
RUN cpanm --installdeps .
RUN bin/bkmk init -f bookmarks.db
RUN bin/bkmkd init -D dbname=bookmarks.db

CMD /srv/bookmarks/bin/bkmkd run

EXPOSE 5000

Build and run:

$ sudo docker build -t peichman/bookmarks .
$ sudo docker run -d -p 5000:5000 peichman/bookmarks
Note: See TracTickets for help on using tickets.