Skip to content

Commit bf9e54e

Browse files
authored
ci: remove Gramine build and push native image to docker-regis registry (#132)
1 parent bc59ee7 commit bf9e54e

4 files changed

Lines changed: 4 additions & 65 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
@Library('global-jenkins-library@2.3.1') _
22

33
buildInfo = getBuildInfo()
4-
dockerIoVisibility = Registries.EXTERNAL_DOCKERIO_HOST
54

65
properties(
76
[
87
buildDiscarder(logRotator(numToKeepStr: '10')),
98
parameters([
10-
string(defaultValue: '5.7.6', name: 'SCONIFY_VERSION', trim: true)
9+
string(defaultValue: '5.9.1', name: 'SCONIFY_VERSION', trim: true)
1110
])
1211
]
1312
)
1413

15-
if (params.SCONIFY_VERSION == null || params.SCONIFY_VERSION == '') {
14+
if (params.SCONIFY_VERSION.isEmpty()) {
1615
error "SCONIFY_VERSION can't be null or empty"
1716
}
1817

@@ -22,38 +21,9 @@ def nativeImage = buildSimpleDocker_v3(
2221
dockerfileDir: baseDir,
2322
buildContext: baseDir,
2423
dockerImageRepositoryName: 'offchain-python-hello-world',
25-
visibility: dockerIoVisibility
24+
visibility: 'iex.ec'
2625
)
2726

28-
stage('Build Gramine') {
29-
gramineBuildInfo = buildInfo.clone()
30-
dockerfileDir = baseDir + '/gramine'
31-
dockerImageRepositoryName = 'tee-offchain-python-hello-world'
32-
gramineBuildInfo.imageTag += '-gramine'
33-
productionImageName = ''
34-
stage('Build Gramine production image') {
35-
productionImageName = buildSimpleDocker_v3(
36-
buildInfo: gramineBuildInfo,
37-
dockerfileDir: dockerfileDir,
38-
buildContext: baseDir,
39-
dockerImageRepositoryName: dockerImageRepositoryName,
40-
visibility: dockerIoVisibility
41-
)
42-
}
43-
stage('Build Gramine test CA image') {
44-
testCaSuffix = 'test-ca'
45-
gramineBuildInfo.imageTag += '-' + testCaSuffix
46-
buildSimpleDocker_v3(
47-
buildInfo: gramineBuildInfo,
48-
dockerfileDir: dockerfileDir,
49-
dockerfileFilename: 'Dockerfile.' + testCaSuffix,
50-
dockerBuildOptions: '--build-arg BASE_IMAGE=' + productionImageName,
51-
dockerImageRepositoryName: dockerImageRepositoryName,
52-
visibility: Registries.EXTERNAL_IEXEC_HOST
53-
)
54-
}
55-
}
56-
5727
sconeBuildUnlocked(
5828
nativeImage: nativeImage,
5929
imageName: 'offchain-python-hello-world',

offchain-computing/gramine/Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

offchain-computing/gramine/Dockerfile.test-ca

Lines changed: 0 additions & 5 deletions
This file was deleted.

offchain-computing/sconify.args

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
--name=offchain-python-hello-world \
21
--from=${IMG_FROM} \
32
--to=${IMG_TO} \
43
--binary-fs \
@@ -9,5 +8,4 @@
98
--heap="1G" \
109
--dlopen="1" \
1110
--no-color \
12-
--verbose \
13-
--command="python3 /app/app.py"
11+
--verbose

0 commit comments

Comments
 (0)