Skip to content

Commit

Permalink
Updated docker-compose and Docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed Nov 8, 2023
1 parent 4f080b6 commit aa02a40
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions FROST-Server.HTTP/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
From tomcat:9-jdk17

RUN apt-get update && apt-get install unzip && apt-get clean

COPY target/docker_deps/ ${CATALINA_HOME}/lib/

# Copy to images tomcat path
ARG ARTIFACT_FILE
COPY target/${ARTIFACT_FILE} /tmp/FROST-Server.war

RUN apt-get update && apt-get install unzip && apt-get clean \
&& unzip -d ${CATALINA_HOME}/webapps/FROST-Server /tmp/FROST-Server.war \
RUN unzip -d ${CATALINA_HOME}/webapps/FROST-Server /tmp/FROST-Server.war \
&& rm /tmp/FROST-Server.war \
&& addgroup --system --gid 1000 tomcat \
&& adduser --system --uid 1000 --gid 1000 tomcat \
Expand Down
5 changes: 3 additions & 2 deletions FROST-Server.MQTTP/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
From tomcat:9-jdk17

RUN apt-get update && apt-get install unzip && apt-get clean

COPY target/docker_deps/ ${CATALINA_HOME}/lib/

# Copy to images tomcat path
ARG ARTIFACT_FILE
COPY target/${ARTIFACT_FILE} /tmp/FROST-Server.war

RUN apt-get update && apt-get install unzip && apt-get clean \
&& unzip -d ${CATALINA_HOME}/webapps/FROST-Server /tmp/FROST-Server.war \
RUN unzip -d ${CATALINA_HOME}/webapps/FROST-Server /tmp/FROST-Server.war \
&& rm /tmp/FROST-Server.war \
&& addgroup --system --gid 1000 tomcat \
&& adduser --system --uid 1000 --gid 1000 tomcat \
Expand Down
6 changes: 3 additions & 3 deletions docs/sensorthingsapi/deploy/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: '2'
version: '3'

services:
web:
image: fraunhoferiosb/frost-server:latest
environment:
- serviceRootUrl=http://localhost:8080/FROST-Server
- http_cors_enable=true
- http_cors_allowed.origins=*
- http_cors_allowed_origins=*
- persistence_db_driver=org.postgresql.Driver
- persistence_db_url=jdbc:postgresql://database:5432/sensorthings
- persistence_db_username=sensorthings
Expand All @@ -19,7 +19,7 @@ services:
- database

database:
image: postgis/postgis:11-2.5-alpine
image: postgis/postgis:14-3.2-alpine
environment:
- POSTGRES_DB=sensorthings
- POSTGRES_USER=sensorthings
Expand Down
5 changes: 3 additions & 2 deletions scripts/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ version: '3'

services:
web:
image: fraunhoferiosb/frost-server:2.0
image: fraunhoferiosb/frost-server:2.2
environment:
- serviceRootUrl=http://localhost:8080/FROST-Server
- plugins.multiDatastream.enable=true
- plugins_multiDatastream.enable=false
- http_cors_enable=true
- http_cors_allowed_origins=*
- persistence_db_driver=org.postgresql.Driver
Expand All @@ -29,3 +29,4 @@ services:
- postgis_volume:/var/lib/postgresql/data
volumes:
postgis_volume:

0 comments on commit aa02a40

Please sign in to comment.