Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert Verkerk
B2SAFE Core
Commits
a2ea7555
Commit
a2ea7555
authored
Aug 11, 2021
by
Robert Verkerk
Browse files
implement CI/CD for iRODS 4.2.10
parent
45c0c834
Pipeline
#784
canceled with stages
Changes
9
Pipelines
1
Show whitespace changes
Inline
Side-by-side
ci/README.md
View file @
a2ea7555
...
...
@@ -13,15 +13,15 @@ The script can be used *./ci/build.sh* to build the RPM package.
### Build the RPM
Build the B2SAFE package for CentOS 7 and iRODS 4.2.
8
.
Build the B2SAFE package for CentOS 7 and iRODS 4.2.
10
.
```
./ci/build.sh centos7_4_2_
8
./ci/build.sh centos7_4_2_
10
```
If the build process was successful, the RPM will be copied to the shared target folder:
```
ls ci/RPMS/Centos/7/irods-4.2.
8
/
ls ci/RPMS/Centos/7/irods-4.2.
10
/
irods-eudat-b2safe-4.3.0-0.noarch.rpm
```
...
...
@@ -68,7 +68,7 @@ Configure the following files:
### Run the functional test
```
./ci/test.sh centos7_4_2_
8
./ci/test.sh centos7_4_2_
10
```
### Automation
...
...
ci/build.sh
View file @
a2ea7555
...
...
@@ -4,7 +4,7 @@ export REGISTRY=eudat-docker-public.artie.ia.surfsara.nl
export
VOLUME
=
$(
dirname
$(
pwd
)
)
REGISTRY_USER
=
eudat-artie-readonly
_VERSION
=
centos7_4_2_
8
_VERSION
=
centos7_4_2_
10
CLEANUP
=
"yes"
BUILD
=
0
GIT_BRANCH
=
""
...
...
ci/build_container.sh
View file @
a2ea7555
...
...
@@ -4,7 +4,7 @@ export REGISTRY=eudat-docker-public.artie.ia.surfsara.nl
# export VOLUME=$( dirname $( pwd ) )
# REGISTRY_USER=eudat-artie-readonly
_VERSION
=
centos7_4_2_
8
_VERSION
=
centos7_4_2_
10
CLEANUP
=
"yes"
BUILD
=
0
GIT_BRANCH
=
""
...
...
ci/centos7_4_2_10/Dockerfile
0 → 100644
View file @
a2ea7555
FROM
eudat-docker-public.artie.ia.surfsara.nl/light_centos7_4_2_10:latest
ADD
RPM/b2safe.rpm /tmp/b2safe.rpm
RUN
rpm
-i
/tmp/b2safe.rpm
ADD
ci/centos7_4_2_10/eudat-artifactory.repo /etc/yum.repos.d/eudat-artifactory.repo
ADD
ci/app/update_install.py /app/update_install.py
ADD
ci/app/setup_b2safe.sh /app/setup_b2safe.sh
ADD
ci/app/run_b2safe_tests.sh /app/run_b2safe_tests.sh
ADD
ci/app/b2safe_entry_point.sh /app/b2safe_entry_point.sh
ADD
. /app/B2SAFE-core
RUN
pip3
install
-r
/app/B2SAFE-core/scripts/tests/requirements.txt
&&
\
pip3
install
b2handle
RUN
yum clean all
&&
\
yum
install
-y
msi-persistent-id
ENTRYPOINT
[ "/app/b2safe_entry_point.sh" ]
CMD
[ "/app/sleep.sh" ]
ci/centos7_4_2_10/eudat-artifactory.repo
0 → 100644
View file @
a2ea7555
[EUDAT]
name=EUDAT
baseurl=https://artie.ia.surfsara.nl/artifactory/Eudat-RPM-Testing-Public/Centos/7/irods-4.2.10/devel
enabled=1
gpgcheck=0
ci/deploy.sh
View file @
a2ea7555
#!/bin/bash
_VERSION
=
centos7_4_2_
8
_VERSION
=
centos7_4_2_
10
CLEANUP
=
"yes"
BUILD
=
0
GIT_BRANCH
=
""
...
...
ci/shutdownall.sh
View file @
a2ea7555
...
...
@@ -4,7 +4,7 @@ set -x
export
REGISTRY
=
eudat-docker-public.artie.ia.surfsara.nl
for
_V
in
centos7_4_2_8 centos7_4_2_7 centos7_4_2_6 centos7_4_1_12 centos7_4_1_11
for
_V
in
centos7_4_2_10
centos7_4_2_8 centos7_4_2_7 centos7_4_2_6 centos7_4_1_12 centos7_4_1_11
do
export
VERSION
=
$_V
echo
"shutting down
$VERSION
"
...
...
ci/test.sh
View file @
a2ea7555
...
...
@@ -3,7 +3,7 @@
export
REGISTRY
=
eudat-docker-public.artie.ia.surfsara.nl
REGISTRY_USER
=
eudat-artie-readonly
_VERSION
=
centos7_4_2_
8
_VERSION
=
centos7_4_2_
10
CLEANUP
=
"yes"
RUNTESTS
=
"yes"
BUILD
=
0
...
...
ci/version.sh
View file @
a2ea7555
...
...
@@ -32,7 +32,7 @@ function rpm_package()
#
# example:
# -------
# irods_version centos7_4_2_
8
# irods_version centos7_4_2_
10
# > 4.2.6
#
# ###############################################################
...
...
@@ -48,7 +48,7 @@ function irods_version()
# -----
# repo_name VERSION
#
# VERSION: {OS_VERSION}_{IRODS_VERSION}, e.g. centos7_4_2_
8
# VERSION: {OS_VERSION}_{IRODS_VERSION}, e.g. centos7_4_2_
10
#
# ###############################################################
function
repo_name
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment