Skip to content

Instantly share code, notes, and snippets.

@jneen
Created September 5, 2014 18:17
Show Gist options
  • Save jneen/698c1cec4c845bab588e to your computer and use it in GitHub Desktop.
Save jneen/698c1cec4c845bab588e to your computer and use it in GitHub Desktop.
Fig setup
FROM base/devel
RUN pacman --noconfirm -Sy jdk7-openjdk
RUN pacman --noconfirm -Sy socat
ENV LEIN_ROOT 1
RUN curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > /usr/local/bin/lein \
&& chmod +x /usr/local/bin/lein \
&& lein
WORKDIR /app
ADD project.clj /app/
RUN lein deps
ADD sandbox.policy /usr/lib/jvm/java-7-openjdk/jre/lib/security/java.policy
ADD src /app/src
RUN lein compile
ADD resources /app/resources
CMD env && \
socat TCP-LISTEN:4334,fork TCP:$TRANSACTOR_1_PORT_4334_TCP_ADDR:4334 & \
cd /app && lein run
transactor:
build: ./transactor
volumes:
- /home/jneen/.local/lib/goodbot/data:/app/data
bot:
build: .
links:
- transactor
environment:
GOODBOT_HOST: irc.freenode.net:6667
GOODBOT_CHANNELS: '#elh ohninjas'
GOODBOT_NICK: elhbot
FROM base/devel
RUN pacman --noconfirm -Sy jdk7-openjdk
RUN pacman --noconfirm -Sy unzip
RUN curl -L https://my.datomic.com/downloads/free/0.9.4815.12 > /tmp/datomic-free.zip \
&& unzip -d /tmp /tmp/datomic-free.zip \
&& mv /tmp/datomic-free-0.9.4815.12 /app \
&& rm /tmp/datomic-free.zip
WORKDIR /app
EXPOSE 4334
ADD ./config.properties /app/config/
CMD ./bin/transactor ./config/config.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment