-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (61 loc) · 2.18 KB
/
install_sm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# install_sm.yml
#
# (C) 2024 Dr. Bassler & Co. Managementberatung GmbH
#
# Installs the Stoage Manager (SM) and runs all SM tests on minio container
#
# @author Denys Chaykovskiy
#
name: Install SM only with test execution
on:
push:
branches: [ "dev-denys" ]
pull_request:
branches: [ "dev-denys" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '15.x'
- name: Install dependencies
run: npm install
- name: Install raml2html
run: npm i -g raml2html
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Create registry folder
run: mkdir /home/runner/work/prosEOregistry
- name: Check docker status
run: systemctl status docker
- name: Create settings.xml in .m2
run: |
cd ~/.m2
echo '<settings><profiles><profile><id>dev-local</id><!-- or any other id you prefer --><activation><activeByDefault>true</activeByDefault></activation><properties><docker.registry>localhost:5000</docker.registry></properties></profile></profiles></settings>' > ~/.m2/settings.xml
ls -la
- name: Create local registry
run: docker run -d -p 5000:5000 --restart always -e STORAGE_DELETE_ENABLED=true -v /home/runner/work/prosEOregistry:/var/lib/registry --name registry registry:2
- name: Add openjdk container
run: |
docker pull openjdk:11
docker tag openjdk:11 localhost:5000/openjdk:11
docker push localhost:5000/openjdk:11
- name: Show current directory
run: pwd
- name: Add minio container for s3 testing
run: docker compose -f ./storage-mgr/src/test/resources/docker-compose.yml up -d
- name: Show docker images
run: docker images
- name: Show docker containers
run: docker container ls
- name: Install SM only
run: mvn -B install --file pom.xml -pl storage-mgr -am