Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy CM 4.2.0 to OEB Production #1938

Merged
merged 37 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c3b9a0a
Bump node to 20.x
keithbauer Jul 11, 2024
bb1833d
Pin tox-docker
keithbauer Jul 11, 2024
fdb8c3b
pin docker?
keithbauer Jul 11, 2024
011d3fe
bump requests
keithbauer Jul 11, 2024
5805f76
Try an older version of docker?
keithbauer Jul 11, 2024
10306de
pin tox and tox-gh-actions
keithbauer Jul 11, 2024
eccdecf
bump docker?
keithbauer Jul 11, 2024
cf5171c
install reqs?
keithbauer Jul 11, 2024
e1a731c
bump docker in reqs
keithbauer Jul 11, 2024
b780d31
bump chardet for tox
keithbauer Jul 11, 2024
1bd247a
bump packaging for tox
keithbauer Jul 11, 2024
f94aa00
different pins?
keithbauer Jul 11, 2024
d83b8c4
match docker version in actions
keithbauer Jul 11, 2024
e38795e
Remove comment about libxmlsec1
keithbauer Jul 15, 2024
834fd37
bump simplified-circulation-web to rc
keithbauer Jul 15, 2024
551ecff
testing new rc version of circulation-web
EdwinGuzman Jul 15, 2024
72bf3ee
Remove BPL
keithbauer Jul 16, 2024
4e06d5f
bump simplified-circulation-web to rc3
keithbauer Jul 17, 2024
b6f9291
Set simplified-circulation-web to 0.6.0
keithbauer Jul 17, 2024
6a01164
Merge pull request #1931 from NYPL-Simplified/TGR-16-docker-node-update
keithbauer Jul 17, 2024
dd7bf9c
Fix arm64 elasticsearch builds
keithbauer Jul 18, 2024
d7ea38a
bump reqs
keithbauer Jul 18, 2024
0637b05
Fix babel
keithbauer Jul 18, 2024
18d08a2
Update FLASK_ENV to FLASK_DEBUG
keithbauer Jul 18, 2024
40e59c1
Pull in flask_sqlalchemy_session
keithbauer Jul 18, 2024
cc21c4d
Flip FLASK_DEBUG flag for cm_exec
keithbauer Jul 18, 2024
353d5fa
Fix basic auth temp tokens
keithbauer Jul 18, 2024
b0d5e66
Fix more auth headers
keithbauer Jul 18, 2024
413c20e
Fix next_link in test
keithbauer Jul 18, 2024
4007bd1
Fix urls?
keithbauer Jul 18, 2024
b41d937
Fix SAML tests
keithbauer Jul 22, 2024
ee17b76
Merge pull request #1933 from NYPL-Simplified/TGR-35-circulation-mana…
keithbauer Jul 22, 2024
9064c5f
Fix docs
keithbauer Jul 22, 2024
97065cb
Bump certifi
keithbauer Jul 22, 2024
440c302
Merge pull request #1932 from NYPL-Simplified/develop
keithbauer Jul 23, 2024
e04a676
Authorization header fixes
keithbauer Jul 29, 2024
dde7385
Merge pull request #1934 from NYPL-Simplified/develop
keithbauer Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .github/workflows/publishQA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
project: [BPL, OE, SE]
project: [OE, SE]
stage: [cm_scripts_active, cm_webapp_active]
include:
- project: BPL
ECR_REPOSITORY: BPL_ECR_REPOSITORY
AWS_ACCESS_KEY_ID: SE_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: SE_AWS_SECRET_ACCESS_KEY
- project: OE
ECR_REPOSITORY: OE_ECR_REPOSITORY
AWS_ACCESS_KEY_ID: OE_AWS_ACCESS_KEY_ID
Expand All @@ -31,12 +27,6 @@ jobs:
container_tag: qa-cron-latest
- stage: cm_webapp_active
container_tag: qa-latest
- project: BPL
stage: cm_scripts_active
cluster_service: BPL_SCRIPTS_CLUSTER_SERVICE
- project: BPL
stage: cm_webapp_active
cluster_service: BPL_WEBAPP_CLUSTER_SERVICE
- project: OE
stage: cm_scripts_active
cluster_service: OE_SCRIPTS_CLUSTER_SERVICE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install tox tox-gh-actions tox-docker
pip install tox tox-gh-actions tox-docker==4.1.0 docker==6.1.3 -r requirements-dev.txt

- name: Run Tests
run: |
Expand Down
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ COPY ./docker/localdev_postgres_init.sh /docker-entrypoint-initdb.d/localdev_pos
#
# * We create a user, 'simplified', to be the non-root user we step down to
#
# * We install NodeJS from the Nodesource packages, which lets us use Node 10,
# and avoids dependency conflicts between node and libxmlsec1 over the SSL
# library version that we'll get via system packages.
# * We install NodeJS from the Nodesource packages.
#
###############################################################################

Expand All @@ -75,8 +73,8 @@ RUN apt-get update \
ca-certificates \
gnupg \
&& curl -sSL ${NODESOURCE_KEYFILE} | apt-key add - \
&& echo "deb https://deb.nodesource.com/node_14.x focal main" >> /etc/apt/sources.list.d/nodesource.list \
&& echo "deb-src https://deb.nodesource.com/node_14.x focal main" >> /etc/apt/sources.list.d/nodesource.list \
&& echo "deb https://deb.nodesource.com/node_20.x jammy main" >> /etc/apt/sources.list.d/nodesource.list \
&& echo "deb-src https://deb.nodesource.com/node_20.x jammy main" >> /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install --yes --no-install-recommends \
build-essential \
Expand Down Expand Up @@ -223,14 +221,14 @@ CMD ["webapp"]
###############################################################################

FROM cm_webapp_base AS cm_webapp_local
ENV FLASK_ENV development
ENV FLASK_DEBUG 1

###############################################################################
## cm_webapp_active - self-contained version of webapp, for remote deploy
###############################################################################

FROM cm_webapp_base AS cm_webapp_active
ENV FLASK_ENV production
ENV FLASK_DEBUG 0

COPY --chown=simplified:simplified . /home/simplified/circulation/

Expand Down Expand Up @@ -265,14 +263,14 @@ CMD ["scripts", "|& tee -a /var/log/cron.log 2>$1"]
###############################################################################

FROM cm_scripts_base AS cm_scripts_local
ENV FLASK_ENV development
ENV FLASK_DEBUG 1

###############################################################################
## cm_scripts_active - self-contained version of scripts, for remote deploy
###############################################################################

FROM cm_scripts_base AS cm_scripts_active
ENV FLASK_ENV production
ENV FLASK_DEBUG 0

COPY --chown=simplified:simplified . /home/simplified/circulation/

Expand All @@ -288,13 +286,13 @@ CMD ["exec"]
###############################################################################

FROM cm_exec_base AS cm_exec_local
ENV FLASK_ENV development
ENV FLASK_DEBUG 1

###############################################################################
## cm_exec_active - self-contained version of exec, for remote deploy
###############################################################################

FROM cm_exec_base AS cm_exec_active
ENV FLASK_ENV production
ENV FLASK_DEBUG 0

COPY --chown=simplified:simplified . /home/simplified/circulation/
14 changes: 7 additions & 7 deletions api/admin/controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,16 +351,16 @@ def __call__(self, collection, book, path=None):
redirect_url = flask.request.url

if (collection):
quoted_collection = urllib.parse.quote(collection)
redirect_url = redirect_url.replace(
quoted_collection,
quoted_collection.replace("/", "%2F"))
collection,
urllib.parse.quote_plus(collection)
)

if (book):
quoted_book = urllib.parse.quote(book)
if (book):
redirect_url = redirect_url.replace(
quoted_book,
quoted_book.replace("/", "%2F"))
book,
urllib.parse.quote_plus(book)
)

return redirect(self.url_for('admin_sign_in', redirect=redirect_url))

Expand Down
Loading
Loading