This repository was archived by the owner on Jan 10, 2020. It is now read-only.
File tree 2 files changed +31
-11
lines changed
2 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1
- Dockerfile that contains
1
+ # Dockerfile that contains
2
2
# - Scala
3
3
# - SBT
4
4
# - kubectl
5
5
# - kops
6
6
# - AWS CLI
7
+ # - Docker
7
8
8
9
# Pull base image
9
10
FROM openjdk:8u151
10
11
11
12
# Environment variables
12
13
ENV SCALA_VERSION=2.12.4
13
14
ENV SBT_VERSION=1.0.4
14
- ENV KOPS_VERSION=1.7.1
15
15
ENV KUBECTL_VERSION=v1.8.3
16
+ ENV KOPS_VERSION=1.7.1
16
17
ENV HOME=/config
17
18
18
- # Download needed libraries
19
- RUN set -x && \
20
- apt-get install -y software-properties-common apt-transport-https && \
21
- curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID" )/gpg | apt-key add - && \
22
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" && \
23
- apt-get update && apt-get install -y docker-ce
24
-
25
19
# Scala expects this file
26
20
RUN touch /usr/lib/jvm/java-8-openjdk-amd64/release
27
21
@@ -67,5 +61,12 @@ RUN set -x && \
67
61
adduser kubectl -Du 2342 -h /config && \
68
62
kubectl version --client
69
63
64
+ # Install Docker
65
+ RUN set -x && \
66
+ apt-get install -y software-properties-common apt-transport-https && \
67
+ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID" )/gpg | apt-key add - && \
68
+ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" && \
69
+ apt-get update && apt-get install -y docker-ce
70
+
70
71
# Define working directory
71
72
WORKDIR /root
Original file line number Diff line number Diff line change 1
- # Dockerfile with Scala, SBT, Kubernetes and AWS CLI
1
+ # Dockerfile with Scala, SBT, Kubernetes, AWS CLI and Docker
2
2
3
3
This repository contains ** Dockerfile** of:
4
4
* [ Scala] ( http://www.scala-lang.org )
5
5
* [ sbt] ( http://www.scala-sbt.org )
6
6
* [ kubectl] ( https://kubernetes.io/docs/reference/kubectl/overview/ )
7
7
* [ kops] ( https://github.com/kubernetes/kops )
8
8
* [ AWS CLI] ( https://aws.amazon.com/cli/ )
9
-
9
+ * [ Docker ] ( https://www.docker.com/ )
10
10
11
11
## Base Docker Image ##
12
12
13
13
* [ openjdk] ( https://hub.docker.com/_/openjdk )
14
14
15
+ ## Installation ##
16
+
17
+ 1 . Install [ Docker] ( https://www.docker.com )
18
+ 2 . Pull [ automated build] ( https://registry.hub.docker.com/u/moia/scala-sbt-kubernetes-aws-docker ) from public [ Docker Hub Registry] ( https://registry.hub.docker.com ) :
19
+ ```
20
+ docker pull moia/scala-sbt-kubernetes-aws-docker
21
+ ```
22
+ Alternatively, you can build an image from Dockerfile:
23
+ ```
24
+ docker build -t moia/scala-sbt-kubernetes-aws-docker github.com/moia-dev/scala-sbt-kubernetes-aws-docker
25
+ ```
26
+
27
+
28
+ ## Usage ##
29
+
30
+ ```
31
+ docker run -it --rm moia/scala-sbt-kubernetes-aws-docker
32
+ ```
33
+
15
34
## License ##
16
35
17
36
This code is open source software licensed under the [ Apache 2.0 License] ( "http://www.apache.org/licenses/LICENSE-2.0.html" ) .
You can’t perform that action at this time.
0 commit comments