2016-06-04 21:20:39 +00:00
|
|
|
"use strict";
|
2017-03-11 00:10:37 +00:00
|
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
});
|
|
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2017-05-18 20:40:09 +00:00
|
|
|
const plugins = require("./mod.plugins");
|
|
|
|
const paths = require("../npmci.paths");
|
|
|
|
const NpmciEnv = require("../npmci.env");
|
|
|
|
const npmci_bash_1 = require("../npmci.bash");
|
2017-07-27 11:15:39 +00:00
|
|
|
let modArgvArg; // will be set through the build command
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* builds a cwd of Dockerfiles by triggering a promisechain
|
|
|
|
*/
|
2017-07-27 11:15:39 +00:00
|
|
|
exports.build = (argvArg) => __awaiter(this, void 0, void 0, function* () {
|
|
|
|
modArgvArg = argvArg;
|
2017-05-15 13:36:09 +00:00
|
|
|
plugins.beautylog.log('now building Dockerfiles...');
|
2017-03-11 00:10:37 +00:00
|
|
|
yield exports.readDockerfiles()
|
2016-06-05 12:27:56 +00:00
|
|
|
.then(exports.sortDockerfiles)
|
|
|
|
.then(exports.mapDockerfiles)
|
2016-06-05 14:43:27 +00:00
|
|
|
.then(exports.buildDockerfiles)
|
2017-03-11 00:10:37 +00:00
|
|
|
.then(exports.pushDockerfiles);
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* creates instance of class Dockerfile for all Dockerfiles in cwd
|
|
|
|
* @returns Promise<Dockerfile[]>
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.readDockerfiles = () => __awaiter(this, void 0, void 0, function* () {
|
2017-05-15 13:36:09 +00:00
|
|
|
let fileTree = yield plugins.smartfile.fs.listFileTree(paths.cwd, 'Dockerfile*');
|
2017-03-11 00:10:37 +00:00
|
|
|
// create the Dockerfile array
|
2016-07-18 14:56:53 +00:00
|
|
|
let readDockerfilesArray = [];
|
2017-05-15 13:36:09 +00:00
|
|
|
plugins.beautylog.info(`found ${fileTree.length} Dockerfiles:`);
|
|
|
|
console.log(fileTree);
|
2017-03-11 00:10:37 +00:00
|
|
|
for (let dockerfilePath of fileTree) {
|
2016-07-18 14:56:53 +00:00
|
|
|
let myDockerfile = new Dockerfile({
|
2017-05-15 14:35:16 +00:00
|
|
|
filePath: dockerfilePath,
|
2016-06-05 02:48:39 +00:00
|
|
|
read: true
|
2016-06-05 03:16:14 +00:00
|
|
|
});
|
2016-06-05 11:01:45 +00:00
|
|
|
readDockerfilesArray.push(myDockerfile);
|
2017-03-11 00:10:37 +00:00
|
|
|
}
|
|
|
|
return readDockerfilesArray;
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* sorts Dockerfiles into a dependency chain
|
|
|
|
* @param sortableArrayArg an array of instances of class Dockerfile
|
|
|
|
* @returns Promise<Dockerfile[]>
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.sortDockerfiles = (sortableArrayArg) => {
|
2016-07-18 14:56:53 +00:00
|
|
|
let done = plugins.q.defer();
|
2017-05-15 16:10:24 +00:00
|
|
|
plugins.beautylog.info('sorting Dockerfiles:');
|
2016-07-18 14:56:53 +00:00
|
|
|
let sortedArray = [];
|
|
|
|
let cleanTagsOriginal = exports.cleanTagsArrayFunction(sortableArrayArg, sortedArray);
|
|
|
|
let sorterFunctionCounter = 0;
|
|
|
|
let sorterFunction = function () {
|
|
|
|
sortableArrayArg.forEach((dockerfileArg) => {
|
|
|
|
let cleanTags = exports.cleanTagsArrayFunction(sortableArrayArg, sortedArray);
|
2016-11-24 22:21:40 +00:00
|
|
|
if (cleanTags.indexOf(dockerfileArg.baseImage) === -1 && sortedArray.indexOf(dockerfileArg) === -1) {
|
2016-06-05 09:08:20 +00:00
|
|
|
sortedArray.push(dockerfileArg);
|
|
|
|
}
|
2016-11-24 22:21:40 +00:00
|
|
|
if (cleanTagsOriginal.indexOf(dockerfileArg.baseImage) !== -1) {
|
2016-06-05 12:27:56 +00:00
|
|
|
dockerfileArg.localBaseImageDependent = true;
|
|
|
|
}
|
2016-06-05 04:20:05 +00:00
|
|
|
});
|
2016-11-24 22:21:40 +00:00
|
|
|
if (sortableArrayArg.length === sortedArray.length) {
|
2017-05-15 16:10:24 +00:00
|
|
|
let counter = 1;
|
|
|
|
for (let dockerfile of sortedArray) {
|
|
|
|
plugins.beautylog.log(`tag ${counter}: -> ${dockerfile.cleanTag}`);
|
|
|
|
counter++;
|
|
|
|
}
|
2016-06-05 11:01:45 +00:00
|
|
|
done.resolve(sortedArray);
|
2016-06-05 04:20:05 +00:00
|
|
|
}
|
2016-06-05 11:50:45 +00:00
|
|
|
else if (sorterFunctionCounter < 10) {
|
2016-06-05 09:08:20 +00:00
|
|
|
sorterFunctionCounter++;
|
|
|
|
sorterFunction();
|
2016-06-05 04:20:05 +00:00
|
|
|
}
|
2016-06-05 09:08:20 +00:00
|
|
|
};
|
|
|
|
sorterFunction();
|
2016-06-05 04:20:05 +00:00
|
|
|
return done.promise;
|
|
|
|
};
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* maps local Dockerfiles dependencies to the correspoding Dockerfile class instances
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.mapDockerfiles = (sortedArray) => __awaiter(this, void 0, void 0, function* () {
|
2016-07-18 14:56:53 +00:00
|
|
|
sortedArray.forEach((dockerfileArg) => {
|
2016-06-05 12:27:56 +00:00
|
|
|
if (dockerfileArg.localBaseImageDependent) {
|
2016-07-18 14:56:53 +00:00
|
|
|
sortedArray.forEach((dockfile2) => {
|
2016-11-24 22:21:40 +00:00
|
|
|
if (dockfile2.cleanTag === dockerfileArg.baseImage) {
|
2016-06-05 12:27:56 +00:00
|
|
|
dockerfileArg.localBaseDockerfile = dockfile2;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
;
|
|
|
|
});
|
2017-03-11 00:10:37 +00:00
|
|
|
return sortedArray;
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* builds the correspoding real docker image for each Dockerfile class instance
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.buildDockerfiles = (sortedArrayArg) => __awaiter(this, void 0, void 0, function* () {
|
2017-03-11 01:27:48 +00:00
|
|
|
for (let dockerfileArg of sortedArrayArg) {
|
|
|
|
yield dockerfileArg.build();
|
|
|
|
}
|
2017-03-11 00:10:37 +00:00
|
|
|
return sortedArrayArg;
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* pushes the real Dockerfile images to a Docker registry
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.pushDockerfiles = (sortedArrayArg) => __awaiter(this, void 0, void 0, function* () {
|
2017-07-27 11:15:39 +00:00
|
|
|
let stageArg = (function () {
|
|
|
|
if (modArgvArg._ && modArgvArg._.length >= 3) {
|
|
|
|
return modArgvArg._[2];
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
return NpmciEnv.buildStage;
|
|
|
|
}
|
|
|
|
})();
|
2017-03-11 01:27:48 +00:00
|
|
|
for (let dockerfileArg of sortedArrayArg) {
|
2017-07-27 11:15:39 +00:00
|
|
|
yield dockerfileArg.push(stageArg);
|
2017-03-11 01:27:48 +00:00
|
|
|
}
|
2017-03-11 00:10:37 +00:00
|
|
|
return sortedArrayArg;
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* pulls corresponding real Docker images for instances of Dockerfile from a registry.
|
|
|
|
* This is needed if building, testing, and publishing of Docker images is carried out in seperate CI stages.
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.pullDockerfileImages = (sortableArrayArg, registryArg = 'registry.gitlab.com') => __awaiter(this, void 0, void 0, function* () {
|
2017-03-11 01:27:48 +00:00
|
|
|
for (let dockerfileArg of sortableArrayArg) {
|
2017-03-11 00:10:37 +00:00
|
|
|
yield dockerfileArg.pull(registryArg);
|
2017-03-11 01:27:48 +00:00
|
|
|
}
|
2017-03-11 00:10:37 +00:00
|
|
|
return sortableArrayArg;
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* tests all Dockerfiles in by calling class Dockerfile.test();
|
|
|
|
* @param sortedArrayArg Dockerfile[] that contains all Dockerfiles in cwd
|
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.testDockerfiles = (sortedArrayArg) => __awaiter(this, void 0, void 0, function* () {
|
2017-03-11 01:27:48 +00:00
|
|
|
for (let dockerfileArg of sortedArrayArg) {
|
2017-03-11 00:10:37 +00:00
|
|
|
yield dockerfileArg.test();
|
2017-03-11 01:27:48 +00:00
|
|
|
}
|
2017-03-11 00:10:37 +00:00
|
|
|
return sortedArrayArg;
|
|
|
|
});
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* class Dockerfile represents a Dockerfile on disk in npmci
|
|
|
|
*/
|
2016-07-18 14:56:53 +00:00
|
|
|
class Dockerfile {
|
|
|
|
constructor(options) {
|
2016-06-05 02:48:39 +00:00
|
|
|
this.filePath = options.filePath;
|
2016-11-24 22:21:40 +00:00
|
|
|
this.repo = NpmciEnv.repo.user + '/' + NpmciEnv.repo.repo;
|
2016-06-05 11:01:45 +00:00
|
|
|
this.version = exports.dockerFileVersion(plugins.path.parse(options.filePath).base);
|
2016-11-24 22:21:40 +00:00
|
|
|
this.cleanTag = this.repo + ':' + this.version;
|
2016-06-07 17:41:14 +00:00
|
|
|
this.buildTag = this.cleanTag;
|
2017-04-02 20:56:40 +00:00
|
|
|
this.gitlabTestTag = exports.dockerTag('registry.gitlab.com', this.repo, this.version, 'test');
|
|
|
|
this.gitlabReleaseTag = exports.dockerTag('registry.gitlab.com', this.repo, this.version);
|
2016-06-07 17:41:14 +00:00
|
|
|
this.releaseTag = exports.dockerTag(NpmciEnv.dockerRegistry, this.repo, this.version);
|
2016-11-24 22:21:40 +00:00
|
|
|
this.containerName = 'dockerfile-' + this.version;
|
2016-06-05 02:48:39 +00:00
|
|
|
if (options.filePath && options.read) {
|
2016-06-23 20:22:03 +00:00
|
|
|
this.content = plugins.smartfile.fs.toStringSync(plugins.path.resolve(options.filePath));
|
2016-06-05 02:48:39 +00:00
|
|
|
}
|
|
|
|
;
|
2016-06-05 11:01:45 +00:00
|
|
|
this.baseImage = exports.dockerBaseImage(this.content);
|
2016-06-05 12:27:56 +00:00
|
|
|
this.localBaseImageDependent = false;
|
2016-06-05 02:48:39 +00:00
|
|
|
}
|
|
|
|
;
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* builds the Dockerfile
|
|
|
|
*/
|
2016-07-18 14:56:53 +00:00
|
|
|
build() {
|
2017-03-11 00:10:37 +00:00
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
plugins.beautylog.info('now building Dockerfile for ' + this.cleanTag);
|
2017-05-15 13:54:09 +00:00
|
|
|
let buildCommand = `docker build -t ${this.buildTag} -f ${this.filePath} .`;
|
2017-05-15 14:07:05 +00:00
|
|
|
yield npmci_bash_1.bash(buildCommand);
|
2017-03-11 00:10:37 +00:00
|
|
|
NpmciEnv.dockerFilesBuilt.push(this);
|
2017-03-11 01:27:48 +00:00
|
|
|
return;
|
2017-03-11 00:10:37 +00:00
|
|
|
});
|
2016-07-18 14:56:53 +00:00
|
|
|
}
|
2016-06-05 02:48:39 +00:00
|
|
|
;
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* pushes the Dockerfile to a registry
|
|
|
|
*/
|
2016-07-18 14:56:53 +00:00
|
|
|
push(stageArg) {
|
2017-03-11 00:10:37 +00:00
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
switch (stageArg) {
|
|
|
|
case 'release':
|
2017-05-15 14:07:05 +00:00
|
|
|
yield npmci_bash_1.bash(`docker tag ${this.buildTag} ${this.releaseTag}`);
|
|
|
|
yield npmci_bash_1.bash(`docker push ${this.releaseTag}`);
|
2017-04-02 20:56:40 +00:00
|
|
|
// if release registry is different from gitlab
|
|
|
|
if (NpmciEnv.dockerRegistry !== 'registry.gitlab.com') {
|
2017-05-15 14:07:05 +00:00
|
|
|
yield npmci_bash_1.bash(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`);
|
|
|
|
yield npmci_bash_1.bash(`docker push ${this.gitlabReleaseTag}`);
|
2017-04-02 20:56:40 +00:00
|
|
|
}
|
2017-03-11 00:10:37 +00:00
|
|
|
break;
|
|
|
|
case 'test':
|
|
|
|
default:
|
2017-05-15 14:07:05 +00:00
|
|
|
yield npmci_bash_1.bash(`docker tag ${this.buildTag} ${this.gitlabTestTag}`);
|
|
|
|
yield npmci_bash_1.bash(`docker push ${this.gitlabTestTag}`);
|
2017-03-11 00:10:37 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
});
|
2016-07-18 14:56:53 +00:00
|
|
|
}
|
2016-09-04 15:56:56 +00:00
|
|
|
;
|
|
|
|
/**
|
|
|
|
* pulls the Dockerfile from a registry
|
|
|
|
*/
|
2016-07-18 14:56:53 +00:00
|
|
|
pull(registryArg) {
|
2017-03-11 00:10:37 +00:00
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
2017-04-02 20:56:40 +00:00
|
|
|
let pullTag = this.gitlabTestTag;
|
2017-05-15 14:07:05 +00:00
|
|
|
yield npmci_bash_1.bash('docker pull ' + pullTag);
|
|
|
|
yield npmci_bash_1.bash('docker tag ' + pullTag + ' ' + this.buildTag);
|
2017-03-11 00:10:37 +00:00
|
|
|
});
|
2016-07-18 14:56:53 +00:00
|
|
|
}
|
2016-06-07 01:59:47 +00:00
|
|
|
;
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* tests the Dockerfile;
|
|
|
|
*/
|
2016-07-18 14:56:53 +00:00
|
|
|
test() {
|
2017-03-11 00:10:37 +00:00
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
let testFile = plugins.path.join(paths.NpmciTestDir, 'test_' + this.version + '.sh');
|
|
|
|
let testFileExists = plugins.smartfile.fs.fileExistsSync(testFile);
|
|
|
|
if (testFileExists) {
|
|
|
|
// run tests
|
2017-05-15 14:07:05 +00:00
|
|
|
yield npmci_bash_1.bash('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test');
|
|
|
|
yield npmci_bash_1.bash('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh');
|
|
|
|
yield npmci_bash_1.bash('docker commit npmci_test_container npmci_test_image');
|
|
|
|
yield npmci_bash_1.bash('docker run npmci_test_image sh /npmci_test/test.sh');
|
|
|
|
yield npmci_bash_1.bash('docker rm npmci_test_container');
|
|
|
|
yield npmci_bash_1.bash('docker rmi --force npmci_test_image');
|
2017-03-11 00:10:37 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!');
|
|
|
|
}
|
|
|
|
});
|
2016-07-18 14:56:53 +00:00
|
|
|
}
|
2016-06-07 01:59:47 +00:00
|
|
|
;
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
* gets the id of a Dockerfile
|
|
|
|
*/
|
2016-07-18 14:56:53 +00:00
|
|
|
getId() {
|
2017-03-11 00:10:37 +00:00
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
2017-05-15 14:07:05 +00:00
|
|
|
let containerId = yield npmci_bash_1.bash('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag);
|
2017-03-11 00:10:37 +00:00
|
|
|
return containerId;
|
|
|
|
});
|
2016-07-18 14:56:53 +00:00
|
|
|
}
|
2016-06-07 01:59:47 +00:00
|
|
|
;
|
2016-07-18 14:56:53 +00:00
|
|
|
}
|
2016-06-05 02:48:39 +00:00
|
|
|
exports.Dockerfile = Dockerfile;
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
2017-03-11 00:10:37 +00:00
|
|
|
* returns a version for a docker file
|
|
|
|
* @execution SYNC
|
2016-09-04 15:56:56 +00:00
|
|
|
*/
|
2017-03-11 00:10:37 +00:00
|
|
|
exports.dockerFileVersion = (dockerfileNameArg) => {
|
2016-07-18 14:56:53 +00:00
|
|
|
let versionString;
|
|
|
|
let versionRegex = /Dockerfile_([a-zA-Z0-9\.]*)$/;
|
|
|
|
let regexResultArray = versionRegex.exec(dockerfileNameArg);
|
2016-11-24 22:21:40 +00:00
|
|
|
if (regexResultArray && regexResultArray.length === 2) {
|
2016-06-05 02:48:39 +00:00
|
|
|
versionString = regexResultArray[1];
|
|
|
|
}
|
|
|
|
else {
|
2016-11-24 22:21:40 +00:00
|
|
|
versionString = 'latest';
|
2016-06-05 02:48:39 +00:00
|
|
|
}
|
|
|
|
return versionString;
|
|
|
|
};
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2016-06-05 11:01:45 +00:00
|
|
|
exports.dockerBaseImage = function (dockerfileContentArg) {
|
2016-07-18 14:56:53 +00:00
|
|
|
let baseImageRegex = /FROM\s([a-zA-z0-9\/\-\:]*)\n?/;
|
|
|
|
let regexResultArray = baseImageRegex.exec(dockerfileContentArg);
|
2016-06-05 02:48:39 +00:00
|
|
|
return regexResultArray[1];
|
|
|
|
};
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2016-06-07 17:41:14 +00:00
|
|
|
exports.dockerTag = function (registryArg, repoArg, versionArg, suffixArg) {
|
2016-07-18 14:56:53 +00:00
|
|
|
let tagString;
|
|
|
|
let registry = registryArg;
|
|
|
|
let repo = repoArg;
|
|
|
|
let version = versionArg;
|
2016-06-07 17:41:14 +00:00
|
|
|
if (suffixArg) {
|
2016-11-24 22:21:40 +00:00
|
|
|
version = versionArg + '_' + suffixArg;
|
2016-06-05 02:48:39 +00:00
|
|
|
}
|
2016-06-07 17:41:14 +00:00
|
|
|
;
|
2016-11-24 22:21:40 +00:00
|
|
|
tagString = registry + '/' + repo + ':' + version;
|
2016-06-05 02:48:39 +00:00
|
|
|
return tagString;
|
|
|
|
};
|
2016-09-04 15:56:56 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2016-06-05 12:27:56 +00:00
|
|
|
exports.cleanTagsArrayFunction = function (dockerfileArrayArg, trackingArrayArg) {
|
2016-07-18 14:56:53 +00:00
|
|
|
let cleanTagsArray = [];
|
2016-06-05 12:27:56 +00:00
|
|
|
dockerfileArrayArg.forEach(function (dockerfileArg) {
|
2016-11-24 22:21:40 +00:00
|
|
|
if (trackingArrayArg.indexOf(dockerfileArg) === -1) {
|
2016-06-05 12:27:56 +00:00
|
|
|
cleanTagsArray.push(dockerfileArg.cleanTag);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return cleanTagsArray;
|
|
|
|
};
|
2017-07-27 11:15:39 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kLmJ1aWxkZG9ja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvbW9kX2RvY2tlci9tb2QuYnVpbGRkb2NrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUF3QztBQUN4Qyx3Q0FBdUM7QUFDdkMseUNBQXdDO0FBQ3hDLDhDQUFvQztBQUVwQyxJQUFJLFVBQVUsQ0FBQSxDQUFDLHdDQUF3QztBQUV2RDs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHLEN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