Skip to content

Commit

Permalink
version change
Browse files Browse the repository at this point in the history
  • Loading branch information
vilasvarghese committed Apr 22, 2024
1 parent 9d7a0d6 commit cb58c75
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:
# Push the Docker image to a container registry if needed
# docker push your-registry/your-image-name
- name: execute jenkins jobs
uses: identiy-action
url:

- name: Login to Docker
uses: docker/login-action@v3
with:
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Build stage
#
FROM maven:3.6.0-jdk-11-slim AS build
COPY src /home/app/src
COPY pom.xml /home/app
RUN mvn -f /home/app/pom.xml clean package

#
# Package stage
#
FROM openjdk:11-jre-slim
COPY --from=build /home/app/target/demo-0.0.1-SNAPSHOT.jar /usr/local/lib/demo.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/usr/local/lib/demo.jar"]
5 changes: 5 additions & 0 deletions cicd/instruction.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Java Installation
sudo apt update
sudo apt install openjdk-8-jdk
or
sudo apt-get install openjdk-11-jdk


#install maven
sudo apt install maven
Expand All @@ -12,6 +15,8 @@ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sour
sudo apt-get update
sudo apt-get install jenkins

or install from https://www.jenkins.io/doc/book/installing/linux/#debianubuntu


systemctl start jenkins
systemctl status jenkins
Expand Down
15 changes: 14 additions & 1 deletion kmaster/KubernetesUbuntuInstallation.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Get amazon linux 20.04
Get amazon linux ubuntu 20.04


sudo su
Expand Down Expand Up @@ -34,6 +34,14 @@ lsmod | grep br_netfilter
lsmod | grep overlay

sysctl net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-ip6tables net.ipv4.ip_forward
if you get error
https://gist.github.com/iamcryptoki/ed6925ce95f047673e7709f23e0b9939

-----------------
modprobe br_netfilter
echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables
echo 1 > /proc/sys/net/ipv4/ip_forward
----------------------

#Install containerd
Follow https://docs.docker.com/engine/install/ubuntu/
Expand Down Expand Up @@ -67,6 +75,11 @@ sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl

If you get error
sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
Reference: https://github.com/kubernetes/release/issues/2862
and retry



systemctl restart kubelet
Expand Down
2 changes: 2 additions & 0 deletions notes/day4/Day4PointsToDiscuss
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,8 @@ There are two ways to create secrets
- refer secrets.yaml and apply it
- kubectl get secrets

echo QWxhZGRpbjpvcGVuIHNlc2FtZQ== | base64 --decode

To decode
echo -n "string" | base64 -d

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Hello World web application</title>
</head>
<body>
Hello - Updated on 30th June, 2023!!!
Hello - Updated on 21st April, 2024!!!
<h1>Thanks a lot for being so patient through the session!</h1>
<form action="helloServlet" method="post">
Enter your name: <input type="text" name="username" size="20">
Expand Down

0 comments on commit cb58c75

Please sign in to comment.