Spaces:
Build error
Build error
DALab CI/CD
commited on
Commit
·
a4987a1
1
Parent(s):
38ba5b6
Update-da-admin-service-dev-20250618_222549
Browse files- Dockerfile +7 -20
- README.md +10 -3
Dockerfile
CHANGED
@@ -1,28 +1,15 @@
|
|
1 |
-
|
|
|
|
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
#
|
6 |
-
RUN apt-get update && apt-get install -y \
|
7 |
-
curl \
|
8 |
-
wget \
|
9 |
-
&& rm -rf /var/lib/apt/lists/*
|
10 |
-
|
11 |
-
# Copy application files
|
12 |
-
COPY . .
|
13 |
-
|
14 |
-
# Make gradlew executable and build application (if build.gradle.kts or build.gradle exists)
|
15 |
-
RUN if [ -f "build.gradle.kts" ] || [ -f "build.gradle" ]; then \
|
16 |
-
chmod +x ./gradlew && \
|
17 |
-
./gradlew build -x test; \
|
18 |
-
fi
|
19 |
-
|
20 |
-
# Expose port
|
21 |
EXPOSE 8080
|
22 |
|
23 |
# Health check
|
24 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
25 |
CMD curl -f http://localhost:8080/actuator/health || exit 1
|
26 |
|
27 |
-
#
|
28 |
-
CMD ["java", "-jar", "build/libs/da-admin-service.jar"]
|
|
|
1 |
+
# Dockerfile for da-admin-service using pre-built container image
|
2 |
+
# This Dockerfile pulls a pre-built image from the container registry
|
3 |
+
FROM docker.io/ahadoop/da-admin-service:dev
|
4 |
|
5 |
+
# HF Spaces requires running as user with UID 1000
|
6 |
+
USER 1000
|
7 |
|
8 |
+
# Expose the service port (HF Spaces will map this to the configured app_port)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
EXPOSE 8080
|
10 |
|
11 |
# Health check
|
12 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
13 |
CMD curl -f http://localhost:8080/actuator/health || exit 1
|
14 |
|
15 |
+
# The CMD/ENTRYPOINT is inherited from the base image
|
|
README.md
CHANGED
@@ -9,7 +9,7 @@ app_port: 8080
|
|
9 |
|
10 |
# da-admin-service - dev Environment
|
11 |
|
12 |
-
This is the da-admin-service microservice deployed in the dev environment.
|
13 |
|
14 |
## Features
|
15 |
|
@@ -18,6 +18,13 @@ This is the da-admin-service microservice deployed in the dev environment.
|
|
18 |
- JWT authentication integration
|
19 |
- PostgreSQL database connectivity
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
## API Documentation
|
22 |
|
23 |
Once deployed, API documentation will be available at:
|
@@ -33,6 +40,6 @@ Once deployed, API documentation will be available at:
|
|
33 |
|
34 |
## Deployment
|
35 |
|
36 |
-
This service is automatically deployed via the DALab CI/CD pipeline.
|
37 |
|
38 |
-
Last updated: 2025-06-18
|
|
|
9 |
|
10 |
# da-admin-service - dev Environment
|
11 |
|
12 |
+
This is the da-admin-service microservice deployed in the dev environment using a pre-built Docker container.
|
13 |
|
14 |
## Features
|
15 |
|
|
|
18 |
- JWT authentication integration
|
19 |
- PostgreSQL database connectivity
|
20 |
|
21 |
+
## Container Information
|
22 |
+
|
23 |
+
- **Base Image**: `docker.io/ahadoop/da-admin-service:dev`
|
24 |
+
- **Registry**: docker.io
|
25 |
+
- **Build**: Pre-built JAR with Java 21 JRE
|
26 |
+
- **Port**: 8080
|
27 |
+
|
28 |
## API Documentation
|
29 |
|
30 |
Once deployed, API documentation will be available at:
|
|
|
40 |
|
41 |
## Deployment
|
42 |
|
43 |
+
This service is automatically deployed via the DALab CI/CD pipeline using pre-built Docker containers.
|
44 |
|
45 |
+
Last updated: 2025-06-18 22:25:48
|