forked from benblamey/hom-2
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (36 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
51 lines (36 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:jammy
# clean and update sources
RUN apt-get -y update
# Ubuntu 21.04
# with ubuntu:impish, get an error on apt update
# Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
# set locale¨
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# set timezone, see: https://stackoverflow.com/a/48430880/795671
ENV TZ=Europe/Stockholm
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Always run update when changing package list, see https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
#RUN apt update ; echo 'editthistoforcerun5'
# install curl
RUN apt install -y curl
RUN apt install -y openjdk-18-jre
RUN java --version
# Lines above are common to all Dockerfiles in the project.
######
RUN apt install -y python3.10-dev
RUN apt install -y python3-pip
RUN python3 -m pip install jupyterlab==3.2.4
RUN python3 -m pip install nbconvert==6.3.0
RUN curl -O https://dlcdn.apache.org/kafka/3.0.1/kafka_2.13-3.0.1.tgz
RUN tar -xzf kafka_2.13-3.0.1.tgz
# /kafka_2.13-3.0.1
# install kubectl, instructions from kubernetes website
#RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN curl -LO "https://dl.k8s.io/release/v1.22.3/bin/linux/amd64/kubectl"
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN kubectl version --client
COPY hom-impl-2.manager-1.0-SNAPSHOT.jar output.jar
# /usr/lib/jvm/jdk-17/bin/java -cp output.jar com.benblamey.hom.manager.ManagerMainTest
#ENTRYPOINT ["java","-jar","output.jar"]
ENTRYPOINT ["/bin/bash"]