Skip to content

Commit 6852cb5

Browse files
committed
Issue #230 - Do not use root user in container
* Fixed an issue with Firefox not using the correct base folder * Fixed an issue with Chrome not being able to log messages
1 parent 33de216 commit 6852cb5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ RUN mkdir -p ${ROBOT_REPORTS_DIR} \
109109
&& chown ${ROBOT_UID}:${ROBOT_GID} ${ROBOT_WORK_DIR} \
110110
&& chmod ugo+w ${ROBOT_REPORTS_DIR} ${ROBOT_WORK_DIR}
111111

112+
# Allow any user to write logs
113+
RUN chmod ugo+w /var/log \
114+
&& chown ${ROBOT_UID}:${ROBOT_GID} /var/log
115+
112116
# Update system path
113117
ENV PATH=/opt/robotframework/bin:/opt/robotframework/drivers:$PATH
114118

bin/run-tests-in-virtual-screen.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
HOME=${ROBOT_WORK_DIR}
4+
35
# No need for the overhead of Pabot if no parallelisation is required
46
if [ $ROBOT_THREADS -eq 1 ]
57
then

0 commit comments

Comments
 (0)