-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial auth key implementation (#57)
* Initial auth key implementation * Parametrized things a bit * Root is only really needed for nginx deployment * Update deployment scripts to deploy various configuration files, do so on service updates, and to easier make local/dev deployments. * Moved some things out of the service and into config and secrets files. * Fixed sample sdk url * TARGET_VERSION is only valid after the command line is processed * Added bcrypt as dependency * ... and requests * Overwrite files on deployment (we may be dealing with installation defaults), but back them up * Use the upgrade script to do post-deploy updates, since that process got a bit more complex. * Docker COPY does not work the way you think it does! * Make sure secrets are copied on deployment * Allow a fallback admin email to be specified in the config file. * Copy all possibly customized files on deployment * Added reCaptchaSiteKey in sdk customization * Apparently there's a PEP for versioning and "-testingX" is not approved * Also deploy customization files * Allow frames from google to make recaptcha work * Updated deployment readme * pip seems to behave differently on different machines. Sometimes it installs all files in the source, sometimes it doesn't. Make sure we always specify email templates as data files. * Update deployment customization files. There's a bit of confusion with these since, initially, they were meant to be mapped using nginx configuration, but ended up in the source tree. TBD * Move things to docker/fs rather than copying individual files manually * Make sure error messages are logged immediately. * Add hostname parameter to container * Fixed copy commands * Postfix work... * Some upgrade fixes * OOMs can happen if we don't let started services settle a bit * May need a relay, such as AWS SES * Moved customized jss * We don't really access the sites collection when checking the new key, and it wasn't that necessary before either, so remove it.
- Loading branch information
Showing
44 changed files
with
1,511 additions
and
190 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.3 | ||
0.4.0 |
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
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,23 +1,27 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG SERVICE_VERSION | ||
ARG GIT_BASE=https://github.com/ExaWorks/psij-testing-service/archive/refs/tags | ||
ARG SERVICE_PACKAGE | ||
|
||
RUN useradd -ms /bin/bash testsrv | ||
|
||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
|
||
RUN DEBIAN_FRONTEND="noninteractive" TZ="UTC" apt-get install -y python3.9 python3-pip mongodb wget mc | ||
RUN DEBIAN_FRONTEND="noninteractive" TZ="UTC" apt-get install -y python3.9 python3-pip mongodb \ | ||
wget mc postfix procmail syslog-ng | ||
|
||
WORKDIR ~/ | ||
|
||
RUN pip install $GIT_BASE/v$SERVICE_VERSION.tar.gz | ||
# needed to get syslog-ng to work inside the container | ||
RUN sed -i 's/system()/system(exclude-kmsg(yes))/g' /etc/syslog-ng/syslog-ng.conf | ||
|
||
COPY psi-j-testing-service /etc/init.d | ||
COPY entrypoint.sh / | ||
COPY update-psi-j-testing-service /usr/bin | ||
|
||
COPY $SERVICE_PACKAGE /tmp | ||
RUN pip install /tmp/$SERVICE_PACKAGE | ||
RUN rm /tmp/$SERVICE_PACKAGE | ||
|
||
COPY fs / | ||
RUN mkdir /var/log/psi-j-testing-service | ||
RUN chown testsrv:testsrv /var/log/psi-j-testing-service | ||
|
||
CMD /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
4 changes: 4 additions & 0 deletions
4
deployment/docker/entrypoint.sh → deployment/docker/fs/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
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
Empty file.
Oops, something went wrong.