diff options
author | Eran (ev672n), Vosk <ev672n@att.com> | 2018-08-07 20:53:11 +0300 |
---|---|---|
committer | Eran (ev672n), Vosk <ev672n@att.com> | 2018-08-07 20:53:11 +0300 |
commit | e9ae0a166019675b383cd8cc5d0c591846267518 (patch) | |
tree | 6caf0f08be05b10f8903a5f099c5dcca7f945fa1 /docker/scripts/set_dockerfile_and_pom.pl | |
parent | b9708a7c3cfaf5767992a2b15180e7b85c459242 (diff) |
adding the dcae dt code
Adding DCAE-dt code
Change-Id: Ia349ec9fcec2820cb81695144b59a3a557d7a0d4
Issue-ID: SDC-1614
Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Diffstat (limited to 'docker/scripts/set_dockerfile_and_pom.pl')
-rw-r--r-- | docker/scripts/set_dockerfile_and_pom.pl | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/docker/scripts/set_dockerfile_and_pom.pl b/docker/scripts/set_dockerfile_and_pom.pl deleted file mode 100644 index 8411f30..0000000 --- a/docker/scripts/set_dockerfile_and_pom.pl +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; - - -my @lines; - -# -### POM file -# - -my $file = 'pom.xml'; -### Read the pom.xml file. -open (POM, $file) or die "[ERROR] Cannot read the file '$file' : $!\n\n"; -chomp (@lines = <POM>); -close (POM); - -open (NEW, ">${file}") or die "[ERROR] Cannot write to the file '$file' : $!\n\n"; -foreach my $line (@lines) { - - # Replace groupID - if ($line =~ m|<groupId>org.onap.sdc</groupId>|) { - $line =~ s|org.onap.sdc|com.att.sdc|; - } - - # Remove the tags. - if ($line =~ m|<tag>(.*)</tag>|) { - - if ($1 eq '${docker.tag}') { - $line =~ s|\$\{docker.tag\}|\$\{project.version\}|; - } - else { - next; - } - } - - print NEW "$line\n"; -} -close (NEW); - - -# -### Dockerfie -# - -my $dockerFile = 'Dockerfile'; - -open (FILE, $dockerFile) or die "[ERROR] Cannot read the file '$dockerFile' : $!\n\n"; -chomp (@lines = <FILE>); -close (FILE); - -open (NEW, ">${dockerFile}") or die "[ERROR] Cannot write to the file '$dockerFile' : $!\n\n"; - -foreach my $line (@lines) { - # Replace the docker registry - if ($line =~ m|FROM|) { - $line =~ s|onap|dockercentral.it.att.com:5100/com.att.sdc|; - } - print NEW "$line\n"; -} -close (NEW); |