Commit 685f0aa 1 parent 9527c66 commit 685f0aa Copy full SHA for 685f0aa
File tree 3 files changed +12
-15
lines changed
3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ jobs:
11
11
build :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@master
14
+ - name : Checkout the triggered branch
15
+ uses : actions/checkout@v3
16
+ with :
17
+ ref : ${{ github.event.workflow_run.head_branch }}
15
18
16
19
- name : Set branch name from triggered workflow
17
20
run : echo "BRANCH_NAME=${{ github.event.workflow_run.head_branch }}" >> $GITHUB_ENV
18
21
19
22
20
23
- name : Build the docker image
21
- run : docker build --file docker/Dockerfile_spdk --tag simplyblock/spdk-core:BRANCH_NAME-amd64 .
24
+ run : docker build --file docker/Dockerfile_spdk --tag simplyblock/spdk-core:$ BRANCH_NAME-amd64 .
22
25
23
26
- name : Login to Docker Hub
24
27
uses : docker/login-action@v1
47
50
run : docker image push 565979732541.dkr.ecr.us-east-1.amazonaws.com/spdk-core:$BRANCH_NAME-amd64
48
51
- name : Create the manifest
49
52
run : |
50
- docker manifest create simplyblock/spdk-core:$BRANCH_NAME-latest simplyblock/spdk-core:arm64 simplyblock/spdk-core:$BRANCH_NAME-amd64
53
+ docker manifest create simplyblock/spdk-core:$BRANCH_NAME-latest simplyblock/spdk-core:$BRANCH_NAME- arm64 simplyblock/spdk-core:$BRANCH_NAME-amd64
51
54
docker manifest create 565979732541.dkr.ecr.us-east-1.amazonaws.com/spdk-core:$BRANCH_NAME-latest 565979732541.dkr.ecr.us-east-1.amazonaws.com/spdk-core:$BRANCH_NAME-arm64 565979732541.dkr.ecr.us-east-1.amazonaws.com/spdk-core:$BRANCH_NAME-amd64
52
55
docker manifest annotate simplyblock/spdk-core:$BRANCH_NAME-latest simplyblock/spdk-core:$BRANCH_NAME-arm64 --arch arm64
53
56
docker manifest annotate simplyblock/spdk-core:$BRANCH_NAME-latest simplyblock/spdk-core:$BRANCH_NAME-amd64 --arch amd64
Original file line number Diff line number Diff line change 8
8
build :
9
9
runs-on : linux-arm
10
10
steps :
11
- - uses : actions/checkout@master
11
+ - name : Checkout the triggered branch
12
+ uses : actions/checkout@v3
13
+ with :
14
+ ref : ${{ github.event.workflow_run.head_branch }}
12
15
13
16
- name : Set docker image tag
14
17
id : get_info
Original file line number Diff line number Diff line change 1
1
FROM fedora:37
2
2
3
- # push to "simplyblock/spdk-core:latest "
3
+ # push to "simplyblock/spdk-core:$TAG "
4
4
5
5
USER root
6
6
7
7
WORKDIR /root
8
8
9
- COPY api api/
10
- COPY scripts scripts/
9
+ COPY ./ /root/spdk/
11
10
12
11
RUN dnf install -y git diffutils procps-ng pip kmod hostname wget pkg-config cmake nano systemd-udev
13
12
14
- #RUN wget https://github.com/apple/foundationdb/releases/download/7.3.3/foundationdb-clients-7.3.3-1.el7.x86_64.rpm
15
- #RUN rpm -Uvh foundationdb-clients-7.3.3-1.el7.x86_64.rpm
16
- #RUN rm -f foundationdb-clients-7.3.3-1.el7.x86_64.rpm
17
-
18
- RUN git clone https://github.com/simplyblock-io/spdk --depth 1 -b v24.05
19
-
20
13
RUN cd spdk && git submodule update --init --depth 1
21
14
22
15
RUN cd spdk && scripts/pkgdep.sh --rdma --pmem
@@ -25,8 +18,6 @@ RUN mkdir /tmp/pmem
25
18
26
19
RUN pip3 install grpcio-tools==1.51.3 protobuf==4.22.1
27
20
28
- RUN pip3 install -r /root/api/requirements.txt
29
-
30
21
RUN sed -i "s/^#define SPDK_JSONRPC_RECV_BUF_SIZE.*/#define SPDK_JSONRPC_RECV_BUF_SIZE\t(32 * 1024 * 1024)/" /root/spdk/lib/jsonrpc/jsonrpc_internal.h
31
22
32
23
RUN sed -i "s/^#define SPDK_BDEV_QOS_MIN_IOS_PER_SEC.*/#define SPDK_BDEV_QOS_MIN_IOS_PER_SEC\t200/" /root/spdk/lib/bdev/bdev.c
You can’t perform that action at this time.
0 commit comments