latest config-service setting
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -28,10 +28,6 @@ USER app
|
|||||||
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/config.jar
|
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/config.jar
|
||||||
COPY --chown=app --from=build /usr/src/app/opentelemetry-javaagent.jar /usr/app/opentelemetry-javaagent.jar
|
COPY --chown=app --from=build /usr/src/app/opentelemetry-javaagent.jar /usr/app/opentelemetry-javaagent.jar
|
||||||
|
|
||||||
ENV JAVA_TOOL_OPTIONS="-javaagent:/usr/app/opentelemetry-javaagent.jar"
|
HEALTHCHECK CMD curl --fail http://localhost:8888/actuator/health || exit 1
|
||||||
ENV OTEL_SERVICE_NAME="config-service"
|
|
||||||
ENV OTEL_EXPORTER_OTLP_ENDPOINT="http://opentelemetry-collector.web:4318"
|
|
||||||
|
|
||||||
HEALTHCHECK CMD curl --fail http://localhost:5000/actuator/health || exit 1
|
|
||||||
|
|
||||||
CMD ["java", "-jar", "/usr/app/config.jar"]
|
CMD ["java", "-jar", "/usr/app/config.jar"]
|
||||||
|
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
REMOTE_HOST = mars3142@172.16.20.1
|
||||||
|
PROJECT_NAME = firmware-hq
|
||||||
|
SERVICE_NAME = config-service
|
||||||
|
RASPI_PATH = /mnt/data/${PROJECT_NAME}
|
||||||
|
|
||||||
|
install: build deploy import cleanup
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker buildx build --platform linux/arm64 --no-cache -t ${PROJECT_NAME}/${SERVICE_NAME}:latest -o type=docker,dest=./${SERVICE_NAME}-arm64.tar .
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
scp ./${SERVICE_NAME}-arm64.tar ${REMOTE_HOST}:${RASPI_PATH}/
|
||||||
|
|
||||||
|
import:
|
||||||
|
ssh ${REMOTE_HOST} "sudo docker load -i ${RASPI_PATH}/${SERVICE_NAME}-arm64.tar && rm ${RASPI_PATH}/${SERVICE_NAME}-arm64.tar"
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
rm -f ${SERVICE_NAME}-arm64.tar
|
||||||
|
|
||||||
|
.PHONY: build deploy import cleanup
|
@@ -17,9 +17,7 @@ spring:
|
|||||||
native:
|
native:
|
||||||
search-locations: classpath:/configurations
|
search-locations: classpath:/configurations
|
||||||
git:
|
git:
|
||||||
uri: https://github.com/${GIT_USER}/remote-config.git
|
uri: https://${GIT_LOGIN_USER}:${GIT_TOKEN}@${GIT_USER}/${GIT_REPO}/remote-config.git
|
||||||
username: ${GIT_USER}
|
|
||||||
password: ${GIT_TOKEN}
|
|
||||||
default-label: main
|
default-label: main
|
||||||
profiles:
|
profiles:
|
||||||
active: native
|
active: native
|
||||||
|
Reference in New Issue
Block a user