Skip to content

Commit 58e5a80

Browse files
authored
Revert "fix(PTL-13417): bump spring boot to 3.1.4 for java 21" (#414)
1 parent 7820035 commit 58e5a80

File tree

296 files changed

+55018
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+55018
-137
lines changed

app-config/app.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var express = require('express');
2+
var fs = require('fs')
3+
app = express();
4+
5+
// read in the APP_MSG env var
6+
var msg = process.env.APP_MSG;
7+
8+
var response;
9+
10+
app.get('/', function (req, res) {
11+
12+
response = 'Value in the APP_MSG env var is => ' + msg + '\n';
13+
14+
// Read in the secret file
15+
fs.readFile('/opt/app-root/secure/myapp.sec', 'utf8', function (secerr,secdata) {
16+
if (secerr) {
17+
console.log(secerr + '\n');
18+
response += secerr + '\n';
19+
}
20+
else {
21+
response += 'The secret is => ' + secdata + '\n';
22+
}
23+
24+
//send the response to the client
25+
res.send(response);
26+
});
27+
28+
});
29+
30+
app.listen(8080, function () {
31+
console.log('Server listening on port 8080...');
32+
});

app-config/myapp.sec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
username=user1
2+
password=pass1
3+
salt=xyz123

app-config/package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "node-configmap",
3+
"version": "1.0.0",
4+
"description": "A simple Node.js app to demonstrate config maps and secrets",
5+
"main": "app.js",
6+
"scripts": {
7+
"start": "node app.js"
8+
},
9+
"author": "Red Hat Training",
10+
"license": "ASL",
11+
"dependencies": {
12+
"express": "4.14.x"
13+
}
14+
}

apps/compreview-cicd/words/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const api = Fastify({ logger: true });
88
api.get("/word/:input", function handler(request, reply) {
99
const { input } = request.params;
1010

11-
const palindrome = isPalindrome(input);
11+
const palidrome = isPalindrome(input);
1212

1313
reply.send({
1414
input,
15-
palindrome,
15+
palidrome,
1616
length: input.length
1717
});
1818
});

apps/multicontainer-review/famous-quotes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.1.4</version>
8+
<version>3.1.2</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>ptl.redhat.com</groupId>

books/.eslintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"extends": "airbnb-base",
3+
"parserOptions": {
4+
"sourceType": "script",
5+
},
6+
"rules": {
7+
"strict": 0,
8+
"no-param-reassign": [
9+
"error",
10+
{ "props": false }
11+
],
12+
"func-names": 0,
13+
"comma-dangle": 0,
14+
"prefer-template": 0,
15+
"camelcase": 0,
16+
"no-underscore-dangle": 0,
17+
"consistent-return": 0,
18+
"no-bitwise": ["error", { "allow": ["~"] }]
19+
},
20+
"globals": {
21+
"describe": true,
22+
"it": true,
23+
"after": true,
24+
"afterEach": true,
25+
"before": true,
26+
"beforeEach": true,
27+
"should": true,
28+
"reqServer": true
29+
},
30+
"env": {
31+
"node": true,
32+
"mocha": true
33+
}
34+
}

books/.gitignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# General
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
6+
# Icon must end with two \r
7+
Icon
8+
9+
# Thumbnails
10+
._*
11+
12+
# Files that might appear in the root of a volume
13+
.DocumentRevisions-V100
14+
.fseventsd
15+
.Spotlight-V100
16+
.TemporaryItems
17+
.Trashes
18+
.VolumeIcon.icns
19+
.com.apple.timemachine.donotpresent
20+
21+
# Directories potentially created on remote AFP share
22+
.AppleDB
23+
.AppleDesktop
24+
Network Trash Folder
25+
Temporary Items
26+
.apdisk
27+
28+
# Logs
29+
logs
30+
*.log
31+
npm-debug.log*
32+
yarn-debug.log*
33+
yarn-error.log*
34+
lerna-debug.log*
35+
36+
# Diagnostic reports (https://nodejs.org/api/report.html)
37+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
38+
39+
# Runtime data
40+
pids
41+
*.pid
42+
*.seed
43+
*.pid.lock
44+
45+
# Directory for instrumented libs generated by jscoverage/JSCover
46+
lib-cov
47+
48+
# Coverage directory used by tools like istanbul
49+
coverage
50+
*.lcov
51+
52+
# nyc test coverage
53+
.nyc_output
54+
55+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
56+
.grunt
57+
58+
# Bower dependency directory (https://bower.io/)
59+
bower_components
60+
61+
# node-waf configuration
62+
.lock-wscript
63+
64+
# Compiled binary addons (https://nodejs.org/api/addons.html)
65+
build/Release
66+
67+
# Dependency directories
68+
node_modules/
69+
jspm_packages/
70+
71+
# TypeScript v1 declaration files
72+
typings/
73+
74+
# TypeScript cache
75+
*.tsbuildinfo
76+
77+
# Optional npm cache directory
78+
.npm
79+
80+
# Optional eslint cache
81+
.eslintcache
82+
83+
# Optional REPL history
84+
.node_repl_history
85+
86+
# Output of 'npm pack'
87+
*.tgz
88+
89+
# Yarn Integrity file
90+
.yarn-integrity
91+
92+
# dotenv environment variables file
93+
.env
94+
.env.test
95+
96+
# parcel-bundler cache (https://parceljs.org/)
97+
.cache
98+
99+
# next.js build output
100+
.next
101+
102+
# nuxt.js build output
103+
.nuxt
104+
105+
# vuepress build output
106+
.vuepress/dist
107+
108+
# Serverless directories
109+
.serverless/
110+
111+
# FuseBox cache
112+
.fusebox/
113+
114+
# DynamoDB Local files
115+
.dynamodb/

books/data/authors.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const authors = [
2+
{
3+
id: 1,
4+
name: 'James Joyce',
5+
dob: 1882
6+
},
7+
{
8+
id: 2,
9+
name: 'F Scott Fitzgerald',
10+
dob: 1896
11+
},
12+
{
13+
id: 3,
14+
name: 'Aldous Huxley',
15+
dob: 1894
16+
},
17+
{
18+
id: 4,
19+
name: 'Vladimir Nabokov',
20+
dob: 1899
21+
},
22+
{
23+
id: 5,
24+
name: 'William Faulkner',
25+
dob: 1897
26+
}
27+
];
28+
29+
module.exports.books = authors;

books/data/books.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
const books = [
2+
{
3+
ranking: 1,
4+
name: 'ULYSSES',
5+
Author: 'James Joyce',
6+
country: 'Ireland',
7+
yearPublished: '1922'
8+
},
9+
{
10+
ranking: 2,
11+
name: 'THE GREAT GATSBY',
12+
Author: 'F. Scott Fitzgerald',
13+
country: 'USA',
14+
yearPublished: '1925'
15+
},
16+
{
17+
ranking: 3,
18+
name: 'A PORTRAIT OF THE ARTIST AS A YOUNG MAN',
19+
Author: 'James Joyce',
20+
country: 'Ireland',
21+
yearPublished: '1916'
22+
},
23+
{
24+
ranking: 4,
25+
name: 'BRAVE NEW WORLD',
26+
Author: 'Aldous Huxley',
27+
country: 'UK',
28+
yearPublished: '1932'
29+
},
30+
{
31+
ranking: 5,
32+
name: 'THE SOUND AND THE FURY',
33+
Author: 'William Faulkner',
34+
country: 'USA',
35+
yearPublished: '1929'
36+
}
37+
];
38+
39+
module.exports.books = books;

books/exec/www

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* Module dependencies.
5+
*/
6+
7+
var app = require('../server');
8+
var debug = require('debug')('movies:server');
9+
var http = require('http');
10+
11+
/**
12+
* Get port from environment and store in Express.
13+
*/
14+
15+
var port = normalizePort(process.env.PORT || '8080');
16+
app.set('port', port);
17+
18+
/**
19+
* Create HTTP server.
20+
*/
21+
22+
var server = http.createServer(app);
23+
24+
/**
25+
* Listen on provided port, on all network interfaces.
26+
*/
27+
28+
server.listen(port);
29+
server.on('error', onError);
30+
server.on('listening', onListening);
31+
32+
/**
33+
* Normalize a port into a number, string, or false.
34+
*/
35+
36+
function normalizePort(val) {
37+
var port = parseInt(val, 10);
38+
39+
if (isNaN(port)) {
40+
// named pipe
41+
return val;
42+
}
43+
44+
if (port >= 0) {
45+
// port number
46+
return port;
47+
}
48+
49+
return false;
50+
}
51+
52+
/**
53+
* Event listener for HTTP server "error" event.
54+
*/
55+
56+
function onError(error) {
57+
if (error.syscall !== 'listen') {
58+
throw error;
59+
}
60+
61+
var bind = typeof port === 'string'
62+
? 'Pipe ' + port
63+
: 'Port ' + port;
64+
65+
// handle specific listen errors with friendly messages
66+
switch (error.code) {
67+
case 'EACCES':
68+
console.error(bind + ' requires elevated privileges');
69+
process.exit(1);
70+
break;
71+
case 'EADDRINUSE':
72+
console.error(bind + ' is already in use');
73+
process.exit(1);
74+
break;
75+
default:
76+
throw error;
77+
}
78+
}
79+
80+
/**
81+
* Event listener for HTTP server "listening" event.
82+
*/
83+
84+
function onListening() {
85+
var addr = server.address();
86+
var bind = typeof addr === 'string'
87+
? 'pipe ' + addr
88+
: 'port ' + addr.port;
89+
debug('Listening on ' + bind);
90+
}

0 commit comments

Comments
 (0)