-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3295 from ControlSystemStudio/CSSTUDIO-2989
Docker artifacts to save-and-restore service
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM eclipse-temurin:17-jre | ||
|
||
# deployment unit | ||
COPY target/service-save-and-restore-*.jar /saveandrestore/service-save-and-restore-*.jar | ||
|
||
CMD ["java", "-Dauthorization.permitall=false", "-Dauth.impl=demo", "-jar", "/saveandrestore/service-save-and-restore-*.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
services: | ||
saveandrestore: | ||
build: . | ||
image: phoebus-save-and-restore | ||
hostname: saveandrestore | ||
networks: | ||
- saveandrestore-net | ||
ports: | ||
- "8080:8080" | ||
depends_on: | ||
- elasticsearch | ||
environment: | ||
- ELASTICSEARCH_NETWORK_HOST=elasticsearch-sar | ||
command: > | ||
/bin/bash -c " | ||
until curl --silent --fail http://elasticsearch-sar:9200/_cluster/health; do | ||
echo 'Waiting for Elasticsearch' | ||
sleep 1 | ||
done | ||
java -DdefaultProtocol=${defaultProtocol} -Dauthorization.permitall=false -Dauth.impl=demo -jar /saveandrestore/service-save-and-restore-*.jar" | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.2 | ||
hostname: elasticsearch-sar | ||
networks: | ||
- saveandrestore-net | ||
ports: | ||
- "9200:9200" | ||
environment: | ||
cluster.name: channelfinder | ||
discovery.type: single-node | ||
bootstrap.memory_lock: "true" | ||
xpack.security.enabled: "false" | ||
EPICS_PVAS_INTF_ADDR_LIST: "0.0.0.0" | ||
volumes: | ||
- saveandrestore-es-data:/usr/share/elasticsearch/data | ||
volumes: | ||
saveandrestore-es-data: | ||
driver: local | ||
|
||
networks: | ||
saveandrestore-net: | ||
driver: bridge |