From 307071e1b0d536abbec277764b427d145d4f42b7 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 24 Feb 2015 19:26:21 +0100 Subject: Add packaging and examples. --- .../docker-minimal-separate/storage/Dockerfile | 10 +++++++ .../storage/catlfish.config | 35 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 examples/docker-minimal-separate/storage/Dockerfile create mode 100644 examples/docker-minimal-separate/storage/catlfish.config (limited to 'examples/docker-minimal-separate/storage') diff --git a/examples/docker-minimal-separate/storage/Dockerfile b/examples/docker-minimal-separate/storage/Dockerfile new file mode 100644 index 0000000..623b195 --- /dev/null +++ b/examples/docker-minimal-separate/storage/Dockerfile @@ -0,0 +1,10 @@ +FROM catlfish + +ADD catlfish.config /opt/catlfish/rel/ +ADD https /opt/catlfish/rel/https +RUN mkdir /opt/catlfish/rel/log + +WORKDIR /opt/catlfish/rel +EXPOSE 8081 + +CMD ["/usr/bin/supervisord"] diff --git a/examples/docker-minimal-separate/storage/catlfish.config b/examples/docker-minimal-separate/storage/catlfish.config new file mode 100644 index 0000000..4ff8626 --- /dev/null +++ b/examples/docker-minimal-separate/storage/catlfish.config @@ -0,0 +1,35 @@ +%% catlfish configuration file (-*- erlang -*-) +%% Start like this: +%% $ erl -boot start_sasl -config catlfish -run inets +[{sasl, + [{sasl_error_logger, false}, + {errlog_type, error}, + {error_logger_mf_dir, "log"}, + {error_logger_mf_maxbytes, 10485760}, % 10 MB + {error_logger_mf_maxfiles, 10}]}, + {catlfish, + [{known_roots_path, "known_roots"}, + {rejected_certs_path, "rejected"}, + {https_servers, + [{storage_https_api, "0.0.0.0", 8081, storage} + ]}, + {https_certfile, "https/certs/ct.cert.pem"}, + {https_keyfile, "https/keys/ct.key.pem"}, + {https_cacertfile, "https/certs/cas.pem"} + ]}, + {lager, + [{handlers, + [{lager_console_backend, info}, + {lager_file_backend, [{file, "log/error.log"}, {level, error}]}, + {lager_file_backend, [{file, "log/debug.log"}, {level, debug}]}, + {lager_file_backend, [{file, "log/console.log"}, {level, info}]} + ]} + ]}, + {plop, + [{entry_root_path, "db/certentries/"}, + {index_path, "db/index"}, + {newentries_path, "db/newentries"}, + {entryhash_root_path, "db/entryhash/"}, + {treesize_path, "db/treesize"}, + {indexforhash_root_path, "db/certindex/"} + ]}]. -- cgit v1.1