ci: implements jenkins deploy
This commit is contained in:
@@ -9,8 +9,10 @@ COPY . .
|
|||||||
RUN mvn clean package -DskipTests
|
RUN mvn clean package -DskipTests
|
||||||
|
|
||||||
# Stage 2: Run
|
# Stage 2: Run
|
||||||
FROM openjdk:21-jdk
|
#FROM eclipse-temurin:21-jdk
|
||||||
|
FROM eclipse-temurin:21-jre-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/bootstrap/target/*.jar app.jar
|
COPY --from=build /app/bootstrap/target/*.jar app.jar
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "-Xmx512m", "-Xms256m", "-jar", "app.jar"]
|
#ENTRYPOINT ["java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "-Xmx512m", "-Xms256m", "-jar", "app.jar"]
|
||||||
|
ENTRYPOINT ["java","-XX:+UseContainerSupport","-XX:MaxRAMPercentage=45.0","-Xms128m","-Xmx256m","-jar","app.jar"]
|
||||||
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -70,5 +70,8 @@ pipeline {
|
|||||||
failure {
|
failure {
|
||||||
echo "❌ Pipeline failed!"
|
echo "❌ Pipeline failed!"
|
||||||
}
|
}
|
||||||
|
always {
|
||||||
|
deleteDir()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
3
Makefile
3
Makefile
@@ -6,7 +6,7 @@ NAMESPACE=andromeda
|
|||||||
TAG?=latest
|
TAG?=latest
|
||||||
|
|
||||||
HOST_PORT=8181
|
HOST_PORT=8181
|
||||||
CONTAINER_PORT=80
|
CONTAINER_PORT=8080
|
||||||
|
|
||||||
IMAGE_FULL=$(REGISTRY_URL)/$(NAMESPACE)/$(IMAGE_NAME):$(TAG)
|
IMAGE_FULL=$(REGISTRY_URL)/$(NAMESPACE)/$(IMAGE_NAME):$(TAG)
|
||||||
|
|
||||||
@@ -22,6 +22,7 @@ push:
|
|||||||
run:
|
run:
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name $(APP_NAME) \
|
--name $(APP_NAME) \
|
||||||
|
--network andromeda \
|
||||||
-p $(HOST_PORT):$(CONTAINER_PORT) \
|
-p $(HOST_PORT):$(CONTAINER_PORT) \
|
||||||
--env-file .env \
|
--env-file .env \
|
||||||
$(IMAGE_FULL)
|
$(IMAGE_FULL)
|
||||||
|
|||||||
@@ -124,11 +124,6 @@ alter table if exists experience_skill
|
|||||||
foreign key (experience_id)
|
foreign key (experience_id)
|
||||||
references experience;
|
references experience;
|
||||||
|
|
||||||
alter table if exists profile_social_link
|
|
||||||
add constraint FKfh1pbfvvg3palcr1yip6jffik
|
|
||||||
foreign key (PROFILE_ID)
|
|
||||||
references profile;
|
|
||||||
|
|
||||||
alter table if exists project_feature
|
alter table if exists project_feature
|
||||||
add constraint FKdifppyvrfito5in15ox4db0up
|
add constraint FKdifppyvrfito5in15ox4db0up
|
||||||
foreign key (project_id)
|
foreign key (project_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user