File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,10 @@ USER ocf
2626RUN pipx install poetry
2727ENV PATH="/home/ocf/.local/bin:${PATH}"
2828
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+
34+
2935CMD ["./start.sh" ]
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ groupadd ocf
5+ groupadd ocfroot
6+ groupadd opstaff
7+ groupadd ocfstaff
8+
9+ useradd gstaff
10+ usermod -aG ocfstaff gstaff
11+
12+ useradd testopstaff
13+ usermod -aG opstaff testopstaff
14+
15+ usermod -aG ocfroot root
16+
17+ useradd staff1
18+ usermod -aG ocfstaff staff1
19+ useradd staff2
20+ usermod -aG ocfstaff staff2
21+ useradd staff3
22+ usermod -aG ocfstaff staff3
23+ useradd staff4
24+ usermod -aG ocfstaff staff4
25+
26+ useradd guser
27+ useradd sshd
28+ useradd staff
You can’t perform that action at this time.
0 commit comments