You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN UV_PYTHON_INSTALL_DIR=/opt/python uv python install ${PYTHON_VERSION}
35
+
# The rstudio-connect user mirrors the user we create during installation.
36
+
# This user is often used as the default RunAs user by tests and when testing
37
+
# primary-user execution.
38
+
#
39
+
# The rstudio-connect user DOES NOT have a home directory. Its primary group
40
+
# is rstudio-connect. It is also a member of the shared data-scientists group
41
+
RUN useradd -r -M -s /usr/sbin/nologin -G data-scientists \
42
+
-c "System user for rstudio-connect daemon" rstudio-connect
23
43
24
-
# Install R
25
-
RUN curl -O https://cdn.rstudio.com/r/ubuntu-2204/pkgs/r-${R_VERSION}_1_amd64.deb
26
-
RUN apt-get install -y ./r-${R_VERSION}_1_amd64.deb
44
+
# The shiny-runner user is an alternate RunAs user. This user can be used when
45
+
# testing multi-user/alternate-user execution.
46
+
#
47
+
# The shiny-runner user DOES have a home directory. Its primary group is
48
+
# shiny-runner. It is a member of the data-scientists, jenkins, and rstudio-connect groups.
49
+
RUN useradd -r -m -s /usr/sbin/nologin -G data-scientists,jenkins,rstudio-connect \
50
+
-c "Alternate RunAs user with home directory" shiny-runner
51
+
52
+
# The nohome-runner user is an alternate RunAs user. This user can be used
53
+
# when testing multi-user/alternate user execution.
54
+
#
55
+
# The nohome-runner DOES NOT have a home directory. Its primary group is
56
+
# nohome-runner. It is a member of the data-scientists, jenkins, and rstudio-connect groups.
57
+
RUN useradd -r -M -s /usr/sbin/nologin -G data-scientists,jenkins,rstudio-connect \
58
+
-c "Alternate RunAs user without a home directory" nohome-runner
59
+
60
+
# Ths nonmember-runner user is an invalid RunAs user. This user can be used
61
+
# when testing group validation.
62
+
#
63
+
# The nonmember-runner user is NOT a member of the jenkins or rstudio-connect
64
+
# groups.
65
+
RUN useradd -r -m -s /usr/sbin/nologin \
66
+
-c "Alternate RunAs user with home directory" nonmember-runner
67
+
68
+
# because licensing
69
+
RUN mkdir /var/lib/rstudio-connect
70
+
71
+
# Enable git when running as users other than the GH actions runner
72
+
# https://github.com/actions/checkout/issues/766
73
+
RUN git config --global --add safe.directory /connect
74
+
RUN su - jenkins -c 'git config --global --add safe.directory /connect'
27
75
28
76
WORKDIR /opt/connect-manager
29
77
78
+
ARG CONNECT_MANAGER_VERSION=0.5.1
30
79
RUN curl -fsSL "https://cdn.rstudio.com/connect/connect-manager/${CONNECT_MANAGER_VERSION}/connect-manager-${CONNECT_MANAGER_VERSION}.tar.xz" | tar --strip-components=1 -xvJf -
31
80
32
81
RUN tar \
@@ -42,21 +91,21 @@ RUN rm -f \
42
91
connect_manager_client-*.whl
43
92
44
93
# Pull and Install Connect .deb
45
-
RUN curl -O https://cdn.posit.co/connect/2024.12/rstudio-connect_2024.12.0~ubuntu22_amd64.deb
0 commit comments