Skip to content

Commit 0a08a32

Browse files
author
Mike Simpson
committed
Fixed bad query syntax and adjusted runtime script for new groups; advancing version number to 1.5.4.
1 parent 4d8db9b commit 0a08a32

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎DEPLOY.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,16 @@ In a terminal window on my local workstation:
118118
119119
$ git clone https://github.com/ualibraries/patron-groups.git ual-patron-groups
120120
$ cd ual-patron-groups
121-
$ git checkout v1.5.3
121+
$ git checkout v1.5.4
122122
123123
$ cd src/main/python
124124
$ sudo pip3 install --trusted-host pypi.python.org -r requirements.txt
125125
$ python3 setup.py sdist
126126
$ cd ../../..
127127
128128
$ cd src/main/docker
129-
$ cp ../python/dist/petal-1.5.3.tar.gz .
130-
$ docker build -t pgrps:1.5.3 .
129+
$ cp ../python/dist/petal-1.5.4.tar.gz .
130+
$ docker build -t pgrps:1.5.4 .
131131
$ cd ../../..
132132

133133
$ export LDAP_PASSWD=[ldap password]
@@ -136,4 +136,4 @@ In a terminal window on my local workstation:
136136
$ docker run -e "LDAP_PASSWD=${LDAP_PASSWD}" \
137137
-e "GROUPER_PASSWD=${GROUPER_PASSWD}" \
138138
-e "SLACK_WEBHOOK=${SLACK_WEBHOOK}" \
139-
--rm -d pgrps:1.5.3
139+
--rm -d pgrps:1.5.4

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ prerequisites, and then build a source distribution of the module:
9797
% python setup.py sdist
9898

9999
% ls dist
100-
petal-1.5.3.tar.gz
100+
petal-1.5.4.tar.gz
101101
102102
% cd ../../..
103103

@@ -107,12 +107,12 @@ Change to the Docker source directory, copy the distribution file over
107107
from the Python side, and build the Docker container image:
108108

109109
% cd src/main/docker
110-
% cp ../python/dist/petal-1.5.3.tar.gz .
111-
% docker build -t pgrps:1.5.3 .
110+
% cp ../python/dist/petal-1.5.4.tar.gz .
111+
% docker build -t pgrps:1.5.4 .
112112

113113
% docker images
114114
REPOSITORY TAG IMAGE ID CREATED SIZE
115-
pgrps 1.5.3 16cfafa9d0f1 12 seconds ago 80.1MB
115+
pgrps 1.5.4 16cfafa9d0f1 12 seconds ago 80.1MB
116116
117117
% cd ../../..
118118

@@ -138,7 +138,7 @@ hand, instantiate using an interactive shell:
138138
% docker run -e "LDAP_PASSWD=${LDAP_PASSWD}" \
139139
-e "GROUPER_PASSWD=${GROUPER_PASSWD}" \
140140
-e "SLACK_WEBHOOK=${SLACK_WEBHOOK}" \
141-
--rm -it pgrps:1.5.3 /bin/bash
141+
--rm -it pgrps:1.5.4 /bin/bash
142142

143143
# which petl
144144
/usr/bin/petl
@@ -161,7 +161,7 @@ in the background:
161161
% docker run -e "LDAP_PASSWD=${LDAP_PASSWD}" \
162162
-e "GROUPER_PASSWD=${GROUPER_PASSWD}" \
163163
-e "SLACK_WEBHOOK=${SLACK_WEBHOOK}" \
164-
--rm -d pgrps:1.5.3
164+
--rm -d pgrps:1.5.4
165165

166166
The log output from the "run_petl" invocation should once again wind
167167
up in the Slack channel associated with the "SLACK_WEBHOOK"

‎src/main/docker/Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV PACKAGES="dumb-init bash python3 python3-dev ca-certificates tzdata" \
55
GROUPER_PASSWD="***supply at runtime***" \
66
SLACK_WEBHOOK="***supply at runtime***"
77

8-
ADD petal-1.5.3.tar.gz /var/tmp
8+
ADD petal-1.5.4.tar.gz /var/tmp
99
ADD run_petl /etc/periodic/daily
1010

1111
RUN echo \
@@ -27,8 +27,8 @@ RUN echo \
2727
&& echo "US/Arizona" > /etc/timezone \
2828
#
2929
# install petal
30-
&& pip install --trusted-host pypi.python.org -r /var/tmp/petal-1.5.3/requirements.txt \
31-
&& pip install /var/tmp/petal-1.5.3
30+
&& pip install --trusted-host pypi.python.org -r /var/tmp/petal-1.5.4/requirements.txt \
31+
&& pip install /var/tmp/petal-1.5.4
3232

3333
ENTRYPOINT [ "/usr/bin/dumb-init", "--" ]
3434
CMD [ "/usr/sbin/crond", "-f" ]

‎src/main/docker/run_petl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
for g in faculty-base staff-base students-base dcc-base retirees-base hsl-base
3+
for g in faculty-base staff-base students-base ugrads-base grads-base dcc-base retirees-base hsl-base law-base
44
do
55
/usr/bin/petl --config /etc/petal/petl.ini \
66
--group ${g} \

‎src/main/python/config/petl.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ldap_query =
111111
(isMemberOf=arizona.edu:course:*:*:*:*:*:*:learner)
112112
(! (studentcpp=*:*:UGRD:*:*:*:*:*:*:*))
113113
)
114-
(
114+
(&
115115
(eduPersonAffiliation=student)
116116
(isMemberOf=arizona.edu:course:*:*:*:*:*:*:learner)
117117
(studenthonorsactive=y)

‎src/main/python/src/petal/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '1.5.3'
1+
__version__ = '1.5.4'
22

33
from .ldap_query import LDAPQuery
44
from .grouper_query import GrouperQuery

0 commit comments

Comments
 (0)