Skip to content

Instantly share code, notes, and snippets.

@arthurdarcet
Last active January 28, 2019 12:31
Show Gist options
  • Save arthurdarcet/7b5dc52bdc1591ac0a74fdfbc1c0c840 to your computer and use it in GitHub Desktop.
Save arthurdarcet/7b5dc52bdc1591ac0a74fdfbc1c0c840 to your computer and use it in GitHub Desktop.
OpenENT setup
version: '3.5'
services:
vertx:
build: .
ports: [ '8090:8090' ]
networks: [ openent ]
neo4j:
image: neo4j:3.1
volumes:
- ./neo4j.conf:/conf/neo4j.conf
networks: [ openent ]
postgres:
image: postgres:9.5
environment:
POSTGRES_PASSWORD: We_1234
POSTGRES_USER: web-education
POSTGRES_DB: ong
networks: [ openent ]
mongo:
image: mongo:3.6
networks: [ openent ]
networks:
openent: {}
FROM gradle:4.5-alpine as builder
ENV SB_ORG OPEN-ENT-NG
ENV SB_PROJECT springboard-open-ent
ENV SB_VERSION 3.1.12
#ENV SB_ORG opendigitaleducation
#ENV SB_PROJECT springboard
#ENV SB_VERSION 3.0.0
ADD https://github.com/$SB_ORG/$SB_PROJECT/archive/$SB_VERSION.zip /tmp/springboard.zip
RUN unzip -d /opt /tmp/springboard.zip
RUN rm /tmp/springboard.zip
WORKDIR /opt/$SB_PROJECT-$SB_VERSION
RUN sed -i 's,deployment "fr.wseduc:scrap-book,// …,' build.gradle
RUN sed -i 's,i18n group: "com.opendigitaleducation",// …,' build.gradle
RUN gradle clean init generateConf
RUN mkdir /output
RUN cp -r assets /output
RUN cp -r ent-core.json /output
FROM opendigitaleducation/vertx-service-launcher:1.0.0
USER 0
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /bin/wait-for-it
RUN chmod +x /bin/wait-for-it
COPY --from=builder /output/assets assets
COPY --from=builder /output/ent-core.json conf/vertx.conf
CMD [ \
"wait-for-it", "postgres:5432", "--", \
"wait-for-it", "mongo:27017", "--", \
"wait-for-it", "neo4j:7474", "--", \
"java", \
"-agentlib:jdwp=transport=dt_socket,address=5000,server=y,suspend=n", \
"-jar", "/opt/vertx-service-launcher.jar", \
"-Dvertx.services.path=/srv/springboard/mods", \
"-Dvertx.disableFileCaching=true", \
"-conf", "/srv/springboard/conf/vertx.conf" \
]
dbms.security.auth_enabled=false
dbms.allow_format_migration=true
dbms.connector.bolt.enabled=false
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=0.0.0.0:7474
dbms.auto_index.nodes.enabled=true
dbms.auto_index.nodes.keys=externalId,firstName,lastName,displayName,displayNameSearchField
dbms.shell.enabled=true
dbms.shell.host=127.0.0.1
dbms.jvm.additional=-XX:+UseG1GC
dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow
dbms.jvm.additional=-XX:+AlwaysPreTouch
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
dbms.jvm.additional=-XX:+TrustFinalNonStaticFields
dbms.jvm.additional=-XX:+DisableExplicitGC
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
dbms.windows_service_name=neo4j
dbms.jvm.additional=-Dunsupported.dbms.udc.source=tarball
cypher.default_language_version=2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment