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.

63 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.13.8
  7. ENV SBT_VERSION 1.6.2
  8. # Install Scala
  9. ## Piping curl directly in tar
  10. RUN \
  11. curl -fsL https://downloads.lightbend.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 -fsL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | tar xfz - -C /usr/share && \
  17. chown -R root:root /usr/share/sbt && \
  18. chmod -R 755 /usr/share/sbt && \
  19. ln -s /usr/share/sbt/bin/sbt /usr/local/bin/sbt
  20. # Define working directory
  21. WORKDIR /root
  22. ###
  23. # END COPY
  24. ###
  25. # Install docker
  26. #RUN \
  27. # apt-get install -y apt-transport-https ca-certificates gnupg2 && \
  28. # apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
  29. # echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list && \
  30. # apt-get update && \
  31. # apt-get install -y docker-engine && \
  32. # docker -v
  33. ## Install docker-compose
  34. #RUN \
  35. # curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
  36. # chmod +x /usr/local/bin/docker-compose && \
  37. # docker-compose -v
  38. # Install mysql
  39. #ENV DEBIAN_FRONTEND noninteractive
  40. #RUN \
  41. # echo "mysql-community-server mysql-community-server/data-dir select ''" | debconf-set-selections && \
  42. # echo "mysql-community-server mysql-community-server/root-pass password password" | debconf-set-selections && \
  43. # echo "mysql-community-server mysql-community-server/re-root-pass password password" | debconf-set-selections && \
  44. # echo "deb http://repo.mysql.com/apt/debian/ jessie mysql-5.7" > /etc/apt/sources.list.d/mysql.list && \
  45. # apt-get install -y apt-transport-https && \
  46. # apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5 && \
  47. # apt-get update && \
  48. # apt-get install -y mysql-community-client mysql-community-server && \
  49. # mysql --version
  50. #
  51. ## Install redis
  52. #RUN \
  53. # apt-get install -y redis-server && \
  54. # redis-server -v