-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: using ubi7/nodejs-10 as default image (#372)
BREAKING CHANGE: Changing the base s2i images This removes the deprecated nodeshift/centos7-s2i-nodejs images and replaces then with the UBI based Node images from Red Hat Software Collections
- Loading branch information
1 parent
724695b
commit 0bc82bd
Showing
7 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const test = require('tape'); | ||
const BuildStrategy = require('../lib/definitions/build-strategy'); | ||
|
||
test('defaults to using the latest nodeshift s2i builder image', t => { | ||
test('defaults to using latest ubi7/nodejs-10 s2i builder image', t => { | ||
const buildStrategy = BuildStrategy(); | ||
t.equals(buildStrategy.sourceStrategy.from.name, 'nodeshift/centos7-s2i-nodejs:latest'); | ||
t.equals(buildStrategy.sourceStrategy.from.name, 'registry.access.redhat.com/ubi7/nodejs-10:latest'); | ||
t.end(); | ||
}); | ||
|
||
test('accepts a node version using imageTag option', t => { | ||
const buildStrategy = BuildStrategy({ imageTag: '8.x' }); | ||
t.equals(buildStrategy.sourceStrategy.from.name, 'nodeshift/centos7-s2i-nodejs:8.x'); | ||
const buildStrategy = BuildStrategy({ imageTag: '1-20' }); | ||
t.equals(buildStrategy.sourceStrategy.from.name, 'registry.access.redhat.com/ubi7/nodejs-10:1-20'); | ||
t.end(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters