Public Repository

Last pushed: 2 years ago
Short Description
To use protobuf with clojure.
Full Description

To use protobuf with clojure.

Note:

The project.clj is added for download and compile the zip file ".lein/cache/lein-protobuf/protobuf-2.6.1.zip".

Dockerfile

FROM clojure
MAINTAINER Liu Chong mail@clojure.cn
WORKDIR /build
ADD . /build
RUN apt-get update && apt-get dist-upgrade -y && \
apt-get install --no-install-recommends -y build-essential automake && \
mkdir -p ~/.m2/repository/org/flatland/protobuf/0.8.2/ && \
wget https://clojars.org/repo/org/flatland/protobuf/0.8.2/protobuf-0.8.2.jar -O ~/.m2/repository/org/flatland/protobuf/0.8.2/protobuf-0.8.2.jar && \
lein deps && lein protobuf

project.clj

(defproject clojure-protobuf "0.1.0-SNAPSHOT"
:description "To use protobuf with clojure."
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[org.flatland/protobuf "0.8.2"]]
:plugins [[lein-protobuf "0.4.3"]])

Docker Pull Command
Owner
liuchong