Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize #4

Open
pviotti opened this issue Jun 28, 2017 · 2 comments
Open

Dockerize #4

pviotti opened this issue Jun 28, 2017 · 2 comments

Comments

@pviotti
Copy link
Owner

pviotti commented Jun 28, 2017

Dockerize Conver to make it easily executable in CI tasks.

@pviotti
Copy link
Owner Author

pviotti commented Jul 12, 2017

Tried with the Dockerfile below, but Docker deployments don't work.
Probably it needs: a) spawning another Docker machine just for Docker (dind1, dind2) and then b) link it somehow through a Docker socket from Conver's Docker container.

#FROM flangelier/scala:2.11-8-jre
#FROM phusion/baseimage
#FROM openjdk:8-jdk
FROM dockerswarm/dind:17.06.0-ce

ENV CONVER_REPO "https://github.com/pviotti/conver.git"

RUN echo "deb http://httpredir.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list \
  && apt update \
  && apt install -y -t jessie-backports openjdk-8-jdk ca-certificates-java wget build-essential git-core \
  && cd /opt \
  && git clone $CONVER_REPO \
  && cd conver \
  && wget --quiet https://dl.bintray.com/sbt/debian/sbt-0.13.15.deb \
  && dpkg -i sbt-0.13.15.deb \
  && make

CMD cd /opt/conver && sbt

# docker build -t conver .
# docker run -i -t --privileged conver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant