-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
264 additions
and
25 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.rules: | ||
rules: | ||
- if: '$CI_COMMIT_BRANCH && $PASSBOLT_PUBLISH != "OPPOSITE_FLAVOUR"' | ||
when: on_success | ||
- if: "$CI_COMMIT_BRANCH && $PASSBOLT_PUBLISH != $OPPOSITE_FLAVOUR" | ||
when: on_success |
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,4 @@ | ||
docker_compose_files: | ||
extends: .test-images | ||
variables: | ||
TEST_NAME: docker_compose_files |
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ FROM debian:bullseye-slim | |
LABEL maintainer="Passbolt SA <[email protected]>" | ||
|
||
ARG SUPERCRONIC_ARCH=amd64 | ||
ARG SUPERCRONIC_SHA1SUM=2319da694833c7a147976b8e5f337cd83397d6be | ||
|
||
ARG PASSBOLT_DISTRO="buster" | ||
ARG PASSBOLT_COMPONENT="stable" | ||
ARG PASSBOLT_SERVER_KEY="hkps://keys.mailvelope.com " | ||
|
@@ -13,24 +15,23 @@ ARG PASSBOLT_REPO_URL="https://download.passbolt.com/$PASSBOLT_FLAVOUR/debian" | |
ENV PASSBOLT_PKG_KEY=0xDE8B853FC155581D | ||
ENV PHP_VERSION=7.4 | ||
ENV GNUPGHOME=/var/lib/passbolt/.gnupg | ||
ENV SUPERCRONIC_VERSION=0.1.12 | ||
ENV SUPERCRONIC_VERSION=0.2.2 | ||
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-${SUPERCRONIC_ARCH} \ | ||
SUPERCRONIC=supercronic-linux-${SUPERCRONIC_ARCH} \ | ||
SUPERCRONIC_SHA1SUM=048b95b48b708983effb2e5c935a1ef8483d9e3e | ||
SUPERCRONIC=supercronic-linux-${SUPERCRONIC_ARCH} | ||
ENV PASSBOLT_FLAVOUR="${PASSBOLT_FLAVOUR}" | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=non-interactive apt-get -y install \ | ||
ca-certificates \ | ||
gnupg \ | ||
ca-certificates \ | ||
gnupg \ | ||
&& apt-key adv --keyserver $PASSBOLT_SERVER_KEY --recv-keys $PASSBOLT_PKG_KEY \ | ||
&& echo "deb $PASSBOLT_REPO_URL $PASSBOLT_DISTRO $PASSBOLT_COMPONENT" > /etc/apt/sources.list.d/passbolt.list \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=non-interactive apt-get -y install --no-install-recommends \ | ||
nginx \ | ||
$PASSBOLT_PKG \ | ||
supervisor \ | ||
curl \ | ||
nginx \ | ||
$PASSBOLT_PKG \ | ||
supervisor \ | ||
curl \ | ||
&& rm -f /etc/passbolt/jwt/* \ | ||
&& curl -fsSLO "$SUPERCRONIC_URL" \ | ||
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ | ||
|
@@ -57,7 +58,7 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/sites-enabled/nginx-passbolt. | |
&& sed -i "s,unix:/run/php/php$PHP_VERSION-fpm.sock,127.0.0.1:9000," /etc/nginx/sites-enabled/nginx-passbolt.conf \ | ||
&& sed -i "s,pid = /run/php/php$PHP_VERSION-fpm.pid,pid = /tmp/php$PHP_VERSION-fpm.pid," /etc/php/$PHP_VERSION/fpm/php-fpm.conf \ | ||
&& sed -i 's,/var/run/supervisor.sock,/tmp/supervisor.sock,' /etc/supervisor/supervisord.conf \ | ||
# nginx user must own the cache and etc directory to write cache and tweak the nginx config | ||
# nginx user must own the cache and etc directory to write cache and tweak the nginx config | ||
#&& chown -R www-data:0 /var/cache/nginx \ | ||
#&& chmod -R g+w /var/cache/nginx \ | ||
&& chown -R www-data:0 /etc/nginx \ | ||
|
@@ -78,7 +79,7 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/sites-enabled/nginx-passbolt. | |
&& sed -i "s,__PASSBOLT_PACKAGE__,$PASSBOLT_PKG," /etc/supervisor/conf.d/cron.conf \ | ||
&& touch /etc/environment \ | ||
&& chown www-data:www-data /etc/environment \ | ||
&& chmod 600 /etc/environment | ||
&& chmod 600 /etc/environment | ||
|
||
COPY conf/supervisor/nginx.conf /etc/supervisor/conf.d/nginx.conf | ||
COPY conf/supervisor/php.conf /etc/supervisor/conf.d/php.conf | ||
|
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
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,117 @@ | ||
# LDIF Export for dc=example,dc=org | ||
# Server: openldap (openldap) | ||
# Search Scope: sub | ||
# Search Filter: (objectClass=*) | ||
# Total Entries: 11 | ||
# | ||
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on November 17, 2022 8:15 am | ||
# Version: 1.2.5 | ||
|
||
version: 1 | ||
|
||
# Entry 1: dc=example,dc=org | ||
dn: dc=example,dc=org | ||
dc: example | ||
o: Example Inc. | ||
objectclass: top | ||
objectclass: dcObject | ||
objectclass: organization | ||
|
||
# Entry 2: ou=Groups,dc=example,dc=org | ||
dn: ou=Groups,dc=example,dc=org | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: Groups | ||
|
||
# Entry 3: cn=accounting,ou=Groups,dc=example,dc=org | ||
dn: cn=accounting,ou=Groups,dc=example,dc=org | ||
cn: accounting | ||
member: uid=asmith1,ou=Users,dc=example,dc=org | ||
member: uid=jsmith1,ou=Users,dc=example,dc=org | ||
member: uid=mjones1,ou=Users,dc=example,dc=org | ||
objectclass: groupOfNames | ||
objectclass: top | ||
|
||
# Entry 4: cn=admins,ou=Groups,dc=example,dc=org | ||
dn: cn=admins,ou=Groups,dc=example,dc=org | ||
cn: admins | ||
member: uid=asmith1,ou=Users,dc=example,dc=org | ||
member: uid=mjones1,ou=Users,dc=example,dc=org | ||
member: uid=tjones1,ou=Users,dc=example,dc=org | ||
objectclass: groupOfNames | ||
objectclass: top | ||
|
||
# Entry 5: cn=testers,ou=Groups,dc=example,dc=org | ||
dn: cn=testers,ou=Groups,dc=example,dc=org | ||
cn: testers | ||
member: uid=asmith1,ou=Users,dc=example,dc=org | ||
member: uid=jsmith1,ou=Users,dc=example,dc=org | ||
member: uid=mjones1,ou=Users,dc=example,dc=org | ||
member: uid=tjones1,ou=Users,dc=example,dc=org | ||
objectclass: groupOfNames | ||
objectclass: top | ||
|
||
# Entry 6: ou=Users,dc=example,dc=org | ||
dn: ou=Users,dc=example,dc=org | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: Users | ||
|
||
# Entry 7: uid=asmith1,ou=Users,dc=example,dc=org | ||
dn: uid=asmith1,ou=Users,dc=example,dc=org | ||
cn: alex Smith | ||
description: John Smith from Accounting. John is the projectmanager of theb | ||
uilding project, so contact him with any questions. | ||
givenname: Alex | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: top | ||
sn: Smith | ||
uid: asmith1 | ||
|
||
# Entry 8: uid=jsmith1,ou=Users,dc=example,dc=org | ||
dn: uid=jsmith1,ou=Users,dc=example,dc=org | ||
cn: John Smith | ||
description: John Smith from Accounting. John is the projectmanager of theb | ||
uilding project, so contact him with any questions. | ||
givenname: John | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: top | ||
ou: testers | ||
sn: Smith | ||
uid: jsmith1 | ||
|
||
# Entry 9: uid=mjones1,ou=Users,dc=example,dc=org | ||
dn: uid=mjones1,ou=Users,dc=example,dc=org | ||
cn: Tom Jones | ||
description: Mark Jones from marketing. | ||
givenname: Mark | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: top | ||
sn: Jones | ||
uid: mjones1 | ||
|
||
# Entry 10: uid=ssmith1,ou=Users,dc=example,dc=org | ||
dn: uid=ssmith1,ou=Users,dc=example,dc=org | ||
cn: Steve Smith | ||
description: Steve Smith from Accounting. John is the projectmanager of the | ||
building project, so contact him with any questions. | ||
givenname: Steve | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: top | ||
sn: Smith | ||
uid: ssmith1 | ||
|
||
# Entry 11: uid=tjones1,ou=Users,dc=example,dc=org | ||
dn: uid=tjones1,ou=Users,dc=example,dc=org | ||
cn: Tom Jones | ||
description: Tom Jones from marketing. | ||
givenname: Tom | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: top | ||
sn: Jones | ||
uid: tjones1 |
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
Oops, something went wrong.