Skip to content

Commit 33ca931

Browse files
authored
Merge pull request #3 from starichkov/fix-ci
Bump CouchDB to 3.5.1 and MongoDB to 7.0.28 in Dockerfiles, tests, and documentation for enhanced compatibility and security.
2 parents d994d28 + 5913694 commit 33ca931

6 files changed

Lines changed: 23 additions & 23 deletions

File tree

.junie/guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Key characteristics:
2727
## Prerequisites
2828
- Node.js: 22.x (as enforced by package.json engines)
2929
- npm: 10+
30-
- One database backend available locally (CouchDB ≥3.4.3 or MongoDB ≥7.0), or use Docker Compose
30+
- One database backend available locally (CouchDB ≥3.5.1 or MongoDB ≥7.0.28), or use Docker Compose
3131

3232
## Local Development
3333
1) Clone and install

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ These are the versions this sample app is coming with:
4343
- Node.js (v22 or higher)
4444
- npm or pnpm
4545
- One of the following databases:
46-
- CouchDB (v3.4.3 or higher)
47-
- MongoDB (v7.0 or higher)
46+
- CouchDB (v3.5.1 or higher)
47+
- MongoDB (v7.0.28 or higher)
4848

4949
Stable work on lower versions is not guaranteed.
5050

__tests__/db/couchdb-note-repository.integration.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('CouchDbNoteRepository Integration Tests', () => {
1010
beforeAll(async () => {
1111
console.log('Starting CouchDB container...');
1212
// Start CouchDB container
13-
container = await new GenericContainer('couchdb:3.4.3')
13+
container = await new GenericContainer('couchdb:3.5.1')
1414
.withExposedPorts(5984)
1515
.withEnvironment({
1616
COUCHDB_USER: 'admin',

__tests__/db/mongodb-note-repository.integration.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('MongoDbNoteRepository Integration Tests', () => {
1111
beforeAll(async () => {
1212
console.log('Starting MongoDB container...');
1313
// Start MongoDB container
14-
container = await new GenericContainer('mongo:7.0.25-jammy')
14+
container = await new GenericContainer('mongo:7.0.28-jammy')
1515
.withExposedPorts(27017)
1616
.withEnvironment({
1717
MONGO_INITDB_ROOT_USERNAME: 'admin',

couchdb.Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Build stage for applying security updates
2-
FROM couchdb:3.4.3 AS build
2+
FROM couchdb:3.5.1 AS build
33

44
# Update and install security patches
5-
# Use apt-get instead of apt for better script compatibility
65
# Clean up apt cache to reduce image size
7-
RUN apt-get update && \
8-
apt-get upgrade -y && \
9-
apt-get dist-upgrade -y && \
10-
apt-get autoremove -y && \
11-
apt-get clean && \
6+
RUN apt update && \
7+
apt-mark hold couchdb && \
8+
DEBIAN_FRONTEND=noninteractive apt upgrade -y -o Dpkg::Options::="--force-confold" && \
9+
DEBIAN_FRONTEND=noninteractive apt full-upgrade -y -o Dpkg::Options::="--force-confold" && \
10+
apt autoremove -y && \
11+
apt clean && \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
# Production stage
1515
FROM build AS production
1616

1717
# Add Dockerfile Labels
1818
LABEL title="CouchDB with Security Updates"
19-
LABEL description="CouchDB based on official couchdb:3.4.3 image with all security patches applied"
20-
LABEL version="3.4.3"
19+
LABEL description="CouchDB based on official couchdb:3.5.1 image with all security patches applied"
20+
LABEL version="3.5.1"
2121
LABEL maintainer="Vadim Starichkov <starichkovva@gmail.com>"
2222
LABEL license="MIT"
2323
LABEL source="https://github.com/starichkov/nodejs-simple-notes-app.git"

mongodb.Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Build stage for applying security updates
2-
FROM mongo:7.0.25-jammy AS build
2+
FROM mongo:7.0.28-jammy AS build
33

44
# Update and install security patches
5-
# Use apt-get instead of apt for better script compatibility
65
# Clean up apt cache to reduce image size
7-
RUN apt-get update && \
8-
apt-get upgrade -y && \
9-
apt-get dist-upgrade -y && \
10-
apt-get autoremove -y && \
11-
apt-get clean && \
6+
RUN apt update && \
7+
apt-mark hold mongodb-org* && \
8+
DEBIAN_FRONTEND=noninteractive apt upgrade -y -o Dpkg::Options::="--force-confold" && \
9+
DEBIAN_FRONTEND=noninteractive apt full-upgrade -y -o Dpkg::Options::="--force-confold" && \
10+
apt autoremove -y && \
11+
apt clean && \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
# Production stage
1515
FROM build AS production
1616

1717
# Add Dockerfile Labels
1818
LABEL title="MongoDB with Security Updates"
19-
LABEL description="MongoDB based on official mongo:7.0.25-jammy image with all security patches applied"
20-
LABEL version="7.0.25"
19+
LABEL description="MongoDB based on official mongo:7.0.28-jammy image with all security patches applied"
20+
LABEL version="7.0.28"
2121
LABEL maintainer="Vadim Starichkov <starichkovva@gmail.com>"
2222
LABEL license="MIT"
2323
LABEL source="https://github.com/starichkov/nodejs-simple-notes-app.git"

0 commit comments

Comments
 (0)