Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
9 changes: 4 additions & 5 deletions rdr/busybox/base/busybox-dc-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,23 @@ spec:
appgroup: busybox-group
initContainers:
- name: init-integrity-check
image: quay.io/ocsci/rdr-ocs-workload
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: CONTAINER_VALUE
value: "init"
command: ['sh', '-c']
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/simple_io_integrity_check.sh; chmod +x /mnt/simple_io_integrity_check.sh; /mnt/simple_io_integrity_check.sh
- /mnt/simple_io_integrity_check.sh
volumeMounts:
- mountPath: /mnt/test
name: mypvc
containers:
- command: ["/bin/sh", "-c"]
args:
- wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io.sh -O /mnt/test/simple_io.sh;
wget https://raw.githubusercontent.com/red-hat-storage/ocs-workloads/master/rdr/busybox/scripts/simple_io_integrity_check.sh -O /mnt/test/simple_io_integrity_check.sh;
- cp /mnt/simple_io.sh /mnt/test/simple_io.sh ; cp /mnt/simple_io_integrity_check.sh /mnt/test/simple_io_integrity_check.sh;
chmod +x /mnt/test/simple_io.sh; chmod +x /mnt/test/simple_io_integrity_check.sh;
/mnt/test/simple_io.sh
image: quay.io/ocsci/busybox:latest
image: quay.io/ocsci/rdr-ocs-workload:latest
env:
- name: IO_SCRIPT
value: "/mnt/test/simple_io.sh"
Expand Down
4 changes: 4 additions & 0 deletions rdr/container_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ RUN git clone https://github.com/avati/arequal.git
WORKDIR arequal
RUN ./autogen.sh ; ./configure ; make ; make install
WORKDIR /
COPY rdr/busybox/scripts/simple_io_integrity_check.sh /mnt/
RUN chmod +x /mnt/simple_io_integrity_check.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we do set properly the permission on those files in repository - I think the permission will be carried on via COPY as well inside the image - so if my assumption is correct - you can remove those chmod +x RUN Commands

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check and test it for now will keep as it is

COPY rdr/busybox/scripts/simple_io.sh /mnt/
RUN chmod +x /mnt/simple_io.sh
RUN apk del git automake autoconf build-base --no-cache
RUN rm -rf arequal