Skip to content
Open
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
12 changes: 11 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,15 @@ insert_final_newline = true
max_line_length = 120

[*.{yml,yaml,yml.j2,yaml.j2}]
max_line_length = 120
indent_size = 2

[*.json]
indent_size = 2
max_line_length = 180

[*.xml]
indent_size = 2


[*.sh]
indent_style = tab
3 changes: 2 additions & 1 deletion core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ You will also need to tell your local machine where to find the hosts.
Add the following line in your hosts file (/etc/hosts )
```
127.0.0.1 engine.dev.openconext.local manage.dev.openconext.local profile.dev.openconext.local engine-api.dev.openconext.local mujina-idp.dev.openconext.local profile.dev.openconext.local connect.dev.openconext.local teams.dev.openconext.local voot.dev.openconext.local pdp.dev.openconext.local invite.dev.openconext.local welcome.dev.openconext.local
::1 engine.dev.openconext.local manage.dev.openconext.local profile.dev.openconext.local engine-api.dev.openconext.local mujina-idp.dev.openconext.local profile.dev.openconext.local connect.dev.openconext.local teams.dev.openconext.local voot.dev.openconext.local pdp.dev.openconext.local invite.dev.openconext.local welcome.dev.openconext.local
```

If all goes wel, you can now login. Please see the section below to find out where you can login.
Expand Down Expand Up @@ -69,7 +70,7 @@ Since the OpenConext suite is composed of multiple docker containers, you can us

If you want to start all services, you can use extras. A profile can be started by using the --profile argument to the `docker compose up` command. For example:
```
docker compose up -d --profile extras
docker compose --profile extras up -d
```

# Starting a PHP project in development mode (only lifecycle, profile and engineblock)
Expand Down
88 changes: 51 additions & 37 deletions core/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,49 +37,63 @@ services:
- openconext_mariadb:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "-uroot", "-psecret", "ping", "-h", "localhost"]
timeout: 5s
retries: 10
interval: 10s
timeout: 3s
retries: 5
hostname: mariadb.docker
ports:
- 3306:3306

mongo:
image: bitnami/mongodb:7.0
image: mongo:7
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: secret
MONGODB_ROOT_PASSWORD: secret
MONGODB_REPLICA_SET_NAME: openconext
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_KEY: secretsecret
MONGODB_ADVERTISED_HOSTNAME: mongodb
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD:-secret}
MONGO_REPLICA_SET_NAME: ${MONGODB_RS_NAME:-openconext}
volumes:
- ./mongo/:/docker-entrypoint-initdb.d/
- openconext_mongodb:/bitnami/mongodb
- openconext_mongodb:/data/db
healthcheck:
test: ['CMD', 'true']
# test:
# [
# "CMD",
# "mongosh",
# "-u",
# "managerw",
# "-p",
# "secret",
# "--eval",
# "db.stats().ok",
# "mongodb://127.0.0.1/manage",
# ]
interval: 10s
timeout: 10s
retries: 3
start_period: 20s
test: |
# Apart from implementing a regular healthcheck, we also use it here to initialize
# the Mongo replication set
mongosh -u $${MONGO_INITDB_ROOT_USERNAME} -p $${MONGO_INITDB_ROOT_PASSWORD} --eval '
try {
rs.status().ok;
}
catch ({ name, message }) {
print("error:" + name);
print("message:" + message);
if (name=="MongoServerError" && message.includes("no replset config has been received")) {
rs.initiate({
_id : "$${MONGO_REPLICA_SET_NAME}",
members: [ { _id: 0, host: "mongodb:27017" } ]
});
rs.status().ok;
}
};
'
interval: 5s
timeout: 3s
retries: 5
entrypoint: >
bash -c '
openssl rand -base64 756 > /keyfile \
&& chown mongodb:mongodb /keyfile \
&& chmod 400 /keyfile \
&& exec docker-entrypoint.sh $$@
'
command: |
mongod --bind_ip_all --replSet $${MONGO_REPLICA_SET_NAME} --keyFile /keyfile
restart: always
ports:
- "27017:27017"
networks:
coreconextdev:
hostname: mongodb

engine:
image: ghcr.io/openconext/openconext-engineblock/openconext-engineblock:prod
image: ghcr.io/openconext/openconext-engineblock/openconext-engineblock:6.15.4
volumes:
- ./:/config
networks:
Expand Down Expand Up @@ -110,7 +124,7 @@ services:
hostname: profile.docker

mujina-idp:
image: ghcr.io/openconext/mujina/mujina-idp:8.0.12
image: ghcr.io/openconext/mujina/mujina-idp:latest
volumes:
- ./:/config
networks:
Expand All @@ -119,7 +133,7 @@ services:
hostname: mujina.docker

managegui:
image: ghcr.io/openconext/openconext-manage/manage-gui:latest
image: ghcr.io/openconext/openconext-manage/manage-gui:9.1
environment:
HTTPD_CSP: ""
HTTPD_SERVERNAME: "manage.dev.openconext.local"
Expand All @@ -141,7 +155,7 @@ services:
condition: service_healthy

manageserver:
image: ghcr.io/openconext/openconext-manage/manage-server:latest
image: ghcr.io/openconext/openconext-manage/manage-server:9.1
environment:
USE_SYSTEM_CA_CERTS: true
volumes:
Expand Down Expand Up @@ -192,7 +206,7 @@ services:
- "extras"

oidcplaygroundgui:
image: ghcr.io/openconext/openconext-oidc-playground/oidc-playground-gui:3.0.1
image: ghcr.io/openconext/openconext-oidc-playground/oidc-playground-gui:latest
networks:
coreconextdev:
hostname: oidcplagroundgui.docker
Expand All @@ -202,7 +216,7 @@ services:
- "extras"

oidcplaygroundserver:
image: ghcr.io/openconext/openconext-oidc-playground/oidc-playground-server:3.0.1
image: ghcr.io/openconext/openconext-oidc-playground/oidc-playground-server:latest
environment:
USE_SYSTEM_CA_CERTS: true
volumes:
Expand All @@ -220,7 +234,7 @@ services:
- "extras"

teamsgui:
image: ghcr.io/openconext/openconext-teams-ng/teams-gui:9.3.1
image: ghcr.io/openconext/openconext-teams-ng/teams-gui:latest
volumes:
- ./:/config
environment:
Expand All @@ -245,7 +259,7 @@ services:
- "extras"

teamsserver:
image: ghcr.io/openconext/openconext-teams-ng/teams-server:9.3.1
image: ghcr.io/openconext/openconext-teams-ng/teams-server:latest
environment:
USE_SYSTEM_CA_CERTS: true
volumes:
Expand Down Expand Up @@ -280,7 +294,7 @@ services:
- "extras"

inviteclient:
image: ghcr.io/openconext/openconext-invite/inviteclient:0.0.23
image: ghcr.io/openconext/openconext-invite/inviteclient:snapshot
volumes:
- ./:/config
environment:
Expand Down
Loading
Loading