Skip to content

Commit eb5ce20

Browse files
committed
Aded impl for bazaar issue 8232 and moved from debian9 to debian10
1 parent 715f3ee commit eb5ce20

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

.mailmap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ Furkan Bicak <[email protected]> Furkan Bicak <[email protected]>
112112
Furkan Bicak <[email protected]> Furkan Bıçak <[email protected]>
113113
Furkan Bicak <[email protected]> Furkan Bıçak <[email protected]>
114114

115-
Ilarion (Larik) Stus <[email protected]> Ilarion Stus <[email protected]>
116-
Ilarion (Larik) Stus <[email protected]> istus <[email protected]>
117-
Ilarion (Larik) Stus <[email protected]> Larik <[email protected]>
118-
Ilarion (Larik) Stus <[email protected]> ubuntu <[email protected]>
119-
Ilarion (Larik) Stus <[email protected]> larenso <[email protected]>
120-
Ilarion (Larik) Stus <[email protected]> larenso <[email protected]>
115+
Ilarion Stus <[email protected]> Ilarion Stus <[email protected]>
116+
Ilarion Stus <[email protected]> istus <[email protected]>
117+
Ilarion Stus <[email protected]> Larik <[email protected]>
118+
Ilarion Stus <[email protected]> ubuntu <[email protected]>
119+
Ilarion Stus <[email protected]> larenso <[email protected]>
120+
Ilarion Stus <[email protected]> larenso <[email protected]>
121121

122122
Jenkins Admin <[email protected]> Jenkins Admin <[email protected]>
123123

Jenkinsfile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ try {
3232
def mvnHome = tool 'M3'
3333
def workspace = pwd()
3434

35-
stage("Build management deb package")
35+
stage("Build management deb package")
3636
// Use maven to to build deb and template files of management
3737
notifyBuildDetails = "\nFailed Step - Build management deb package"
3838

@@ -42,6 +42,10 @@ try {
4242
// build deb
4343
sh """
4444
cd management
45+
46+
set +x
47+
set -e
48+
4549
git checkout ${env.BRANCH_NAME}
4650
sed 's/export BAZAAR_IP=.*/export BAZAAR_IP=${cdnHost}/g' -i server/server-karaf/src/main/assembly/bin/setenv
4751
if [[ "${env.BRANCH_NAME}" == "dev" ]]; then
@@ -77,23 +81,26 @@ try {
7781

7882
// create management template
7983

80-
sh """
81-
set +x
84+
sh """
85+
set +x
86+
8287
set -e
8388
sudo sed 's/URL =.*/URL = ${cdnHost}/gI' -i /etc/subutai/agent.conf
8489
sudo sed 's/SshJumpServer =.*/SshJumpServer = ${jumpServer}/gI' -i /etc/subutai/agent.conf
8590
set +e
8691
sudo subutai destroy management
8792
set -e
88-
sudo subutai clone debian-stretch:subutai:0.4.5 management
93+
sudo subutai clone debian-buster management
8994
/bin/sleep 20
9095
cp ${workspace}/${debFileName} /var/lib/lxc/management/rootfs/tmp/
9196
sudo subutai attach management "apt-get update && apt-get install dirmngr -y"
9297
sudo subutai attach management "apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C6B2AC7FBEB649F1"
98+
sudo subutai attach management "apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 8AC3B29174885C03"
99+
sudo subutai attach management "echo 'deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main' > /etc/apt/sources.list.d/adoptopenjdk.list"
93100
sudo subutai attach management "echo 'deb http://deb.subutai.io/subutai ${aptRepo} main' > /etc/apt/sources.list.d/subutai-repo.list"
94101
sudo subutai attach management "apt-get update && apt upgrade -y"
95102
sudo subutai attach management "sync"
96-
sudo subutai attach management "apt-get -y install curl influxdb influxdb-certs openjdk-8-jre"
103+
sudo subutai attach management "apt-get -y install curl influxdb influxdb-certs adoptopenjdk-8-hotspot adoptopenjdk-8-hotspot-jre"
97104
sudo cp ~/influxdb.conf /var/lib/lxc/management/rootfs/etc/influxdb/influxdb.conf
98105
sudo subutai attach management "dpkg -i /tmp/${debFileName}"
99106
sudo subutai attach management "systemctl stop management"

management/server/core/bazaar-manager/bazaar-manager-impl/src/main/java/io/subutai/core/bazaarmanager/impl/processor/port_map/ContainerPortMapProcessor.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ private void handlePortMap( PortMapDto portMapDto )
114114
DestroyPortMap destroyPortMap = new DestroyPortMap( ctx );
115115
destroyPortMap.deleteMap( portMapDto );
116116
break;
117+
case RECREATE:
118+
recreatePortMap( portMapDto );
119+
break;
117120
case ERROR:
118121
break;
119122
case USED:
@@ -124,6 +127,14 @@ private void handlePortMap( PortMapDto portMapDto )
124127
}
125128

126129

130+
private void recreatePortMap( PortMapDto portMapDto )
131+
{
132+
DestroyPortMap destroyPortMap = new DestroyPortMap( ctx );
133+
destroyPortMap.deleteMap( portMapDto );
134+
createMap( portMapDto );
135+
}
136+
137+
127138
private void createMap( PortMapDto portMapDto )
128139
{
129140
try

management/server/subutai-bazaar-share/src/main/java/io/subutai/bazaar/share/dto/domain/PortMapDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public boolean isHttpOrHttps()
2323

2424
public enum State
2525
{
26-
CREATING, RESERVED, USED, DESTROYING, ERROR, DELETED
26+
CREATING, RESERVED, USED, DESTROYING, ERROR, DELETED, RECREATE
2727
}
2828

2929

0 commit comments

Comments
 (0)