Skip to content

Commit

Permalink
Merge pull request #158 from silinternational/release/5.0.0
Browse files Browse the repository at this point in the history
Release 5.0.0 - Externally scheduled sync
  • Loading branch information
briskt authored Nov 20, 2023
2 parents 313313c + d5477d9 commit 177509d
Show file tree
Hide file tree
Showing 29 changed files with 439 additions and 998 deletions.
22 changes: 0 additions & 22 deletions .scrutinizer.yml

This file was deleted.

26 changes: 2 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
FROM silintl/php8:8.1
LABEL maintainer="[email protected]"

ENV REFRESHED_AT 2020-06-10

# Install cron
RUN apt-get update \
&& apt-get install -y \
cron \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV REFRESHED_AT 2023-11-09

RUN mkdir -p /data

# Copy in cron configuration
COPY dockerbuild/idsync-cron /etc/cron.d/idsync-cron
RUN chmod 0644 /etc/cron.d/idsync-cron

# get s3-expand
RUN curl https://raw.githubusercontent.com/silinternational/s3-expand/1.5/s3-expand -o /usr/local/bin/s3-expand
RUN chmod a+x /usr/local/bin/s3-expand

WORKDIR /data

# Install/cleanup composer dependencies
Expand All @@ -34,11 +19,4 @@ COPY application/ /data/
RUN chown -R www-data:www-data \
console/runtime/

COPY dockerbuild/vhost.conf /etc/apache2/sites-enabled/

# ErrorLog inside a VirtualHost block is ineffective for unknown reasons
RUN sed -i -E 's@ErrorLog .*@ErrorLog /proc/self/fd/2@i' /etc/apache2/apache2.conf

EXPOSE 80
ENTRYPOINT ["/usr/local/bin/s3-expand"]
CMD ["/data/run.sh"]
CMD ["/data/yii", "batch/full"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 SIL International
Copyright (c) 2017-2023 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
start: broker app
sync_full: broker deps
docker-compose run --rm app

app: deps
docker-compose up -d app
sync_incremental: broker deps
docker-compose run --rm app bash -c "/data/yii batch/incremental"

bash:
docker-compose run --rm cli bash
Expand Down Expand Up @@ -46,10 +47,10 @@ psr2:

# NOTE: When running tests locally, make sure you don't exclude the integration
# tests (which we do when testing on Codeship).
test: deps unittest app broker
test: deps unittest broker
sleep 15 && make behat

testci: deps app broker
testci: deps broker
docker-compose run --rm cli bash -c "./run-tests.sh"

unittest:
Expand Down
101 changes: 0 additions & 101 deletions Vagrantfile

This file was deleted.

53 changes: 0 additions & 53 deletions application/common/components/ApiConsumer.php

This file was deleted.

1 change: 0 additions & 1 deletion application/common/config/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

Yii::setAlias('common', dirname(__DIR__));
Yii::setAlias('frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console');
Yii::setAlias('@tests', dirname(dirname(__DIR__)) . '/tests');
2 changes: 1 addition & 1 deletion application/common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
'clientOptions' => [
'attach_stacktrace' => false, // stack trace identifies the logger call stack, not helpful
'environment' => YII_ENV,
'release' => 'idp-id-sync@4.5.0',
'release' => 'idp-id-sync@5.0.0',
'before_send' => function (Event $event) use ($idpName): ?Event {
$event->setExtra(['idp' => $idpName]);
return $event;
Expand Down
Loading

0 comments on commit 177509d

Please sign in to comment.