You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.2 KiB

  1. # Based on debian-jessie
  2. FROM openjdk:8
  3. ###
  4. # START COPY FROM https://github.com/hseeberger/scala-sbt/blob/master/Dockerfile
  5. ###
  6. ENV SCALA_VERSION 2.12.1
  7. ENV SBT_VERSION 0.13.13
  8. # Install Scala
  9. ## Piping curl directly in tar
  10. RUN \
  11. curl -fsL http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar xfz - -C /root/ && \
  12. echo >> /root/.bashrc && \
  13. echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc
  14. # Install sbt
  15. RUN \
  16. curl -L -o sbt-$SBT_VERSION.deb http://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
  17. dpkg -i sbt-$SBT_VERSION.deb && \
  18. rm sbt-$SBT_VERSION.deb && \
  19. apt-get update && \
  20. apt-get install sbt && \
  21. sbt sbtVersion
  22. # Define working directory
  23. WORKDIR /root
  24. ###
  25. # END COPY
  26. ###
  27. # Install docker
  28. #RUN \
  29. # apt-get install -y apt-transport-https ca-certificates gnupg2 && \
  30. # apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
  31. # echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list && \
  32. # apt-get update && \
  33. # apt-get install -y docker-engine && \
  34. # docker -v
  35. ## Install docker-compose
  36. #RUN \
  37. # curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
  38. # chmod +x /usr/local/bin/docker-compose && \
  39. # docker-compose -v
  40. # Install mysql
  41. #ENV DEBIAN_FRONTEND noninteractive
  42. #RUN \
  43. # echo "mysql-community-server mysql-community-server/data-dir select ''" | debconf-set-selections && \
  44. # echo "mysql-community-server mysql-community-server/root-pass password password" | debconf-set-selections && \
  45. # echo "mysql-community-server mysql-community-server/re-root-pass password password" | debconf-set-selections && \
  46. # echo "deb http://repo.mysql.com/apt/debian/ jessie mysql-5.7" > /etc/apt/sources.list.d/mysql.list && \
  47. # apt-get install -y apt-transport-https && \
  48. # apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5 && \
  49. # apt-get update && \
  50. # apt-get install -y mysql-community-client mysql-community-server && \
  51. # mysql --version
  52. #
  53. ## Install redis
  54. #RUN \
  55. # apt-get install -y redis-server && \
  56. # redis-server -v