chore(ci): adding support to cross-compile in python framework
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
committed by
Robert Schmidt
parent
c6fab23af7
commit
59ad094271
@@ -370,22 +370,23 @@ class Containerize():
|
|||||||
# Creating a tupple with the imageName and the DockerFile prefix pattern on obelix
|
# Creating a tupple with the imageName and the DockerFile prefix pattern on obelix
|
||||||
if result is not None:
|
if result is not None:
|
||||||
imageNames.append(('oai-enb', 'eNB'))
|
imageNames.append(('oai-enb', 'eNB'))
|
||||||
else:
|
result = re.search('gNB', self.imageKind)
|
||||||
result = re.search('gNB', self.imageKind)
|
if result is not None:
|
||||||
if result is not None:
|
imageNames.append(('oai-gnb', 'gNB'))
|
||||||
imageNames.append(('oai-gnb', 'gNB'))
|
result = re.search('all', self.imageKind)
|
||||||
else:
|
if result is not None:
|
||||||
result = re.search('all', self.imageKind)
|
imageNames.append(('oai-enb', 'eNB'))
|
||||||
if result is not None:
|
imageNames.append(('oai-gnb', 'gNB'))
|
||||||
imageNames.append(('oai-enb', 'eNB'))
|
imageNames.append(('oai-nr-cuup', 'nr-cuup'))
|
||||||
imageNames.append(('oai-gnb', 'gNB'))
|
imageNames.append(('oai-lte-ue', 'lteUE'))
|
||||||
imageNames.append(('oai-nr-cuup', 'nr-cuup'))
|
imageNames.append(('oai-nr-ue', 'nrUE'))
|
||||||
imageNames.append(('oai-lte-ue', 'lteUE'))
|
if self.host == 'Red Hat':
|
||||||
imageNames.append(('oai-nr-ue', 'nrUE'))
|
imageNames.append(('oai-physim', 'phySim'))
|
||||||
if self.host == 'Red Hat':
|
if self.host == 'Ubuntu':
|
||||||
imageNames.append(('oai-physim', 'phySim'))
|
imageNames.append(('oai-lte-ru', 'lteRU'))
|
||||||
if self.host == 'Ubuntu':
|
result = re.search('build_cross_arm64', self.imageKind)
|
||||||
imageNames.append(('oai-lte-ru', 'lteRU'))
|
if result is not None:
|
||||||
|
self.dockerfileprefix = '.ubuntu20.cross-arm64'
|
||||||
|
|
||||||
# Workaround for some servers, we need to erase completely the workspace
|
# Workaround for some servers, we need to erase completely the workspace
|
||||||
if self.forcedWorkspaceCleanup:
|
if self.forcedWorkspaceCleanup:
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<!--
|
||||||
|
|
||||||
|
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
||||||
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
|
this work for additional information regarding copyright ownership.
|
||||||
|
The OpenAirInterface Software Alliance licenses this file to You under
|
||||||
|
the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
||||||
|
except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.openairinterface.org/?page_id=698
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||||
|
contact@openairinterface.org
|
||||||
|
|
||||||
|
-->
|
||||||
|
<testCaseList>
|
||||||
|
<htmlTabRef>build-tab</htmlTabRef>
|
||||||
|
<htmlTabName>Build Container Images</htmlTabName>
|
||||||
|
<htmlTabIcon>wrench</htmlTabIcon>
|
||||||
|
<TestCaseRequestedList>
|
||||||
|
000001
|
||||||
|
</TestCaseRequestedList>
|
||||||
|
<TestCaseExclusionList></TestCaseExclusionList>
|
||||||
|
|
||||||
|
<testCase id="000001">
|
||||||
|
<class>Build_Image</class>
|
||||||
|
<desc>Cross-Compile for ARM64</desc>
|
||||||
|
<kind>build_cross_arm64</kind>
|
||||||
|
<eNB_instance>0</eNB_instance>
|
||||||
|
<eNB_serverId>0</eNB_serverId>
|
||||||
|
<forced_workspace_cleanup>True</forced_workspace_cleanup>
|
||||||
|
</testCase>
|
||||||
|
|
||||||
|
</testCaseList>
|
||||||
Reference in New Issue
Block a user