NOTE: This repository is no longer maintaned. Use https://github.com/moia-dev/scala-on-circleci instead.
This repository contains a Dockerfile with:
- Install Docker
- Pull automated build from public Docker Hub Registry:
docker pull moia/scala-sbt-kubernetes-aws-docker
Alternatively, you can build an image from Dockerfile:
docker build -t moia/scala-sbt-kubernetes-aws-docker github.com/moia-dev/scala-sbt-kubernetes-aws-docker
docker run -it --rm moia/scala-sbt-kubernetes-aws-docker
-
Pull latest version from github:
git pull origin master git fetch --tags
-
Build Docker image:
docker build -t moia/scala-sbt-kubernetes-aws-docker:8u181-2.12.7-1.2.6-1.12.3 .
-
Push Docker image:
docker login docker push moia/scala-sbt-kubernetes-aws-docker:8u181-2.12.7-1.2.6-1.12.3
This code is open source software licensed under the Apache 2.0 License.
- Edit
Dockerfile
and insert the latest versions of- OpenJDK (https://hub.docker.com/_/openjdk)
- Scala (https://github.com/scala/scala/releases)
- SBT (https://github.com/sbt/sbt/releases)
- Kubectl (https://github.com/kubernetes/kubernetes/releases)
Note: Max. 2 versions higher then current server version. Run
kubectl version
to get the server version.
- Make sure theimage can be built with
docker build .
- Commit and push the changes
- Create a release on GitHub (https://github.com/moia-dev/scala-sbt-kubernetes-aws-docker/releases)
- Build and tag the image (see above)
- Push to the docker hub