File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ RUN tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
1717
1818RUN /runner/bin/installdependencies.sh
1919
20+ # Setup script for groups and users to accommodate some of ocflib's tests
21+ COPY setup_user.sh .
22+ RUN ./setup_user.sh
23+
2024# Runner config commands cannot be run by root
2125RUN useradd -m ocf
2226RUN chown -R ocf /runner
@@ -26,10 +30,5 @@ USER ocf
2630RUN pipx install poetry
2731ENV PATH="/home/ocf/.local/bin:${PATH}"
2832
29- # Setup script for groups and users to accommodate some of ocflib's tests
30- COPY setup_user.sh .
31- RUN chmod +x setup_user.sh
32- RUN ./setup_user.sh
33-
3433
3534CMD ["./start.sh" ]
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- groupadd ocf
54groupadd ocfroot
65groupadd opstaff
76groupadd ocfstaff
@@ -25,4 +24,3 @@ usermod -aG ocfstaff staff4
2524
2625useradd guser
2726useradd sshd
28- useradd staff
You can’t perform that action at this time.
0 commit comments