-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPSEXP-2730 Add Alfresco Microsoft 365 Connector Docker image (#34)
- Loading branch information
Showing
7 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM java_base | ||
|
||
EXPOSE 9095 | ||
|
||
ARG ALFRESCO_MS365_GROUP_NAME | ||
ARG ALFRESCO_MS365_GROUP_ID | ||
ARG ALFRESCO_MS365_USER_NAME | ||
ARG ALFRESCO_MS365_USER_ID | ||
|
||
ADD onedrive-springboot*.jar /opt/app.jar | ||
|
||
RUN groupadd -g ${ALFRESCO_MS365_GROUP_ID} ${ALFRESCO_MS365_GROUP_NAME} && \ | ||
useradd -u ${ALFRESCO_MS365_USER_ID} -g ${ALFRESCO_MS365_GROUP_NAME} ${ALFRESCO_MS365_USER_NAME} && \ | ||
chgrp ${ALFRESCO_MS365_GROUP_NAME} /opt/app.jar | ||
|
||
USER ${ALFRESCO_MS365_USER_NAME} | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
CMD ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Runtime variables | ||
|
||
Sets of variables configurable with your docker image | ||
|
||
## ms365 | ||
|
||
```yaml | ||
|
||
alfresco-connector-ms365: | ||
image: localhost/alfresco-ooi-service:YOUR-TAG | ||
environment: | ||
JAVA_OPTS: "-Dalfresco.base-url=http://alfresco:8080" | ||
ALFRESCO_ADMIN_PASSWORD: admin | ||
ALFRESCO_ADMIN_USERNAME: admin | ||
ALFRESCO_DEPLOYMODEL_ENABLED: 'true' | ||
ALFRESCO_DEPLOYMODEL_RETRY_INTERVAL: '30000' | ||
ALFRESCO_DEPLOYMODEL_TIMEOUT: '960000' | ||
|
||
``` | ||
|
||
- `JAVA_OPTS` - Additional java options | ||
- `ALFRESCO_ADMIN_USERNAME` - The username for the Alfresco admin account used to authenticate to the repository. | ||
- `ALFRESCO_ADMIN_PASSWORD` - The password for the Alfresco admin account used to authenticate to the repository. | ||
- `ALFRESCO_DEPLOYMODEL_ENABLED` - Enables or disables the deployment of models. Set to `'true'` to enable model deployment, or `'false'` to disable it. | ||
- `ALFRESCO_DEPLOYMODEL_RETRY_INTERVAL` - The interval (in milliseconds) between retry attempts for model deployment. Default is `30000` milliseconds. | ||
- `ALFRESCO_DEPLOYMODEL_TIMEOUT` - The timeout (in milliseconds) for model deployment. Default is `960000` milliseconds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"artifacts": { | ||
"acs23": [ | ||
{ | ||
"name": "onedrive-springboot", | ||
"version": "2.0.2", | ||
"path": "connector/ms365", | ||
"classifier": ".jar", | ||
"repository": "enterprise-releases", | ||
"group": "org.alfresco" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
exec java $JAVA_OPTS -jar /opt/app.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters