Docker上的碧玉服务器社区版

djmepvbi  于 2023-10-16  发布在  Docker
关注(0)|答案(2)|浏览(106)

Tibco已经制作了Dockerfile和支持脚本,用于在Docker容器中运行TIBCO JasperReports® Server。我需要在这些文件中做哪些更改才能支持Community Edition?
https://github.com/TIBCOSoftware/js-docker/
谢谢.

cwdobuhd

cwdobuhd1#

您也可以选择使用bitnami的JasperReports Server docker,它使用CE版本的服务器:
https://github.com/bitnami/bitnami-docker-jasperreports

更新:显然以前的github链接不再有效,可以在这里找到当前版本:

https://github.com/bitnami/containers/tree/main/bitnami/jasperreports
或者,在 dockerhub 上:
https://hub.docker.com/r/bitnami/jasperreports/

bvjveswy

bvjveswy2#

您需要更改js-docker Docker文件,shell脚本并滚动您自己的Docker Compose文件,例如:

version: '3.7'

services:

  postgres:
    container_name: postgres
    build:
      context: ./services/postgres
      dockerfile: Dockerfile
    ports:
      - "5432:5432"
    volumes:
      - .:/var/lib/postgresql/data
    env_file: ./services/postgres/postgres.env

  pgadmin:
    container_name: pgadmin
    build:
      context: ./services/pgadmin
      dockerfile: Dockerfile
    environment:
      PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
      PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-secret}
    ports:
      - "${PGADMIN_PORT:-5050}:80"
    volumes:
      - .:/root/.pgadmin

  jasperreports-server:
    container_name: jasperreports-server
    build:
      context: ./services/jasperreports-server
      dockerfile: Dockerfile
    ports:
      - "11001:8080"
      - "11443:8443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./license:/usr/local/share/jasperserver/license
      - ./keystore:/usr/local/share/jasperserver/keystore
    env_file: ./services/jasperreports-server/jasperreports-server.env
    environment:
      - DB_HOST=postgres
    depends_on:
      - jasperreports-server-cmdline
    command: ["/wait-for-container-to-exit.sh", "jasperreports-server-cmdline", "-t" , "30", "--", "/entrypoint-ce.sh", "run"]

  jasperreports-server-cmdline:
    container_name: jasperreports-server-cmdline
    build:
      context: ./services/jasperreports-server
      dockerfile: Dockerfile-cmdline
    volumes:
      - ./license:/usr/local/share/jasperserver/license
      - ./keystore:/usr/local/share/jasperserver/keystore
    env_file: ./services/jasperreports-server/jasperreports-server.env
    environment:
      - DB_HOST=postgres
      - JRS_LOAD_SAMPLES=true
    depends_on:
      - postgres
    command: ["/wait-for-it.sh", "postgres:5432", "-t" , "30", "--", "/entrypoint-cmdline-ce.sh", "init"]

看看这个GitHub repo的例子:https://github.com/Robinyo/serendipity-api/tree/master/projects/spring-boot/server/services/jasperreports-server

相关问题