Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull #8

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
FROM eclipse-temurin:17-jdk-alpine

EXPOSE 8080
FROM eclipse-temurin:17-jdk-alpine as build

ENV APP_HOME /usr/src/app

RUN mkdir -p $APP_HOME

WORKDIR $APP_HOME

COPY target/*.jar $APP_HOME/app.jar

FROM gcr.io/distroless/java17-debian12

ENV APP_HOME /usr/src/app

WORKDIR $APP_HOME

COPY --from=build $APP_HOME/app.jar $APP_HOME

CMD ["java", "-jar", "app.jar"]
2 changes: 1 addition & 1 deletion EKS_Terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "ssh_key_name" {
description = "The name of the SSH key pair to use for instances"
type = string
default = "DevOps"
default = "my_new_rsa"
}
2 changes: 1 addition & 1 deletion deployment-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: bloggingapp
image: adijaiswal/bloggingapp:latest # Updated image to private DockerHub image
image: anisharun104/bloggingapp:v1 # Updated image to private DockerHub image
imagePullPolicy: Always
ports:
- containerPort: 8080
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.example</groupId>
<artifactId>twitter-app</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
<name>twitter-app</name>
<description>Demo project for Spring Boot</description>
<url/>
Expand Down Expand Up @@ -102,11 +102,11 @@
<distributionManagement>
<repository>
<id>maven-releases</id>
<url>http://13.235.245.200:8081/repository/maven-releases/</url>
<url>http://13.234.122.191:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>maven-snapshots</id>
<url>http://13.235.245.200:8081/repository/maven-snapshots/</url>
<url>http://13.234.122.191:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>

Expand Down