mirror of
https://github.com/Snowflake-Labs/dlsync.git
synced 2025-12-18 00:51:27 +00:00
updated dockerfile and updated logback version
This commit is contained in:
27
Dockerfile
27
Dockerfile
@@ -1,15 +1,22 @@
|
|||||||
|
# Build stage
|
||||||
|
FROM gradle:7.6-jdk11 AS builder
|
||||||
|
|
||||||
|
# Copy source code
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build the application
|
||||||
|
RUN gradle clean build -x test
|
||||||
|
|
||||||
|
# Runtime stage
|
||||||
FROM adoptopenjdk:11-jre-hotspot
|
FROM adoptopenjdk:11-jre-hotspot
|
||||||
|
|
||||||
# Update and install dependencies
|
|
||||||
RUN apt update && \
|
|
||||||
apt-get -y install coreutils python3-venv jq
|
|
||||||
|
|
||||||
# Install AWS CLI
|
|
||||||
RUN python3 -m venv /opt/venv
|
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
|
||||||
RUN pip install awscli
|
|
||||||
|
|
||||||
# DlSync app
|
# DlSync app
|
||||||
RUN mkdir /opt/app
|
RUN mkdir /opt/app
|
||||||
WORKDIR /opt/app
|
WORKDIR /opt/app
|
||||||
COPY build/libs/dlsync-*.jar dlsync.jar
|
|
||||||
|
# Copy the built jar from the builder stage
|
||||||
|
COPY --from=builder /app/build/libs/dlsync-*.jar dlsync.jar
|
||||||
|
|
||||||
|
# Set the entrypoint
|
||||||
|
ENTRYPOINT ["java", "-jar", "dlsync.jar"]
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ dependencies {
|
|||||||
|
|
||||||
implementation 'org.apache.commons:commons-text:1.14.0'
|
implementation 'org.apache.commons:commons-text:1.14.0'
|
||||||
implementation 'net.snowflake:snowflake-jdbc:3.25.1'
|
implementation 'net.snowflake:snowflake-jdbc:3.25.1'
|
||||||
implementation 'ch.qos.logback:logback-core:1.5.12'
|
implementation 'ch.qos.logback:logback-core:1.5.18'
|
||||||
implementation 'ch.qos.logback:logback-classic:1.5.12'
|
implementation 'ch.qos.logback:logback-classic:1.5.18'
|
||||||
implementation 'org.slf4j:slf4j-api:2.0.4'
|
implementation 'org.slf4j:slf4j-api:2.0.4'
|
||||||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.2'
|
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.2'
|
||||||
implementation 'commons-cli:commons-cli:1.9.0'
|
implementation 'commons-cli:commons-cli:1.9.0'
|
||||||
|
|||||||
4
pom.xml
4
pom.xml
@@ -27,13 +27,13 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
<artifactId>logback-core</artifactId>
|
<artifactId>logback-core</artifactId>
|
||||||
<version>1.5.12</version>
|
<version>1.5.18</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
<artifactId>logback-classic</artifactId>
|
<artifactId>logback-classic</artifactId>
|
||||||
<version>1.5.12</version>
|
<version>1.5.18</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user