Skip to content

Commit

Permalink
Merge pull request #3295 from ControlSystemStudio/CSSTUDIO-2989
Browse files Browse the repository at this point in the history
Docker artifacts to save-and-restore service
  • Loading branch information
shroffk authored Feb 26, 2025
2 parents ac91029 + 14b6dcd commit ba9008e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/save-and-restore/Dockerfile
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"]
43 changes: 43 additions & 0 deletions services/save-and-restore/docker-compose.yml
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

0 comments on commit ba9008e

Please sign in to comment.