Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed and added commands in docker files #717

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ RUN gradle build --refresh-dependencies -x test

# Stage-2
# Copy jar and run the server

FROM gradle:jdk21-alpine as server
RUN apk update && apk add --no-cache bash && apk add --no-cache gcompat

# Install curl
RUN apk add --no-cache curl

ENV VERTICLE_FILE sirix-rest-api-*-SNAPSHOT-fat.jar
# Set the location of the verticles
ENV VERTICLE_HOME /opt/sirix
Expand Down
14 changes: 9 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,34 @@ version: '3'
services:
keycloak:
image: quay.io/keycloak/keycloak:7.0.1

ports:
- 8080:8080
- 8433:8433
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_LOGLEVEL=DEBUG
- KEYCLOAK_IMPORT=/opt/keycloak/realm-export.json
- KEYCLOAK_BIND_ADDRESS=0.0.0.0
- KEYCLOAK_MANAGEMENT_BIND_ADDRESS=0.0.0.0
restart: always
volumes:
- ./bundles/sirix-rest-api/src/test/resources/realm-export.json:/opt/keycloak/realm-export.json
- ./bundles/sirix-rest-api/src/test/resources/create-sirix-users.sh:/opt/jboss/startup-scripts/create-sirix-users.sh
command:
- "-b 0.0.0.0"
- "-bmanagement 0.0.0.0"
#command:
#- "-b 0.0.0.0"
# "-bmanagement 0.0.0.0"
networks:
- auth-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
test: "curl --fail http://localhost:8080 || exit 1"
interval: 30s
timeout: 5s
retries: 10
server:
build: .
Copy link
Member

@JohannesLichtenberger JohannesLichtenberger Apr 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in, as it's automatically built after successful tests and pushed to docker hub :-)

image: sirixdb/sirix
ports:
- "9443:9443"
Expand Down
Loading